From e757fc08ae04cbce181fcd36d55dc7efc121fff9 Mon Sep 17 00:00:00 2001 From: Amer Koleci Date: Tue, 20 Sep 2022 11:02:04 +0200 Subject: [PATCH] Generator: Separate com types and FIX vtable issues --- src/Generator/ApiData.cs | 5 + src/Generator/CodeWriter.cs | 11 +- src/Generator/Program.cs | 429 +- .../Generated/Graphics/Direct2D.Common.cs | 118 - .../Generated/Graphics/Direct2D.cs | 23244 ---------------- .../Direct2D/ID2D1AnalysisTransform.cs | 91 + .../Graphics/Direct2D/ID2D1Bitmap.cs | 148 + .../Graphics/Direct2D/ID2D1Bitmap1.cs | 188 + .../Graphics/Direct2D/ID2D1BitmapBrush.cs | 187 + .../Graphics/Direct2D/ID2D1BitmapBrush1.cs | 203 + .../Direct2D/ID2D1BitmapRenderTarget.cs | 524 + .../Graphics/Direct2D/ID2D1BlendTransform.cs | 123 + .../Graphics/Direct2D/ID2D1BorderTransform.cs | 139 + .../ID2D1BoundsAdjustmentTransform.cs | 107 + .../Generated/Graphics/Direct2D/ID2D1Brush.cs | 123 + .../Graphics/Direct2D/ID2D1ColorContext.cs | 115 + .../Graphics/Direct2D/ID2D1ColorContext1.cs | 139 + .../Graphics/Direct2D/ID2D1CommandList.cs | 107 + .../Graphics/Direct2D/ID2D1CommandSink.cs | 283 + .../Graphics/Direct2D/ID2D1CommandSink1.cs | 291 + .../Graphics/Direct2D/ID2D1CommandSink2.cs | 315 + .../Graphics/Direct2D/ID2D1CommandSink3.cs | 323 + .../Graphics/Direct2D/ID2D1CommandSink4.cs | 331 + .../Graphics/Direct2D/ID2D1CommandSink5.cs | 339 + .../Graphics/Direct2D/ID2D1ComputeInfo.cs | 139 + .../Direct2D/ID2D1ComputeTransform.cs | 131 + .../Direct2D/ID2D1ConcreteTransform.cs | 107 + .../Graphics/Direct2D/ID2D1DCRenderTarget.cs | 524 + .../Graphics/Direct2D/ID2D1Device.cs | 123 + .../Graphics/Direct2D/ID2D1Device1.cs | 147 + .../Graphics/Direct2D/ID2D1Device2.cs | 171 + .../Graphics/Direct2D/ID2D1Device3.cs | 179 + .../Graphics/Direct2D/ID2D1Device4.cs | 203 + .../Graphics/Direct2D/ID2D1Device5.cs | 211 + .../Graphics/Direct2D/ID2D1Device6.cs | 219 + .../Graphics/Direct2D/ID2D1DeviceContext.cs | 796 + .../Graphics/Direct2D/ID2D1DeviceContext1.cs | 820 + .../Graphics/Direct2D/ID2D1DeviceContext2.cs | 908 + .../Graphics/Direct2D/ID2D1DeviceContext3.cs | 924 + .../Graphics/Direct2D/ID2D1DeviceContext4.cs | 980 + .../Graphics/Direct2D/ID2D1DeviceContext5.cs | 1012 + .../Graphics/Direct2D/ID2D1DeviceContext6.cs | 1020 + .../Graphics/Direct2D/ID2D1DrawInfo.cs | 155 + .../Graphics/Direct2D/ID2D1DrawTransform.cs | 123 + .../Direct2D/ID2D1DrawingStateBlock.cs | 123 + .../Direct2D/ID2D1DrawingStateBlock1.cs | 139 + .../Graphics/Direct2D/ID2D1Effect.cs | 211 + .../Graphics/Direct2D/ID2D1EffectContext.cs | 251 + .../Graphics/Direct2D/ID2D1EffectContext1.cs | 259 + .../Graphics/Direct2D/ID2D1EffectContext2.cs | 275 + .../Graphics/Direct2D/ID2D1EffectImpl.cs | 107 + .../Graphics/Direct2D/ID2D1EllipseGeometry.cs | 203 + .../Graphics/Direct2D/ID2D1Factory.cs | 195 + .../Graphics/Direct2D/ID2D1Factory1.cs | 275 + .../Graphics/Direct2D/ID2D1Factory2.cs | 283 + .../Graphics/Direct2D/ID2D1Factory3.cs | 291 + .../Graphics/Direct2D/ID2D1Factory4.cs | 299 + .../Graphics/Direct2D/ID2D1Factory5.cs | 307 + .../Graphics/Direct2D/ID2D1Factory6.cs | 315 + .../Graphics/Direct2D/ID2D1Factory7.cs | 323 + .../Direct2D/ID2D1GdiInteropRenderTarget.cs | 99 + .../Graphics/Direct2D/ID2D1GdiMetafile.cs | 107 + .../Graphics/Direct2D/ID2D1GdiMetafile1.cs | 123 + .../Graphics/Direct2D/ID2D1GdiMetafileSink.cs | 91 + .../Direct2D/ID2D1GdiMetafileSink1.cs | 99 + .../Graphics/Direct2D/ID2D1Geometry.cs | 195 + .../Graphics/Direct2D/ID2D1GeometryGroup.cs | 219 + .../Direct2D/ID2D1GeometryRealization.cs | 91 + .../Graphics/Direct2D/ID2D1GeometrySink.cs | 153 + .../Graphics/Direct2D/ID2D1GradientMesh.cs | 107 + .../Direct2D/ID2D1GradientStopCollection.cs | 123 + .../Direct2D/ID2D1GradientStopCollection1.cs | 163 + .../Direct2D/ID2D1HwndRenderTarget.cs | 540 + .../Generated/Graphics/Direct2D/ID2D1Image.cs | 91 + .../Graphics/Direct2D/ID2D1ImageBrush.cs | 203 + .../Graphics/Direct2D/ID2D1ImageSource.cs | 107 + .../Direct2D/ID2D1ImageSourceFromWic.cs | 131 + .../Generated/Graphics/Direct2D/ID2D1Ink.cs | 172 + .../Graphics/Direct2D/ID2D1InkStyle.cs | 123 + .../Generated/Graphics/Direct2D/ID2D1Layer.cs | 99 + .../Direct2D/ID2D1LinearGradientBrush.cs | 165 + .../Graphics/Direct2D/ID2D1LookupTable3D.cs | 91 + .../Generated/Graphics/Direct2D/ID2D1Mesh.cs | 99 + .../Graphics/Direct2D/ID2D1Multithread.cs | 107 + .../Graphics/Direct2D/ID2D1OffsetTransform.cs | 108 + .../Graphics/Direct2D/ID2D1PathGeometry.cs | 227 + .../Graphics/Direct2D/ID2D1PathGeometry1.cs | 235 + .../Graphics/Direct2D/ID2D1PrintControl.cs | 99 + .../Graphics/Direct2D/ID2D1Properties.cs | 171 + .../Direct2D/ID2D1RadialGradientBrush.cs | 197 + .../Direct2D/ID2D1RectangleGeometry.cs | 203 + .../Graphics/Direct2D/ID2D1RenderInfo.cs | 115 + .../Graphics/Direct2D/ID2D1RenderTarget.cs | 516 + .../Graphics/Direct2D/ID2D1Resource.cs | 91 + .../Graphics/Direct2D/ID2D1ResourceTexture.cs | 91 + .../Direct2D/ID2D1RoundedRectangleGeometry.cs | 203 + .../Direct2D/ID2D1SimplifiedGeometrySink.cs | 139 + .../Graphics/Direct2D/ID2D1SolidColorBrush.cs | 140 + .../Graphics/Direct2D/ID2D1SourceTransform.cs | 131 + .../Graphics/Direct2D/ID2D1SpriteBatch.cs | 131 + .../Graphics/Direct2D/ID2D1StrokeStyle.cs | 163 + .../Graphics/Direct2D/ID2D1StrokeStyle1.cs | 171 + .../Graphics/Direct2D/ID2D1SvgAttribute.cs | 107 + .../Graphics/Direct2D/ID2D1SvgDocument.cs | 179 + .../Graphics/Direct2D/ID2D1SvgElement.cs | 331 + .../Graphics/Direct2D/ID2D1SvgGlyphStyle.cs | 131 + .../Graphics/Direct2D/ID2D1SvgPaint.cs | 163 + .../Graphics/Direct2D/ID2D1SvgPathData.cs | 179 + .../Direct2D/ID2D1SvgPointCollection.cs | 139 + .../Direct2D/ID2D1SvgStrokeDashArray.cs | 155 + .../Direct2D/ID2D1TessellationSink.cs | 99 + .../Graphics/Direct2D/ID2D1Transform.cs | 115 + .../Graphics/Direct2D/ID2D1TransformGraph.cs | 155 + .../Graphics/Direct2D/ID2D1TransformNode.cs | 91 + .../Direct2D/ID2D1TransformedGeometry.cs | 211 + .../Direct2D/ID2D1TransformedImageSource.cs | 107 + .../Graphics/Direct2D/ID2D1VertexBuffer.cs | 99 + .../Generated/Graphics/Direct3D.Dxc.cs | 2572 -- .../Generated/Graphics/Direct3D.cs | 179 - .../Generated/Graphics/Direct3D/ID3DBlob.cs | 99 + .../Direct3D/ID3DDestructionNotifier.cs | 99 + .../Graphics/Direct3D/ID3DInclude.cs | 44 + .../Graphics/Direct3D/IDxcAssembler.cs | 91 + .../Generated/Graphics/Direct3D/IDxcBlob.cs | 99 + .../Graphics/Direct3D/IDxcBlobEncoding.cs | 107 + .../Graphics/Direct3D/IDxcBlobUtf16.cs | 123 + .../Graphics/Direct3D/IDxcBlobUtf8.cs | 123 + .../Graphics/Direct3D/IDxcCompiler.cs | 107 + .../Graphics/Direct3D/IDxcCompiler2.cs | 115 + .../Graphics/Direct3D/IDxcCompiler3.cs | 99 + .../Graphics/Direct3D/IDxcCompilerArgs.cs | 123 + .../Graphics/Direct3D/IDxcContainerBuilder.cs | 115 + .../Direct3D/IDxcContainerReflection.cs | 131 + .../Graphics/Direct3D/IDxcExtraOutputs.cs | 99 + .../Graphics/Direct3D/IDxcIncludeHandler.cs | 91 + .../Graphics/Direct3D/IDxcLibrary.cs | 163 + .../Generated/Graphics/Direct3D/IDxcLinker.cs | 99 + .../Graphics/Direct3D/IDxcOperationResult.cs | 107 + .../Graphics/Direct3D/IDxcOptimizer.cs | 107 + .../Graphics/Direct3D/IDxcOptimizerPass.cs | 123 + .../Graphics/Direct3D/IDxcPdbUtils.cs | 275 + .../Generated/Graphics/Direct3D/IDxcResult.cs | 147 + .../Generated/Graphics/Direct3D/IDxcUtils.cs | 187 + .../Graphics/Direct3D/IDxcValidator.cs | 91 + .../Graphics/Direct3D/IDxcValidator2.cs | 99 + .../Graphics/Direct3D/IDxcVersionInfo.cs | 99 + .../Graphics/Direct3D/IDxcVersionInfo2.cs | 107 + .../Graphics/Direct3D/IDxcVersionInfo3.cs | 91 + .../Generated/Graphics/Direct3D11.cs | 19827 ------------- .../Graphics/Direct3D11/ID3D11Asynchronous.cs | 123 + .../Direct3D11/ID3D11AuthenticatedChannel.cs | 139 + .../Graphics/Direct3D11/ID3D11BlendState.cs | 123 + .../Graphics/Direct3D11/ID3D11BlendState1.cs | 131 + .../Graphics/Direct3D11/ID3D11Buffer.cs | 147 + .../Direct3D11/ID3D11ClassInstance.cs | 147 + .../Graphics/Direct3D11/ID3D11ClassLinkage.cs | 131 + .../Graphics/Direct3D11/ID3D11CommandList.cs | 123 + .../Direct3D11/ID3D11ComputeShader.cs | 115 + .../Graphics/Direct3D11/ID3D11Counter.cs | 131 + .../Direct3D11/ID3D11CryptoSession.cs | 155 + .../Graphics/Direct3D11/ID3D11Debug.cs | 155 + .../Direct3D11/ID3D11DepthStencilState.cs | 123 + .../Direct3D11/ID3D11DepthStencilView.cs | 131 + .../Graphics/Direct3D11/ID3D11Device.cs | 403 + .../Graphics/Direct3D11/ID3D11Device1.cs | 459 + .../Graphics/Direct3D11/ID3D11Device2.cs | 491 + .../Graphics/Direct3D11/ID3D11Device3.cs | 579 + .../Graphics/Direct3D11/ID3D11Device4.cs | 595 + .../Graphics/Direct3D11/ID3D11Device5.cs | 611 + .../Graphics/Direct3D11/ID3D11DeviceChild.cs | 115 + .../Direct3D11/ID3D11DeviceContext.cs | 979 + .../Direct3D11/ID3D11DeviceContext1.cs | 1131 + .../Direct3D11/ID3D11DeviceContext2.cs | 1211 + .../Direct3D11/ID3D11DeviceContext3.cs | 1235 + .../Direct3D11/ID3D11DeviceContext4.cs | 1251 + .../Graphics/Direct3D11/ID3D11DomainShader.cs | 115 + .../Graphics/Direct3D11/ID3D11Fence.cs | 139 + .../Direct3D11/ID3D11FunctionLinkingGraph.cs | 147 + .../ID3D11FunctionParameterReflection.cs | 63 + .../Direct3D11/ID3D11FunctionReflection.cs | 111 + .../Direct3D11/ID3D11GeometryShader.cs | 115 + .../Graphics/Direct3D11/ID3D11HullShader.cs | 115 + .../Graphics/Direct3D11/ID3D11InfoQueue.cs | 363 + .../Graphics/Direct3D11/ID3D11InputLayout.cs | 115 + .../Direct3D11/ID3D11LibraryReflection.cs | 99 + .../Graphics/Direct3D11/ID3D11Linker.cs | 107 + .../Graphics/Direct3D11/ID3D11LinkingNode.cs | 84 + .../Graphics/Direct3D11/ID3D11Module.cs | 91 + .../Direct3D11/ID3D11ModuleInstance.cs | 163 + .../Graphics/Direct3D11/ID3D11Multithread.cs | 115 + .../Graphics/Direct3D11/ID3D11PixelShader.cs | 115 + .../Graphics/Direct3D11/ID3D11Predicate.cs | 131 + .../Graphics/Direct3D11/ID3D11Query.cs | 131 + .../Graphics/Direct3D11/ID3D11Query1.cs | 139 + .../Direct3D11/ID3D11RasterizerState.cs | 123 + .../Direct3D11/ID3D11RasterizerState1.cs | 131 + .../Direct3D11/ID3D11RasterizerState2.cs | 139 + .../ID3D11RefDefaultTrackingOptions.cs | 91 + .../Direct3D11/ID3D11RefTrackingOptions.cs | 91 + .../Direct3D11/ID3D11RenderTargetView.cs | 131 + .../Direct3D11/ID3D11RenderTargetView1.cs | 139 + .../Graphics/Direct3D11/ID3D11Resource.cs | 139 + .../Graphics/Direct3D11/ID3D11SamplerState.cs | 123 + .../Direct3D11/ID3D11ShaderReflection.cs | 235 + .../ID3D11ShaderReflectionConstantBuffer.cs | 79 + .../Direct3D11/ID3D11ShaderReflectionType.cs | 143 + .../ID3D11ShaderReflectionVariable.cs | 87 + .../Direct3D11/ID3D11ShaderResourceView.cs | 131 + .../Direct3D11/ID3D11ShaderResourceView1.cs | 139 + .../Graphics/Direct3D11/ID3D11ShaderTrace.cs | 147 + .../Direct3D11/ID3D11ShaderTraceFactory.cs | 91 + .../Graphics/Direct3D11/ID3D11SwitchToRef.cs | 99 + .../Graphics/Direct3D11/ID3D11Texture1D.cs | 147 + .../Graphics/Direct3D11/ID3D11Texture2D.cs | 147 + .../Graphics/Direct3D11/ID3D11Texture2D1.cs | 155 + .../Graphics/Direct3D11/ID3D11Texture3D.cs | 147 + .../Graphics/Direct3D11/ID3D11Texture3D1.cs | 155 + .../Direct3D11/ID3D11TracingDevice.cs | 99 + .../Direct3D11/ID3D11UnorderedAccessView.cs | 131 + .../Direct3D11/ID3D11UnorderedAccessView1.cs | 139 + .../Graphics/Direct3D11/ID3D11VertexShader.cs | 115 + .../Graphics/Direct3D11/ID3D11VideoContext.cs | 579 + .../Direct3D11/ID3D11VideoContext1.cs | 691 + .../Direct3D11/ID3D11VideoContext2.cs | 723 + .../Direct3D11/ID3D11VideoContext3.cs | 739 + .../Graphics/Direct3D11/ID3D11VideoDecoder.cs | 131 + .../ID3D11VideoDecoderOutputView.cs | 131 + .../Graphics/Direct3D11/ID3D11VideoDevice.cs | 219 + .../Graphics/Direct3D11/ID3D11VideoDevice1.cs | 251 + .../Graphics/Direct3D11/ID3D11VideoDevice2.cs | 267 + .../Direct3D11/ID3D11VideoProcessor.cs | 131 + .../ID3D11VideoProcessorEnumerator.cs | 163 + .../ID3D11VideoProcessorEnumerator1.cs | 171 + .../ID3D11VideoProcessorInputView.cs | 131 + .../ID3D11VideoProcessorOutputView.cs | 131 + .../Graphics/Direct3D11/ID3D11View.cs | 123 + .../Direct3D11/ID3DDeviceContextState.cs | 115 + .../Direct3D11/ID3DUserDefinedAnnotation.cs | 115 + .../Generated/Graphics/Direct3D12.cs | 16416 ----------- .../Direct3D12/ID3D12CommandAllocator.cs | 131 + .../Graphics/Direct3D12/ID3D12CommandList.cs | 131 + .../Graphics/Direct3D12/ID3D12CommandQueue.cs | 212 + .../Direct3D12/ID3D12CommandSignature.cs | 123 + .../Graphics/Direct3D12/ID3D12Debug.cs | 91 + .../Graphics/Direct3D12/ID3D12Debug1.cs | 107 + .../Graphics/Direct3D12/ID3D12Debug2.cs | 91 + .../Graphics/Direct3D12/ID3D12Debug3.cs | 115 + .../Graphics/Direct3D12/ID3D12Debug4.cs | 123 + .../Graphics/Direct3D12/ID3D12Debug5.cs | 131 + .../Direct3D12/ID3D12DebugCommandList.cs | 107 + .../Direct3D12/ID3D12DebugCommandList1.cs | 107 + .../Direct3D12/ID3D12DebugCommandList2.cs | 123 + .../Direct3D12/ID3D12DebugCommandQueue.cs | 91 + .../Graphics/Direct3D12/ID3D12DebugDevice.cs | 107 + .../Graphics/Direct3D12/ID3D12DebugDevice1.cs | 107 + .../Graphics/Direct3D12/ID3D12DebugDevice2.cs | 123 + .../Direct3D12/ID3D12DescriptorHeap.cs | 150 + .../Graphics/Direct3D12/ID3D12Device.cs | 413 + .../Graphics/Direct3D12/ID3D12Device1.cs | 437 + .../Graphics/Direct3D12/ID3D12Device2.cs | 445 + .../Graphics/Direct3D12/ID3D12Device3.cs | 469 + .../Graphics/Direct3D12/ID3D12Device4.cs | 518 + .../Graphics/Direct3D12/ID3D12Device5.cs | 582 + .../Graphics/Direct3D12/ID3D12Device6.cs | 590 + .../Graphics/Direct3D12/ID3D12Device7.cs | 606 + .../Graphics/Direct3D12/ID3D12Device8.cs | 647 + .../Graphics/Direct3D12/ID3D12Device9.cs | 671 + .../Graphics/Direct3D12/ID3D12DeviceChild.cs | 123 + .../ID3D12DeviceRemovedExtendedData.cs | 99 + .../ID3D12DeviceRemovedExtendedData1.cs | 115 + .../ID3D12DeviceRemovedExtendedData2.cs | 131 + ...ID3D12DeviceRemovedExtendedDataSettings.cs | 107 + ...D3D12DeviceRemovedExtendedDataSettings1.cs | 115 + .../Graphics/Direct3D12/ID3D12Fence.cs | 147 + .../Graphics/Direct3D12/ID3D12Fence1.cs | 155 + .../ID3D12FunctionParameterReflection.cs | 63 + .../Direct3D12/ID3D12FunctionReflection.cs | 111 + .../Direct3D12/ID3D12GraphicsCommandList.cs | 539 + .../Direct3D12/ID3D12GraphicsCommandList1.cs | 587 + .../Direct3D12/ID3D12GraphicsCommandList2.cs | 595 + .../Direct3D12/ID3D12GraphicsCommandList3.cs | 603 + .../Direct3D12/ID3D12GraphicsCommandList4.cs | 675 + .../Direct3D12/ID3D12GraphicsCommandList5.cs | 691 + .../Direct3D12/ID3D12GraphicsCommandList6.cs | 699 + .../Graphics/Direct3D12/ID3D12Heap.cs | 132 + .../Graphics/Direct3D12/ID3D12Heap1.cs | 140 + .../Graphics/Direct3D12/ID3D12InfoQueue.cs | 363 + .../Graphics/Direct3D12/ID3D12InfoQueue1.cs | 379 + .../Direct3D12/ID3D12LibraryReflection.cs | 99 + .../Direct3D12/ID3D12LifetimeOwner.cs | 91 + .../Direct3D12/ID3D12LifetimeTracker.cs | 131 + .../Graphics/Direct3D12/ID3D12MetaCommand.cs | 131 + .../Graphics/Direct3D12/ID3D12Object.cs | 115 + .../Graphics/Direct3D12/ID3D12Pageable.cs | 123 + .../Direct3D12/ID3D12PipelineLibrary.cs | 163 + .../Direct3D12/ID3D12PipelineLibrary1.cs | 171 + .../Direct3D12/ID3D12PipelineState.cs | 131 + .../ID3D12ProtectedResourceSession.cs | 148 + .../ID3D12ProtectedResourceSession1.cs | 157 + .../Direct3D12/ID3D12ProtectedSession.cs | 139 + .../Graphics/Direct3D12/ID3D12QueryHeap.cs | 123 + .../Graphics/Direct3D12/ID3D12Resource.cs | 180 + .../Graphics/Direct3D12/ID3D12Resource1.cs | 188 + .../Graphics/Direct3D12/ID3D12Resource2.cs | 197 + .../Direct3D12/ID3D12RootSignature.cs | 123 + .../ID3D12RootSignatureDeserializer.cs | 91 + .../Direct3D12/ID3D12SDKConfiguration.cs | 91 + .../Direct3D12/ID3D12ShaderCacheSession.cs | 156 + .../Direct3D12/ID3D12ShaderReflection.cs | 235 + .../ID3D12ShaderReflectionConstantBuffer.cs | 79 + .../Direct3D12/ID3D12ShaderReflectionType.cs | 143 + .../ID3D12ShaderReflectionVariable.cs | 87 + .../Direct3D12/ID3D12SharingContract.cs | 115 + .../Graphics/Direct3D12/ID3D12StateObject.cs | 123 + .../Direct3D12/ID3D12StateObjectProperties.cs | 115 + .../Direct3D12/ID3D12SwapChainAssistant.cs | 115 + .../Graphics/Direct3D12/ID3D12Tools.cs | 99 + ...D3D12VersionedRootSignatureDeserializer.cs | 99 + .../Generated/Graphics/DirectWrite.cs | 18175 ------------ .../DirectWrite/IDWriteAsyncResult.cs | 99 + .../DirectWrite/IDWriteBitmapRenderTarget.cs | 147 + .../DirectWrite/IDWriteBitmapRenderTarget1.cs | 163 + .../IDWriteColorGlyphRunEnumerator.cs | 99 + .../IDWriteColorGlyphRunEnumerator1.cs | 107 + .../Graphics/DirectWrite/IDWriteFactory.cs | 251 + .../Graphics/DirectWrite/IDWriteFactory1.cs | 267 + .../Graphics/DirectWrite/IDWriteFactory2.cs | 307 + .../Graphics/DirectWrite/IDWriteFactory3.cs | 379 + .../Graphics/DirectWrite/IDWriteFactory4.cs | 403 + .../Graphics/DirectWrite/IDWriteFactory5.cs | 443 + .../Graphics/DirectWrite/IDWriteFactory6.cs | 499 + .../Graphics/DirectWrite/IDWriteFactory7.cs | 515 + .../Graphics/DirectWrite/IDWriteFont.cs | 171 + .../Graphics/DirectWrite/IDWriteFont1.cs | 203 + .../Graphics/DirectWrite/IDWriteFont2.cs | 211 + .../Graphics/DirectWrite/IDWriteFont3.cs | 251 + .../DirectWrite/IDWriteFontCollection.cs | 115 + .../DirectWrite/IDWriteFontCollection1.cs | 131 + .../DirectWrite/IDWriteFontCollection2.cs | 163 + .../DirectWrite/IDWriteFontCollection3.cs | 171 + .../IDWriteFontCollectionLoader.cs | 91 + .../IDWriteFontDownloadListener.cs | 91 + .../DirectWrite/IDWriteFontDownloadQueue.cs | 131 + .../Graphics/DirectWrite/IDWriteFontFace.cs | 203 + .../Graphics/DirectWrite/IDWriteFontFace1.cs | 299 + .../Graphics/DirectWrite/IDWriteFontFace2.cs | 339 + .../Graphics/DirectWrite/IDWriteFontFace3.cs | 451 + .../Graphics/DirectWrite/IDWriteFontFace4.cs | 483 + .../Graphics/DirectWrite/IDWriteFontFace5.cs | 523 + .../Graphics/DirectWrite/IDWriteFontFace6.cs | 539 + .../DirectWrite/IDWriteFontFaceReference.cs | 195 + .../DirectWrite/IDWriteFontFaceReference1.cs | 219 + .../DirectWrite/IDWriteFontFallback.cs | 91 + .../DirectWrite/IDWriteFontFallback1.cs | 99 + .../DirectWrite/IDWriteFontFallbackBuilder.cs | 107 + .../Graphics/DirectWrite/IDWriteFontFamily.cs | 131 + .../DirectWrite/IDWriteFontFamily1.cs | 155 + .../DirectWrite/IDWriteFontFamily2.cs | 171 + .../Graphics/DirectWrite/IDWriteFontFile.cs | 107 + .../DirectWrite/IDWriteFontFileEnumerator.cs | 99 + .../DirectWrite/IDWriteFontFileLoader.cs | 91 + .../DirectWrite/IDWriteFontFileStream.cs | 115 + .../Graphics/DirectWrite/IDWriteFontList.cs | 107 + .../Graphics/DirectWrite/IDWriteFontList1.cs | 131 + .../Graphics/DirectWrite/IDWriteFontList2.cs | 139 + .../DirectWrite/IDWriteFontResource.cs | 179 + .../Graphics/DirectWrite/IDWriteFontSet.cs | 163 + .../Graphics/DirectWrite/IDWriteFontSet1.cs | 267 + .../Graphics/DirectWrite/IDWriteFontSet2.cs | 275 + .../Graphics/DirectWrite/IDWriteFontSet3.cs | 299 + .../DirectWrite/IDWriteFontSetBuilder.cs | 115 + .../DirectWrite/IDWriteFontSetBuilder1.cs | 123 + .../DirectWrite/IDWriteFontSetBuilder2.cs | 139 + .../Graphics/DirectWrite/IDWriteGdiInterop.cs | 123 + .../DirectWrite/IDWriteGdiInterop1.cs | 155 + .../DirectWrite/IDWriteGlyphRunAnalysis.cs | 107 + .../IDWriteInMemoryFontFileLoader.cs | 107 + .../DirectWrite/IDWriteInlineObject.cs | 115 + .../DirectWrite/IDWriteLocalFontFileLoader.cs | 115 + .../DirectWrite/IDWriteLocalizedStrings.cs | 131 + .../DirectWrite/IDWriteNumberSubstitution.cs | 84 + .../DirectWrite/IDWritePixelSnapping.cs | 107 + .../IDWriteRemoteFontFileLoader.cs | 115 + .../IDWriteRemoteFontFileStream.cs | 147 + .../DirectWrite/IDWriteRenderingParams.cs | 123 + .../DirectWrite/IDWriteRenderingParams1.cs | 131 + .../DirectWrite/IDWriteRenderingParams2.cs | 139 + .../DirectWrite/IDWriteRenderingParams3.cs | 147 + .../Graphics/DirectWrite/IDWriteStringList.cs | 123 + .../DirectWrite/IDWriteTextAnalysisSink.cs | 115 + .../DirectWrite/IDWriteTextAnalysisSink1.cs | 123 + .../DirectWrite/IDWriteTextAnalysisSource.cs | 123 + .../DirectWrite/IDWriteTextAnalysisSource1.cs | 131 + .../DirectWrite/IDWriteTextAnalyzer.cs | 139 + .../DirectWrite/IDWriteTextAnalyzer1.cs | 211 + .../DirectWrite/IDWriteTextAnalyzer2.cs | 235 + .../Graphics/DirectWrite/IDWriteTextFormat.cs | 283 + .../DirectWrite/IDWriteTextFormat1.cs | 347 + .../DirectWrite/IDWriteTextFormat2.cs | 363 + .../DirectWrite/IDWriteTextFormat3.cs | 403 + .../Graphics/DirectWrite/IDWriteTextLayout.cs | 595 + .../DirectWrite/IDWriteTextLayout1.cs | 627 + .../DirectWrite/IDWriteTextLayout2.cs | 699 + .../DirectWrite/IDWriteTextLayout3.cs | 731 + .../DirectWrite/IDWriteTextLayout4.cs | 771 + .../DirectWrite/IDWriteTextRenderer.cs | 139 + .../DirectWrite/IDWriteTextRenderer1.cs | 171 + .../Graphics/DirectWrite/IDWriteTypography.cs | 107 + src/Vortice.Win32/Generated/Graphics/Dxgi.cs | 8762 ------ .../Generated/Graphics/Dxgi/IDXGIAdapter.cs | 139 + .../Generated/Graphics/Dxgi/IDXGIAdapter1.cs | 147 + .../Generated/Graphics/Dxgi/IDXGIAdapter2.cs | 155 + .../Generated/Graphics/Dxgi/IDXGIAdapter3.cs | 203 + .../Generated/Graphics/Dxgi/IDXGIAdapter4.cs | 211 + .../Generated/Graphics/Dxgi/IDXGIDebug.cs | 91 + .../Generated/Graphics/Dxgi/IDXGIDebug1.cs | 115 + .../Graphics/Dxgi/IDXGIDecodeSwapChain.cs | 155 + .../Generated/Graphics/Dxgi/IDXGIDevice.cs | 155 + .../Generated/Graphics/Dxgi/IDXGIDevice1.cs | 171 + .../Generated/Graphics/Dxgi/IDXGIDevice2.cs | 195 + .../Generated/Graphics/Dxgi/IDXGIDevice3.cs | 203 + .../Generated/Graphics/Dxgi/IDXGIDevice4.cs | 219 + .../Graphics/Dxgi/IDXGIDeviceSubObject.cs | 123 + .../Graphics/Dxgi/IDXGIDisplayControl.cs | 99 + .../Generated/Graphics/Dxgi/IDXGIFactory.cs | 155 + .../Generated/Graphics/Dxgi/IDXGIFactory1.cs | 171 + .../Generated/Graphics/Dxgi/IDXGIFactory2.cs | 259 + .../Generated/Graphics/Dxgi/IDXGIFactory3.cs | 267 + .../Generated/Graphics/Dxgi/IDXGIFactory4.cs | 283 + .../Generated/Graphics/Dxgi/IDXGIFactory5.cs | 291 + .../Generated/Graphics/Dxgi/IDXGIFactory6.cs | 299 + .../Generated/Graphics/Dxgi/IDXGIFactory7.cs | 315 + .../Graphics/Dxgi/IDXGIFactoryMedia.cs | 99 + .../Generated/Graphics/Dxgi/IDXGIInfoQueue.cs | 379 + .../Graphics/Dxgi/IDXGIKeyedMutex.cs | 139 + .../Generated/Graphics/Dxgi/IDXGIObject.cs | 115 + .../Generated/Graphics/Dxgi/IDXGIOutput.cs | 211 + .../Generated/Graphics/Dxgi/IDXGIOutput1.cs | 243 + .../Generated/Graphics/Dxgi/IDXGIOutput2.cs | 251 + .../Generated/Graphics/Dxgi/IDXGIOutput3.cs | 259 + .../Generated/Graphics/Dxgi/IDXGIOutput4.cs | 267 + .../Generated/Graphics/Dxgi/IDXGIOutput5.cs | 275 + .../Generated/Graphics/Dxgi/IDXGIOutput6.cs | 291 + .../Graphics/Dxgi/IDXGIOutputDuplication.cs | 179 + .../Generated/Graphics/Dxgi/IDXGIResource.cs | 155 + .../Generated/Graphics/Dxgi/IDXGIResource1.cs | 171 + .../Generated/Graphics/Dxgi/IDXGISurface.cs | 147 + .../Generated/Graphics/Dxgi/IDXGISurface1.cs | 163 + .../Generated/Graphics/Dxgi/IDXGISurface2.cs | 171 + .../Generated/Graphics/Dxgi/IDXGISwapChain.cs | 203 + .../Graphics/Dxgi/IDXGISwapChain1.cs | 291 + .../Graphics/Dxgi/IDXGISwapChain2.cs | 347 + .../Graphics/Dxgi/IDXGISwapChain3.cs | 379 + .../Graphics/Dxgi/IDXGISwapChain4.cs | 387 + .../Graphics/Dxgi/IDXGISwapChainMedia.cs | 107 + .../Graphics/Dxgi/IDXGraphicsAnalysis.cs | 99 + .../Generated/Graphics/Graphics.cs | 14 +- .../Generated/Graphics/Imaging.D2D.cs | 330 - .../Generated/Graphics/Imaging.cs | 6782 ----- .../Generated/Graphics/Imaging/IWICBitmap.cs | 147 + .../Graphics/Imaging/IWICBitmapClipper.cs | 131 + .../Graphics/Imaging/IWICBitmapCodecInfo.cs | 243 + .../IWICBitmapCodecProgressNotification.cs | 91 + .../Graphics/Imaging/IWICBitmapDecoder.cs | 171 + .../Graphics/Imaging/IWICBitmapDecoderInfo.cs | 267 + .../Graphics/Imaging/IWICBitmapEncoder.cs | 163 + .../Graphics/Imaging/IWICBitmapEncoderInfo.cs | 251 + .../Graphics/Imaging/IWICBitmapFlipRotator.cs | 131 + .../Graphics/Imaging/IWICBitmapFrameDecode.cs | 147 + .../Graphics/Imaging/IWICBitmapFrameEncode.cs | 171 + .../Graphics/Imaging/IWICBitmapLock.cs | 115 + .../Graphics/Imaging/IWICBitmapScaler.cs | 131 + .../Graphics/Imaging/IWICBitmapSource.cs | 123 + .../Imaging/IWICBitmapSourceTransform.cs | 115 + .../Graphics/Imaging/IWICColorContext.cs | 131 + .../Graphics/Imaging/IWICColorTransform.cs | 131 + .../Graphics/Imaging/IWICComponentFactory.cs | 339 + .../Graphics/Imaging/IWICComponentInfo.cs | 147 + .../Graphics/Imaging/IWICDdsDecoder.cs | 99 + .../Graphics/Imaging/IWICDdsEncoder.cs | 107 + .../Graphics/Imaging/IWICDdsFrameDecode.cs | 107 + .../Graphics/Imaging/IWICDevelopRaw.cs | 403 + .../IWICDevelopRawNotificationCallback.cs | 91 + .../Graphics/Imaging/IWICEnumMetadataItem.cs | 115 + .../Imaging/IWICFastMetadataEncoder.cs | 99 + .../Graphics/Imaging/IWICFormatConverter.cs | 139 + .../Imaging/IWICFormatConverterInfo.cs | 163 + .../Graphics/Imaging/IWICImageEncoder.cs | 107 + .../Graphics/Imaging/IWICImagingFactory.cs | 283 + .../Graphics/Imaging/IWICImagingFactory2.cs | 265 + .../Graphics/Imaging/IWICJpegFrameDecode.cs | 163 + .../Graphics/Imaging/IWICJpegFrameEncode.cs | 115 + .../Imaging/IWICMetadataBlockReader.cs | 115 + .../Imaging/IWICMetadataBlockWriter.cs | 155 + .../Imaging/IWICMetadataHandlerInfo.cs | 203 + .../Imaging/IWICMetadataQueryReader.cs | 115 + .../Imaging/IWICMetadataQueryWriter.cs | 131 + .../Graphics/Imaging/IWICMetadataReader.cs | 131 + .../Imaging/IWICMetadataReaderInfo.cs | 227 + .../Graphics/Imaging/IWICMetadataWriter.cs | 163 + .../Imaging/IWICMetadataWriterInfo.cs | 219 + .../Generated/Graphics/Imaging/IWICPalette.cs | 163 + .../Graphics/Imaging/IWICPersistStream.cs | 73 + .../Graphics/Imaging/IWICPixelFormatInfo.cs | 187 + .../Graphics/Imaging/IWICPixelFormatInfo2.cs | 203 + .../Imaging/IWICPlanarBitmapFrameEncode.cs | 99 + .../IWICPlanarBitmapSourceTransform.cs | 99 + .../Imaging/IWICPlanarFormatConverter.cs | 139 + .../Graphics/Imaging/IWICProgressCallback.cs | 91 + .../Imaging/IWICProgressiveLevelControl.cs | 107 + .../Generated/Graphics/Imaging/IWICStream.cs | 89 + .../Graphics/Imaging/IWICStreamProvider.cs | 115 + 512 files changed, 107122 insertions(+), 96605 deletions(-) create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1AnalysisTransform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Bitmap.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Bitmap1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BitmapBrush.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BitmapBrush1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BitmapRenderTarget.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BlendTransform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BorderTransform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BoundsAdjustmentTransform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Brush.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ColorContext.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ColorContext1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandList.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink5.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ComputeInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ComputeTransform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ConcreteTransform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DCRenderTarget.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device5.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device6.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext5.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext6.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawTransform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawingStateBlock.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawingStateBlock1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Effect.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectContext.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectContext1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectContext2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectImpl.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EllipseGeometry.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory5.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory6.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory7.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiInteropRenderTarget.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafile.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafile1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafileSink.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafileSink1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Geometry.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GeometryGroup.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GeometryRealization.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GeometrySink.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GradientMesh.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GradientStopCollection.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GradientStopCollection1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1HwndRenderTarget.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Image.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ImageBrush.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ImageSource.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ImageSourceFromWic.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Ink.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1InkStyle.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Layer.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1LinearGradientBrush.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1LookupTable3D.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Mesh.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Multithread.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1OffsetTransform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1PathGeometry.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1PathGeometry1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1PrintControl.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Properties.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RadialGradientBrush.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RectangleGeometry.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RenderInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RenderTarget.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Resource.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ResourceTexture.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RoundedRectangleGeometry.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SimplifiedGeometrySink.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SolidColorBrush.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SourceTransform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SpriteBatch.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1StrokeStyle.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1StrokeStyle1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgAttribute.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgDocument.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgElement.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgGlyphStyle.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgPaint.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgPathData.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgPointCollection.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgStrokeDashArray.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TessellationSink.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Transform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformGraph.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformNode.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformedGeometry.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformedImageSource.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1VertexBuffer.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/ID3DBlob.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/ID3DDestructionNotifier.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/ID3DInclude.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcAssembler.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlob.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlobEncoding.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlobUtf16.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlobUtf8.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompiler.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompiler2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompiler3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompilerArgs.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcContainerBuilder.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcContainerReflection.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcExtraOutputs.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcIncludeHandler.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcLibrary.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcLinker.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcOperationResult.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcOptimizer.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcOptimizerPass.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcPdbUtils.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcResult.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcUtils.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcValidator.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcValidator2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcVersionInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcVersionInfo2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcVersionInfo3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Asynchronous.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11AuthenticatedChannel.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11BlendState.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11BlendState1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Buffer.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ClassInstance.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ClassLinkage.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11CommandList.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ComputeShader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Counter.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11CryptoSession.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Debug.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DepthStencilState.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DepthStencilView.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device5.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceChild.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DomainShader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Fence.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11FunctionLinkingGraph.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11FunctionParameterReflection.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11FunctionReflection.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11GeometryShader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11HullShader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11InfoQueue.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11InputLayout.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11LibraryReflection.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Linker.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11LinkingNode.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Module.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ModuleInstance.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Multithread.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11PixelShader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Predicate.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Query.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Query1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RasterizerState.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RasterizerState1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RasterizerState2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RefDefaultTrackingOptions.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RefTrackingOptions.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RenderTargetView.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RenderTargetView1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Resource.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11SamplerState.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflection.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflectionConstantBuffer.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflectionType.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflectionVariable.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderResourceView.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderResourceView1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderTrace.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderTraceFactory.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11SwitchToRef.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture1D.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture2D.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture2D1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture3D.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture3D1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11TracingDevice.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11UnorderedAccessView.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11UnorderedAccessView1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VertexShader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDecoder.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDecoderOutputView.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDevice.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDevice1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDevice2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessor.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorEnumerator.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorEnumerator1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorInputView.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorOutputView.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11View.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3DDeviceContextState.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3DUserDefinedAnnotation.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandAllocator.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandList.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandQueue.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandSignature.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug5.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandList.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandList1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandList2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandQueue.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugDevice.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugDevice1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugDevice2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DescriptorHeap.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device5.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device6.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device7.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device8.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device9.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceChild.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedData.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedData1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedData2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedDataSettings.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedDataSettings1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Fence.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Fence1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12FunctionParameterReflection.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12FunctionReflection.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList5.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList6.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Heap.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Heap1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12InfoQueue.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12InfoQueue1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12LibraryReflection.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12LifetimeOwner.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12LifetimeTracker.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12MetaCommand.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Object.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Pageable.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12PipelineLibrary.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12PipelineLibrary1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12PipelineState.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ProtectedResourceSession.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ProtectedResourceSession1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ProtectedSession.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12QueryHeap.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Resource.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Resource1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Resource2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12RootSignature.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12RootSignatureDeserializer.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12SDKConfiguration.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderCacheSession.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflection.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflectionConstantBuffer.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflectionType.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflectionVariable.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12SharingContract.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12StateObject.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12StateObjectProperties.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12SwapChainAssistant.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Tools.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12VersionedRootSignatureDeserializer.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteAsyncResult.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteBitmapRenderTarget.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteBitmapRenderTarget1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteColorGlyphRunEnumerator.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteColorGlyphRunEnumerator1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory5.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory6.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory7.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollectionLoader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontDownloadListener.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontDownloadQueue.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace5.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace6.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFaceReference.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFaceReference1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFallback.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFallback1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFallbackBuilder.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFamily.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFamily1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFamily2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFile.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFileEnumerator.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFileLoader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFileStream.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontList.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontList1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontList2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontResource.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSetBuilder.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSetBuilder1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSetBuilder2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteGdiInterop.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteGdiInterop1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteGlyphRunAnalysis.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteInMemoryFontFileLoader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteInlineObject.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteLocalFontFileLoader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteLocalizedStrings.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteNumberSubstitution.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWritePixelSnapping.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRemoteFontFileLoader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRemoteFontFileStream.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteStringList.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSink.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSink1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSource.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSource1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalyzer.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalyzer1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalyzer2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextRenderer.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextRenderer1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTypography.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDebug.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDebug1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDecodeSwapChain.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDeviceSubObject.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDisplayControl.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory5.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory6.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory7.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactoryMedia.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIInfoQueue.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIKeyedMutex.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIObject.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput5.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput6.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutputDuplication.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIResource.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIResource1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISurface.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISurface1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISurface2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain1.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain3.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain4.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChainMedia.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGraphicsAnalysis.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmap.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapClipper.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapCodecInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapCodecProgressNotification.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapDecoder.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapDecoderInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapEncoder.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapEncoderInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapFlipRotator.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapFrameDecode.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapFrameEncode.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapLock.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapScaler.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapSource.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapSourceTransform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICColorContext.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICColorTransform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICComponentFactory.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICComponentInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICDdsDecoder.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICDdsEncoder.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICDdsFrameDecode.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICDevelopRaw.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICDevelopRawNotificationCallback.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICEnumMetadataItem.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICFastMetadataEncoder.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICFormatConverter.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICFormatConverterInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICImageEncoder.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICImagingFactory.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICImagingFactory2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICJpegFrameDecode.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICJpegFrameEncode.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataBlockReader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataBlockWriter.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataHandlerInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataQueryReader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataQueryWriter.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataReader.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataReaderInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataWriter.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataWriterInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICPalette.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICPersistStream.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICPixelFormatInfo.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICPixelFormatInfo2.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICPlanarBitmapFrameEncode.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICPlanarBitmapSourceTransform.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICPlanarFormatConverter.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICProgressCallback.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICProgressiveLevelControl.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICStream.cs create mode 100644 src/Vortice.Win32/Generated/Graphics/Imaging/IWICStreamProvider.cs diff --git a/src/Generator/ApiData.cs b/src/Generator/ApiData.cs index 475f770..bc5050d 100644 --- a/src/Generator/ApiData.cs +++ b/src/Generator/ApiData.cs @@ -86,6 +86,11 @@ public class ApiType public List ReturnAttrs { get; set; } public IList Params { get; set; } = new List(); public string DllImport { get; set; } + + public override string ToString() + { + return $"{Kind}: {Name}"; + } } public sealed class ApiData diff --git a/src/Generator/CodeWriter.cs b/src/Generator/CodeWriter.cs index 80f97ff..4cadd99 100644 --- a/src/Generator/CodeWriter.cs +++ b/src/Generator/CodeWriter.cs @@ -7,19 +7,22 @@ namespace Generator; public sealed class CodeWriter : IDisposable { - private readonly string _fileName; private bool _shouldIndent = true; private readonly string[] _indentStrings; private string _indentString = ""; private readonly StringBuilder _builder = new(); public int IndentLevel { get; private set; } + + public string FileName { get; } public string Api { get; } public string DocFileName { get; } + public string Directory => Path.GetDirectoryName(FileName)!; + public CodeWriter(string fileName, string api, string docFileName, string ns, params string[] usingNamespaces) { - _fileName = fileName; + FileName = fileName; Api = api; DocFileName = docFileName; @@ -62,10 +65,10 @@ public sealed class CodeWriter : IDisposable public void Dispose() { - if (string.IsNullOrEmpty(_fileName) == false) + if (string.IsNullOrEmpty(FileName) == false) { string content = _builder.ToString(); - File.WriteAllText(_fileName, content); + File.WriteAllText(FileName, content); } } diff --git a/src/Generator/Program.cs b/src/Generator/Program.cs index d12d391..0144c18 100644 --- a/src/Generator/Program.cs +++ b/src/Generator/Program.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System; +using System.Collections.Generic; using System.Globalization; using System.Text; using Newtonsoft.Json; @@ -868,7 +869,7 @@ public static class Program private static readonly HashSet s_visitedEnums = new(); private static readonly HashSet s_visitedStructs = new(); - private static readonly Dictionary>> s_visitedComTypes = new(); + private static readonly Dictionary>> s_visitedComTypes = new(); private static bool s_generateUnmanagedDocs = true; @@ -943,6 +944,17 @@ public static class Program fileName += ".cs"; + if (docFile != "json") + { + string subdirectory = Path.Combine(outputFolder, docFile); + if (Directory.Exists(subdirectory) == false) + Directory.CreateDirectory(subdirectory); + } + else + { + docFile = string.Empty; + } + using var writer = new CodeWriter( Path.Combine(outputFolder, fileName), ns, @@ -1176,8 +1188,16 @@ public static class Program // Generate methods // TODO: FIX broken VTable ID3D12Heap, ID2D1Factory2 - List> methodsToGenerate = new(); + if (comType.Name == "ID3D12Pageable") + { + + } + + Dictionary> methodsToGenerate = new(); + + // We must generate from lower to upper ApiType iterateType = comType; + List typesToGenerate = new(); while (iterateType.Interface != null && iterateType.Interface.Name != "IUnknown" && iterateType.Interface.Name != "IStream" @@ -1188,14 +1208,7 @@ public static class Program if (iterateType != null) { - foreach (ApiType method in iterateType.Methods) - { - // Until we add Storage.Xps.Printing.IPrintDocumentPackageTarget - if (method.Name == "CreatePrintControl") - continue; - - methodsToGenerate.Add(new(method, iterateType.Name)); - } + typesToGenerate.Add(iterateType); } else { @@ -1203,23 +1216,59 @@ public static class Program foreach (var knownMethod in knownMethods) { - methodsToGenerate.Add(knownMethod); + methodsToGenerate.Add(knownMethod.Key, knownMethod.Value); } break; } } + if (typesToGenerate.Count > 1) + { + typesToGenerate.Reverse(); + } + + foreach (ApiType type in typesToGenerate) + { + foreach (ApiType method in type.Methods) + { + // Until we add Storage.Xps.Printing.IPrintDocumentPackageTarget + if (method.Name == "CreatePrintControl") + continue; + + if (methodsToGenerate.TryGetValue(type.Name, out List? functions) == false) + { + functions = new List(); + methodsToGenerate.Add(type.Name, functions); + } + + functions.Add(method); + } + } + foreach (ApiType method in comType.Methods) { // Until we add Storage.Xps.Printing.IPrintDocumentPackageTarget if (method.Name == "CreatePrintControl") continue; - methodsToGenerate.Add(new(method, comType.Name)); + if (methodsToGenerate.TryGetValue(comType.Name, out List? functions) == false) + { + functions = new List(); + methodsToGenerate.Add(comType.Name, functions); + } + + functions.Add(method); } - GenerateComType(api, writer, comType, methodsToGenerate); + string subdirectory = Path.Combine(writer.Directory, writer.DocFileName); + string fileName = $"{comType.Name}.cs"; + using var comTypeWriter = new CodeWriter( + Path.Combine(subdirectory, fileName), + writer.Api, + "../" + writer.DocFileName, + $"Win32.{writer.Api}"); + GenerateComType(api, comTypeWriter, comType, methodsToGenerate); } if (regionWritten) @@ -1773,7 +1822,7 @@ public static class Program ApiData api, CodeWriter writer, ApiType comType, - List> methodsToGenerate) + Dictionary> methodsToGenerate) { string csTypeName = comType.Name; @@ -1860,227 +1909,229 @@ public static class Program } bool needNewLine = false; - foreach (KeyValuePair methodPair in methodsToGenerate) + foreach (KeyValuePair> methodPair in methodsToGenerate) { - if (needNewLine) + string docName = methodPair.Key; + + foreach (ApiType method in methodPair.Value) { - writer.WriteLine(); - } - - ApiType method = methodPair.Key; - string docName = methodPair.Value; - - // TODO: Handle inherit - string returnType = GetTypeName(method.ReturnType); - - StringBuilder argumentBuilder = new(); - StringBuilder argumentsTypesBuilder = new(); - StringBuilder argumentsNameBuilder = new(); - int parameterIndex = 0; - - bool allOptional = false; - - if (method.Name == "EndDraw") - { - allOptional = - method.Params.All(item => item.Attrs.Any(attr => attr is string str && str == "Optional")); - } - - bool useReturnAsParameter = false; - if (returnType != "void" && - method.ReturnType.TargetKind != "Com" && - method.ReturnType.Kind == "ApiRef" && - !IsPrimitive(method.ReturnType) && - !IsEnum(method.ReturnType)) - { - useReturnAsParameter = true; - } - - // Return type - returnType = NormalizeTypeName(writer.Api, returnType); - - string returnMarshalType = returnType; - if (returnMarshalType.ToLower() == "hresult") - { - returnMarshalType = "int"; - } - - if (useReturnAsParameter) - { - argumentsTypesBuilder.Append(returnMarshalType); - argumentsTypesBuilder.Append('*'); - - if (method.Params.Count > 0) + if (needNewLine) { - argumentsTypesBuilder.Append(", "); + writer.WriteLine(); } - } - foreach (ApiParameter parameter in method.Params) - { - bool asPointer = false; - string parameterType = string.Empty; + // TODO: Handle inherit + string returnType = GetTypeName(method.ReturnType); - if (parameter.Type.Kind == "ApiRef") + StringBuilder argumentBuilder = new(); + StringBuilder argumentsTypesBuilder = new(); + StringBuilder argumentsNameBuilder = new(); + int parameterIndex = 0; + + bool allOptional = false; + + if (method.Name == "EndDraw") { - if (parameter.Type.TargetKind == "FunctionPointer") + allOptional = + method.Params.All(item => item.Attrs.Any(attr => attr is string str && str == "Optional")); + } + + bool useReturnAsParameter = false; + if (returnType != "void" && + method.ReturnType.TargetKind != "Com" && + method.ReturnType.Kind == "ApiRef" && + !IsPrimitive(method.ReturnType) && + !IsEnum(method.ReturnType)) + { + useReturnAsParameter = true; + } + + // Return type + returnType = NormalizeTypeName(writer.Api, returnType); + + string returnMarshalType = returnType; + if (returnMarshalType.ToLower() == "hresult") + { + returnMarshalType = "int"; + } + + if (useReturnAsParameter) + { + argumentsTypesBuilder.Append(returnMarshalType); + argumentsTypesBuilder.Append('*'); + + if (method.Params.Count > 0) { - ApiType functionType = api.Types.First(item => item.Name == parameter.Type.Name && item.Kind == "FunctionPointer"); - parameterType = "delegate* unmanaged[Stdcall]"; + argumentsTypesBuilder.Append(", "); } - else + } + + foreach (ApiParameter parameter in method.Params) + { + bool asPointer = false; + string parameterType = string.Empty; + + if (parameter.Type.Kind == "ApiRef") { - string fullTypeName = $"{parameter.Type.Api}.{parameter.Type.Name}"; - if (!IsPrimitive(parameter.Type) && !IsEnum(fullTypeName)) + if (parameter.Type.TargetKind == "FunctionPointer") { - asPointer = true; + ApiType functionType = api.Types.First(item => item.Name == parameter.Type.Name && item.Kind == "FunctionPointer"); + parameterType = "delegate* unmanaged[Stdcall]"; + } + else + { + string fullTypeName = $"{parameter.Type.Api}.{parameter.Type.Name}"; + if (!IsPrimitive(parameter.Type) && !IsEnum(fullTypeName)) + { + asPointer = true; + } } } - } - if (string.IsNullOrEmpty(parameterType)) - { - string parameterNameLookup = $"{comType.Name}::{method.Name}::{parameter.Name}"; - if (s_mapFunctionParameters.TryGetValue(parameterNameLookup, out string? remapType)) + if (string.IsNullOrEmpty(parameterType)) { - parameterType = GetTypeName($"{writer.Api}.{remapType}"); - if (parameter.Attrs.Any(item => item is string str && str == "Out")) + string parameterNameLookup = $"{comType.Name}::{method.Name}::{parameter.Name}"; + if (s_mapFunctionParameters.TryGetValue(parameterNameLookup, out string? remapType)) { - parameterType += "*"; + parameterType = GetTypeName($"{writer.Api}.{remapType}"); + if (parameter.Attrs.Any(item => item is string str && str == "Out")) + { + parameterType += "*"; + } + } + else + { + parameterType = GetTypeName(parameter.Type, asPointer); } } - else - { - parameterType = GetTypeName(parameter.Type, asPointer); - } - } - parameterType = NormalizeTypeName(writer.Api, parameterType); - string parameterName = parameter.Name; + parameterType = NormalizeTypeName(writer.Api, parameterType); + string parameterName = parameter.Name; - bool isOptional = parameter.Attrs.Any(item => item is string str && str == "Optional"); - if (parameter.Attrs.Any(item => item is string str && str == "ComOutPtr")) - { - if (!IsPrimitive(parameter.Type)) - { - parameterType += "*"; - } - } - else if (parameterType.EndsWith("**") == false && - parameter.Attrs.Any(item => item is string str && (str == "RetVal" || str == "Out"))) - { - if (parameter.Type.Child == null) - { - //if (!IsPrimitive(parameter.Type)) - //{ - // parameterType += "*"; - //} - } - else if (parameter.Type.Child.Kind != "ApiRef") + bool isOptional = parameter.Attrs.Any(item => item is string str && str == "Optional"); + if (parameter.Attrs.Any(item => item is string str && str == "ComOutPtr")) { if (!IsPrimitive(parameter.Type)) { parameterType += "*"; } } - else + else if (parameterType.EndsWith("**") == false && + parameter.Attrs.Any(item => item is string str && (str == "RetVal" || str == "Out"))) { - string apiName = GetApiName(parameter.Type.Child); - string fullTypeName = $"{apiName}.{parameter.Type.Child.Name}"; - - if (!IsPrimitive(parameter.Type) && !IsStruct(fullTypeName) && !IsEnum(fullTypeName)) + if (parameter.Type.Child == null) { - parameterType += "*"; + //if (!IsPrimitive(parameter.Type)) + //{ + // parameterType += "*"; + //} + } + else if (parameter.Type.Child.Kind != "ApiRef") + { + if (!IsPrimitive(parameter.Type)) + { + parameterType += "*"; + } + } + else + { + string apiName = GetApiName(parameter.Type.Child); + string fullTypeName = $"{apiName}.{parameter.Type.Child.Name}"; + + if (!IsPrimitive(parameter.Type) && !IsStruct(fullTypeName) && !IsEnum(fullTypeName)) + { + parameterType += "*"; + } } } + + parameterName = CleanupName(parameterName); + parameterType = NormalizeTypeName(writer.Api, parameterType); + + argumentBuilder.Append(parameterType).Append(' ').Append(parameterName); + if (allOptional == true && isOptional == true) + { + argumentBuilder.Append(" = null"); + } + + argumentsTypesBuilder.Append(parameterType); + argumentsNameBuilder.Append(parameterName); + + if (parameterIndex < method.Params.Count - 1) + { + argumentBuilder.Append(", "); + argumentsTypesBuilder.Append(", "); + argumentsNameBuilder.Append(", "); + } + + parameterIndex++; } - parameterName = CleanupName(parameterName); - parameterType = NormalizeTypeName(writer.Api, parameterType); - - argumentBuilder.Append(parameterType).Append(' ').Append(parameterName); - if (allOptional == true && isOptional == true) + if (method.Params.Count > 0 || useReturnAsParameter) { - argumentBuilder.Append(" = null"); - } - - argumentsTypesBuilder.Append(parameterType); - argumentsNameBuilder.Append(parameterName); - - if (parameterIndex < method.Params.Count - 1) - { - argumentBuilder.Append(", "); argumentsTypesBuilder.Append(", "); - argumentsNameBuilder.Append(", "); } - parameterIndex++; - } - - if (method.Params.Count > 0 || useReturnAsParameter) - { - argumentsTypesBuilder.Append(", "); - } - - argumentsTypesBuilder.Append(returnMarshalType); - if (useReturnAsParameter) - { - argumentsTypesBuilder.Append('*'); - } - - string argumentsString = argumentBuilder.ToString(); - string argumentTypesString = argumentsTypesBuilder.ToString(); - string argumentNamesString = argumentsNameBuilder.ToString(); - if (method.Params.Count > 0) - { - argumentNamesString = ", " + argumentNamesString; - } - - if (comType.Name == docName) - { - writer.WriteLine($"/// "); - } - else - { - writer.WriteLine($"/// "); - } - - writer.WriteLine("[MethodImpl(MethodImplOptions.AggressiveInlining)]"); - writer.WriteLine($"[VtblIndex({vtblIndex})]"); - - string methodSuffix = string.Empty; - if (method.Name == "GetType") - { - if (string.IsNullOrEmpty(argumentsString)) + argumentsTypesBuilder.Append(returnMarshalType); + if (useReturnAsParameter) { - methodSuffix = "new "; + argumentsTypesBuilder.Append('*'); } - } - using (writer.PushBlock($"public {methodSuffix}{returnType} {method.Name}({argumentsString})")) - { - if (returnType != "void") + string argumentsString = argumentBuilder.ToString(); + string argumentTypesString = argumentsTypesBuilder.ToString(); + string argumentNamesString = argumentsNameBuilder.ToString(); + if (method.Params.Count > 0) { - if (useReturnAsParameter) + argumentNamesString = ", " + argumentNamesString; + } + + if (comType.Name == docName) + { + writer.WriteLine($"/// "); + } + else + { + writer.WriteLine($"/// "); + } + + writer.WriteLine("[MethodImpl(MethodImplOptions.AggressiveInlining)]"); + writer.WriteLine($"[VtblIndex({vtblIndex})]"); + + string methodSuffix = string.Empty; + if (method.Name == "GetType") + { + if (string.IsNullOrEmpty(argumentsString)) { - writer.WriteLine($"{returnType} result;"); - writer.Write("return "); - writer.WriteLine($"*((delegate* unmanaged[Stdcall]<{comType.Name}*, {argumentTypesString}>)(lpVtbl[{vtblIndex}]))(({comType.Name}*)Unsafe.AsPointer(ref this), &result{argumentNamesString});"); - } - else - { - writer.Write("return "); + methodSuffix = "new "; } } - if (!useReturnAsParameter) + using (writer.PushBlock($"public {methodSuffix}{returnType} {method.Name}({argumentsString})")) { - writer.WriteLine($"((delegate* unmanaged[Stdcall]<{comType.Name}*, {argumentTypesString}>)(lpVtbl[{vtblIndex}]))(({comType.Name}*)Unsafe.AsPointer(ref this){argumentNamesString});"); - } - } + if (returnType != "void") + { + if (useReturnAsParameter) + { + writer.WriteLine($"{returnType} result;"); + writer.Write("return "); + writer.WriteLine($"*((delegate* unmanaged[Stdcall]<{comType.Name}*, {argumentTypesString}>)(lpVtbl[{vtblIndex}]))(({comType.Name}*)Unsafe.AsPointer(ref this), &result{argumentNamesString});"); + } + else + { + writer.Write("return "); + } + } - needNewLine = true; - vtblIndex++; + if (!useReturnAsParameter) + { + writer.WriteLine($"((delegate* unmanaged[Stdcall]<{comType.Name}*, {argumentTypesString}>)(lpVtbl[{vtblIndex}]))(({comType.Name}*)Unsafe.AsPointer(ref this){argumentNamesString});"); + } + } + + needNewLine = true; + vtblIndex++; + } } } diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D.Common.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D.Common.cs index da48f12..26f5727 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct2D.Common.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D.Common.cs @@ -341,123 +341,5 @@ public partial struct BezierSegment #endregion Structs #region COM Types -/// -/// ID2D1SimplifiedGeometrySink -[Guid("2cd9069e-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1SimplifiedGeometrySink : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1SimplifiedGeometrySink -{ - public static ref readonly Guid IID_ID2D1SimplifiedGeometrySink - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9E, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SimplifiedGeometrySink)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetFillMode(FillMode fillMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this), fillMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetSegmentFlags(PathSegment vertexFlags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this), vertexFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void BeginFigure(System.Drawing.PointF* startPoint, FigureBegin figureBegin) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this), startPoint, figureBegin); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void AddLines(System.Drawing.PointF** points, uint pointsCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this), points, pointsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void AddBeziers(BezierSegment* beziers, uint beziersCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this), beziers, beziersCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void EndFigure(FigureEnd figureEnd) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this), figureEnd); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult Close() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this)); - } -} - #endregion Com Types diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D.cs index 1f01973..2b193fc 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct2D.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D.cs @@ -5484,23250 +5484,6 @@ public partial struct SimpleColorProfile #endregion Structs #region COM Types -/// -/// ID2D1Resource -[Guid("2cd90691-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1Resource : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1Resource -{ - public static ref readonly Guid IID_ID2D1Resource - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x91, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Resource)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Resource*)Unsafe.AsPointer(ref this), factory); - } -} - -/// -/// ID2D1Image -[Guid("65019f75-8da2-497c-b32c-dfa34e48ede6")] -[NativeTypeName("struct ID2D1Image : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Image -{ - public static ref readonly Guid IID_ID2D1Image - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x75, 0x9F, 0x01, 0x65, - 0xA2, 0x8D, - 0x7C, 0x49, - 0xB3, - 0x2C, - 0xDF, - 0xA3, - 0x4E, - 0x48, - 0xED, - 0xE6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Image)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Image*)Unsafe.AsPointer(ref this), factory); - } -} - -/// -/// ID2D1Bitmap -[Guid("a2296057-ea42-4099-983b-539fb6505426")] -[NativeTypeName("struct ID2D1Bitmap : ID2D1Image")] -[NativeInheritance("ID2D1Image")] -public unsafe partial struct ID2D1Bitmap -{ - public static ref readonly Guid IID_ID2D1Bitmap - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x57, 0x60, 0x29, 0xA2, - 0x42, 0xEA, - 0x99, 0x40, - 0x98, - 0x3B, - 0x53, - 0x9F, - 0xB6, - 0x50, - 0x54, - 0x26 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Bitmap)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CopyFromBitmap(System.Drawing.Point* destPoint, ID2D1Bitmap* bitmap, Common.RectU* srcRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this), destPoint, bitmap, srcRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CopyFromRenderTarget(System.Drawing.Point* destPoint, ID2D1RenderTarget* renderTarget, Common.RectU* srcRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this), destPoint, renderTarget, srcRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CopyFromMemory(Common.RectU* dstRect, void* srcData, uint pitch) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this), dstRect, srcData, pitch); - } -} - -/// -/// ID2D1GradientStopCollection -[Guid("2cd906a7-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1GradientStopCollection : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1GradientStopCollection -{ - public static ref readonly Guid IID_ID2D1GradientStopCollection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA7, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GradientStopCollection)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GradientStopCollection*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetGradientStopCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GradientStopCollection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetGradientStops(GradientStop* gradientStops, uint gradientStopsCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GradientStopCollection*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public Gamma GetColorInterpolationGamma() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1GradientStopCollection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public ExtendMode GetExtendMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1GradientStopCollection*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1Brush -[Guid("2cd906a8-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1Brush : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Brush -{ - public static ref readonly Guid IID_ID2D1Brush - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA8, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Brush)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Brush*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetOpacity(float opacity) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Brush*)Unsafe.AsPointer(ref this), opacity); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Brush*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public float GetOpacity() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Brush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Brush*)Unsafe.AsPointer(ref this), transform); - } -} - -/// -/// ID2D1BitmapBrush -[Guid("2cd906aa-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1BitmapBrush : ID2D1Brush")] -[NativeInheritance("ID2D1Brush")] -public unsafe partial struct ID2D1BitmapBrush -{ - public static ref readonly Guid IID_ID2D1BitmapBrush - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAA, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BitmapBrush)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetOpacity(float opacity) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), opacity); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public float GetOpacity() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void SetExtendModeX(ExtendMode extendModeX) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), extendModeX); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void SetExtendModeY(ExtendMode extendModeY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), extendModeY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void SetInterpolationMode(BitmapInterpolationMode interpolationMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), interpolationMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void SetBitmap(ID2D1Bitmap* bitmap) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public ExtendMode GetExtendModeX() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public ExtendMode GetExtendModeY() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public BitmapInterpolationMode GetInterpolationMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void GetBitmap(ID2D1Bitmap** bitmap) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), bitmap); - } -} - -/// -/// ID2D1SolidColorBrush -[Guid("2cd906a9-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1SolidColorBrush : ID2D1Brush")] -[NativeInheritance("ID2D1Brush")] -public unsafe partial struct ID2D1SolidColorBrush -{ - public static ref readonly Guid IID_ID2D1SolidColorBrush - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA9, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SolidColorBrush)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetOpacity(float opacity) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this), opacity); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public float GetOpacity() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void SetColor(Common.ColorF* color) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this), color); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public Common.ColorF GetColor() - { - Common.ColorF result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this), &result); - } -} - -/// -/// ID2D1LinearGradientBrush -[Guid("2cd906ab-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1LinearGradientBrush : ID2D1Brush")] -[NativeInheritance("ID2D1Brush")] -public unsafe partial struct ID2D1LinearGradientBrush -{ - public static ref readonly Guid IID_ID2D1LinearGradientBrush - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAB, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1LinearGradientBrush)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetOpacity(float opacity) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), opacity); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public float GetOpacity() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void SetStartPoint(System.Drawing.PointF* startPoint) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), startPoint); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void SetEndPoint(System.Drawing.PointF* endPoint) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), endPoint); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public System.Drawing.PointF GetStartPoint() - { - System.Drawing.PointF result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public System.Drawing.PointF GetEndPoint() - { - System.Drawing.PointF result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void GetGradientStopCollection(ID2D1GradientStopCollection** gradientStopCollection) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), gradientStopCollection); - } -} - -/// -/// ID2D1RadialGradientBrush -[Guid("2cd906ac-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1RadialGradientBrush : ID2D1Brush")] -[NativeInheritance("ID2D1Brush")] -public unsafe partial struct ID2D1RadialGradientBrush -{ - public static ref readonly Guid IID_ID2D1RadialGradientBrush - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAC, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RadialGradientBrush)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetOpacity(float opacity) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), opacity); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public float GetOpacity() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void SetCenter(System.Drawing.PointF* center) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), center); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void SetGradientOriginOffset(System.Drawing.PointF* gradientOriginOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), gradientOriginOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void SetRadiusX(float radiusX) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), radiusX); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void SetRadiusY(float radiusY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), radiusY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public System.Drawing.PointF GetCenter() - { - System.Drawing.PointF result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public System.Drawing.PointF GetGradientOriginOffset() - { - System.Drawing.PointF result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public float GetRadiusX() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public float GetRadiusY() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GetGradientStopCollection(ID2D1GradientStopCollection** gradientStopCollection) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), gradientStopCollection); - } -} - -/// -/// ID2D1StrokeStyle -[Guid("2cd9069d-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1StrokeStyle : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1StrokeStyle -{ - public static ref readonly Guid IID_ID2D1StrokeStyle - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9D, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1StrokeStyle)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public CapStyle GetStartCap() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public CapStyle GetEndCap() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public CapStyle GetDashCap() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public float GetMiterLimit() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public LineJoin GetLineJoin() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public float GetDashOffset() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public DashStyle GetDashStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public uint GetDashesCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void GetDashes(float* dashes, uint dashesCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this), dashes, dashesCount); - } -} - -/// -/// ID2D1Geometry -[Guid("2cd906a1-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1Geometry : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Geometry -{ - public static ref readonly Guid IID_ID2D1Geometry - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA1, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Geometry)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), worldTransform, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); - } -} - -/// -/// ID2D1RectangleGeometry -[Guid("2cd906a2-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1RectangleGeometry : ID2D1Geometry")] -[NativeInheritance("ID2D1Geometry")] -public unsafe partial struct ID2D1RectangleGeometry -{ - public static ref readonly Guid IID_ID2D1RectangleGeometry - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA2, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RectangleGeometry)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void GetRect(Common.RectF* rect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), rect); - } -} - -/// -/// ID2D1RoundedRectangleGeometry -[Guid("2cd906a3-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1RoundedRectangleGeometry : ID2D1Geometry")] -[NativeInheritance("ID2D1Geometry")] -public unsafe partial struct ID2D1RoundedRectangleGeometry -{ - public static ref readonly Guid IID_ID2D1RoundedRectangleGeometry - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA3, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RoundedRectangleGeometry)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void GetRoundedRect(RoundedRect* roundedRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), roundedRect); - } -} - -/// -/// ID2D1EllipseGeometry -[Guid("2cd906a4-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1EllipseGeometry : ID2D1Geometry")] -[NativeInheritance("ID2D1Geometry")] -public unsafe partial struct ID2D1EllipseGeometry -{ - public static ref readonly Guid IID_ID2D1EllipseGeometry - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA4, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EllipseGeometry)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), worldTransform, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void GetEllipse(Ellipse* ellipse) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), ellipse); - } -} - -/// -/// ID2D1GeometryGroup -[Guid("2cd906a6-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1GeometryGroup : ID2D1Geometry")] -[NativeInheritance("ID2D1Geometry")] -public unsafe partial struct ID2D1GeometryGroup -{ - public static ref readonly Guid IID_ID2D1GeometryGroup - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA6, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GeometryGroup)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), worldTransform, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public Common.FillMode GetFillMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public uint GetSourceGeometryCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void GetSourceGeometries(ID2D1Geometry** geometries, uint geometriesCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), geometries, geometriesCount); - } -} - -/// -/// ID2D1TransformedGeometry -[Guid("2cd906bb-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1TransformedGeometry : ID2D1Geometry")] -[NativeInheritance("ID2D1Geometry")] -public unsafe partial struct ID2D1TransformedGeometry -{ - public static ref readonly Guid IID_ID2D1TransformedGeometry - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBB, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TransformedGeometry)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), worldTransform, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void GetSourceGeometry(ID2D1Geometry** sourceGeometry) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), sourceGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), transform); - } -} - -/// -/// ID2D1GeometrySink -[Guid("2cd9069f-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1GeometrySink : ID2D1SimplifiedGeometrySink")] -[NativeInheritance("ID2D1SimplifiedGeometrySink")] -public unsafe partial struct ID2D1GeometrySink -{ - public static ref readonly Guid IID_ID2D1GeometrySink - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9F, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GeometrySink)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public void SetFillMode(Common.FillMode fillMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), fillMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public void SetSegmentFlags(Common.PathSegment vertexFlags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), vertexFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public void BeginFigure(System.Drawing.PointF* startPoint, Common.FigureBegin figureBegin) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), startPoint, figureBegin); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void AddLines(System.Drawing.PointF** points, uint pointsCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), points, pointsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void AddBeziers(Common.BezierSegment* beziers, uint beziersCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), beziers, beziersCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void EndFigure(Common.FigureEnd figureEnd) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), figureEnd); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult Close() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void AddLine(System.Drawing.PointF* point) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), point); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void AddBezier(Common.BezierSegment* bezier) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), bezier); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void AddQuadraticBezier(QuadraticBezierSegment* bezier) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), bezier); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void AddQuadraticBeziers(QuadraticBezierSegment* beziers, uint beziersCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), beziers, beziersCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void AddArc(ArcSegment* arc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), arc); - } -} - -/// -/// ID2D1TessellationSink -[Guid("2cd906c1-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1TessellationSink : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1TessellationSink -{ - public static ref readonly Guid IID_ID2D1TessellationSink - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC1, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TessellationSink)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void AddTriangles(Triangle* triangles, uint trianglesCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1TessellationSink*)Unsafe.AsPointer(ref this), triangles, trianglesCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Close() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1TessellationSink*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1PathGeometry -[Guid("2cd906a5-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1PathGeometry : ID2D1Geometry")] -[NativeInheritance("ID2D1Geometry")] -public unsafe partial struct ID2D1PathGeometry -{ - public static ref readonly Guid IID_ID2D1PathGeometry - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA5, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1PathGeometry)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), worldTransform, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult Open(ID2D1GeometrySink** geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult Stream(ID2D1GeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetSegmentCount(uint* count) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), count); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetFigureCount(uint* count) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), count); - } -} - -/// -/// ID2D1Mesh -[Guid("2cd906c2-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1Mesh : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Mesh -{ - public static ref readonly Guid IID_ID2D1Mesh - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC2, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Mesh)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Mesh*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Open(ID2D1TessellationSink** tessellationSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Mesh*)Unsafe.AsPointer(ref this), tessellationSink); - } -} - -/// -/// ID2D1Layer -[Guid("2cd9069b-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1Layer : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Layer -{ - public static ref readonly Guid IID_ID2D1Layer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9B, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Layer)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Layer*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Layer*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1DrawingStateBlock -[Guid("28506e39-ebf6-46a1-bb47-fd85565ab957")] -[NativeTypeName("struct ID2D1DrawingStateBlock : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1DrawingStateBlock -{ - public static ref readonly Guid IID_ID2D1DrawingStateBlock - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x39, 0x6E, 0x50, 0x28, - 0xF6, 0xEB, - 0xA1, 0x46, - 0xBB, - 0x47, - 0xFD, - 0x85, - 0x56, - 0x5A, - 0xB9, - 0x57 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DrawingStateBlock)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DrawingStateBlock*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDescription(DrawingStateDescription* stateDescription) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DrawingStateBlock*)Unsafe.AsPointer(ref this), stateDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetDescription(DrawingStateDescription* stateDescription) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DrawingStateBlock*)Unsafe.AsPointer(ref this), stateDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DrawingStateBlock*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DrawingStateBlock*)Unsafe.AsPointer(ref this), textRenderingParams); - } -} - -/// -/// ID2D1RenderTarget -[Guid("2cd90694-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1RenderTarget : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1RenderTarget -{ - public static ref readonly Guid IID_ID2D1RenderTarget - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x94, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RenderTarget)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), size, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateMesh(ID2D1Mesh** mesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), mesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetAntialiasMode(AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public AntialiasMode GetAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public TextAntialiasMode GetTextAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetTags(ulong tag1, ulong tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void GetTags(ulong* tag1, ulong* tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void PopLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult Flush(ulong* tag1, ulong* tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void PopAxisAlignedClip() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void Clear(Common.ColorF* clearColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), clearColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void BeginDraw() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void SetDpi(float dpiX, float dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public uint GetMaximumBitmapSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), renderTargetProperties); - } -} - -/// -/// ID2D1BitmapRenderTarget -[Guid("2cd90695-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1BitmapRenderTarget : ID2D1RenderTarget")] -[NativeInheritance("ID2D1RenderTarget")] -public unsafe partial struct ID2D1BitmapRenderTarget -{ - public static ref readonly Guid IID_ID2D1BitmapRenderTarget - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x95, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BitmapRenderTarget)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), size, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateMesh(ID2D1Mesh** mesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), mesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetAntialiasMode(AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public AntialiasMode GetAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public TextAntialiasMode GetTextAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetTags(ulong tag1, ulong tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetTags(ulong* tag1, ulong* tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void PopLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult Flush(ulong* tag1, ulong* tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void PopAxisAlignedClip() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void Clear(Common.ColorF* clearColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), clearColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void BeginDraw() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void SetDpi(float dpiX, float dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public uint GetMaximumBitmapSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), renderTargetProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult GetBitmap(ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), bitmap); - } -} - -/// -/// ID2D1HwndRenderTarget -[Guid("2cd90698-12e2-11dc-9fed-001143a055f9")] -[NativeTypeName("struct ID2D1HwndRenderTarget : ID2D1RenderTarget")] -[NativeInheritance("ID2D1RenderTarget")] -public unsafe partial struct ID2D1HwndRenderTarget -{ - public static ref readonly Guid IID_ID2D1HwndRenderTarget - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x98, 0x06, 0xD9, 0x2C, - 0xE2, 0x12, - 0xDC, 0x11, - 0x9F, - 0xED, - 0x00, - 0x11, - 0x43, - 0xA0, - 0x55, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1HwndRenderTarget)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), size, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateMesh(ID2D1Mesh** mesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), mesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetAntialiasMode(AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public AntialiasMode GetAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public TextAntialiasMode GetTextAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetTags(ulong tag1, ulong tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetTags(ulong* tag1, ulong* tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void PopLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult Flush(ulong* tag1, ulong* tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void PopAxisAlignedClip() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void Clear(Common.ColorF* clearColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), clearColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void BeginDraw() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void SetDpi(float dpiX, float dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public uint GetMaximumBitmapSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), renderTargetProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public WindowState CheckWindowState() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult Resize(System.Drawing.Size* pixelSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), pixelSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public IntPtr GetHwnd() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1GdiInteropRenderTarget -[Guid("e0db51c3-6f77-4bae-b3d5-e47509b35838")] -[NativeTypeName("struct ID2D1GdiInteropRenderTarget : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1GdiInteropRenderTarget -{ - public static ref readonly Guid IID_ID2D1GdiInteropRenderTarget - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC3, 0x51, 0xDB, 0xE0, - 0x77, 0x6F, - 0xAE, 0x4B, - 0xB3, - 0xD5, - 0xE4, - 0x75, - 0x09, - 0xB3, - 0x58, - 0x38 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiInteropRenderTarget)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDC(DcInitializeMode mode, IntPtr* hdc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GdiInteropRenderTarget*)Unsafe.AsPointer(ref this), mode, hdc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult ReleaseDC(RawRect* update) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GdiInteropRenderTarget*)Unsafe.AsPointer(ref this), update); - } -} - -/// -/// ID2D1DCRenderTarget -[Guid("1c51bc64-de61-46fd-9899-63a5d8f03950")] -[NativeTypeName("struct ID2D1DCRenderTarget : ID2D1RenderTarget")] -[NativeInheritance("ID2D1RenderTarget")] -public unsafe partial struct ID2D1DCRenderTarget -{ - public static ref readonly Guid IID_ID2D1DCRenderTarget - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0xBC, 0x51, 0x1C, - 0x61, 0xDE, - 0xFD, 0x46, - 0x98, - 0x99, - 0x63, - 0xA5, - 0xD8, - 0xF0, - 0x39, - 0x50 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DCRenderTarget)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), size, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateMesh(ID2D1Mesh** mesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), mesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetAntialiasMode(AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public AntialiasMode GetAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public TextAntialiasMode GetTextAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetTags(ulong tag1, ulong tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetTags(ulong* tag1, ulong* tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void PopLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult Flush(ulong* tag1, ulong* tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void PopAxisAlignedClip() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void Clear(Common.ColorF* clearColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), clearColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void BeginDraw() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void SetDpi(float dpiX, float dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public uint GetMaximumBitmapSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), renderTargetProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult BindDC(IntPtr hDC, RawRect* pSubRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), hDC, pSubRect); - } -} - -/// -/// ID2D1Factory -[Guid("06152247-6f50-465a-9245-118bfd3b6007")] -[NativeTypeName("struct ID2D1Factory : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1Factory -{ - public static ref readonly Guid IID_ID2D1Factory - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x47, 0x22, 0x15, 0x06, - 0x50, 0x6F, - 0x5A, 0x46, - 0x92, - 0x45, - 0x11, - 0x8B, - 0xFD, - 0x3B, - 0x60, - 0x07 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult ReloadSystemMetrics() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDesktopDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); - } -} - -/// -/// ID2D1GdiMetafileSink -[Guid("82237326-8111-4f7c-bcf4-b5c1175564fe")] -[NativeTypeName("struct ID2D1GdiMetafileSink : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1GdiMetafileSink -{ - public static ref readonly Guid IID_ID2D1GdiMetafileSink - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x26, 0x73, 0x23, 0x82, - 0x11, 0x81, - 0x7C, 0x4F, - 0xBC, - 0xF4, - 0xB5, - 0xC1, - 0x17, - 0x55, - 0x64, - 0xFE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiMetafileSink)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult ProcessRecord(uint recordType, void* recordData, uint recordDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GdiMetafileSink*)Unsafe.AsPointer(ref this), recordType, recordData, recordDataSize); - } -} - -/// -/// ID2D1GdiMetafile -[Guid("2f543dc3-cfc1-4211-864f-cfd91c6f3395")] -[NativeTypeName("struct ID2D1GdiMetafile : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1GdiMetafile -{ - public static ref readonly Guid IID_ID2D1GdiMetafile - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC3, 0x3D, 0x54, 0x2F, - 0xC1, 0xCF, - 0x11, 0x42, - 0x86, - 0x4F, - 0xCF, - 0xD9, - 0x1C, - 0x6F, - 0x33, - 0x95 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiMetafile)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GdiMetafile*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Stream(ID2D1GdiMetafileSink* sink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GdiMetafile*)Unsafe.AsPointer(ref this), sink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetBounds(Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GdiMetafile*)Unsafe.AsPointer(ref this), bounds); - } -} - -/// -/// ID2D1CommandSink -[Guid("54d7898a-a061-40a7-bec7-e465bcba2c4f")] -[NativeTypeName("struct ID2D1CommandSink : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1CommandSink -{ - public static ref readonly Guid IID_ID2D1CommandSink - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8A, 0x89, 0xD7, 0x54, - 0x61, 0xA0, - 0xA7, 0x40, - 0xBE, - 0xC7, - 0xE4, - 0x65, - 0xBC, - 0xBA, - 0x2C, - 0x4F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult BeginDraw() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult EndDraw() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetAntialiasMode(AntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetTags(ulong tag1, ulong tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetTransform(Matrix3x2* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetUnitMode(UnitMode unitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult Clear(Common.ColorF* color) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), color); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult PushLayer(LayerParameters1* layerParameters1, ID2D1Layer* layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), layerParameters1, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult PopAxisAlignedClip() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult PopLayer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1CommandList -[Guid("b4f34a19-2383-4d76-94f6-ec343657c3dc")] -[NativeTypeName("struct ID2D1CommandList : ID2D1Image")] -[NativeInheritance("ID2D1Image")] -public unsafe partial struct ID2D1CommandList -{ - public static ref readonly Guid IID_ID2D1CommandList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x19, 0x4A, 0xF3, 0xB4, - 0x83, 0x23, - 0x76, 0x4D, - 0x94, - 0xF6, - 0xEC, - 0x34, - 0x36, - 0x57, - 0xC3, - 0xDC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandList)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandList*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Stream(ID2D1CommandSink* sink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandList*)Unsafe.AsPointer(ref this), sink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult Close() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandList*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1PrintControl -[Guid("2c1d867d-c290-41c8-ae7e-34a98702e9a5")] -[NativeTypeName("struct ID2D1PrintControl : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1PrintControl -{ - public static ref readonly Guid IID_ID2D1PrintControl - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7D, 0x86, 0x1D, 0x2C, - 0x90, 0xC2, - 0xC8, 0x41, - 0xAE, - 0x7E, - 0x34, - 0xA9, - 0x87, - 0x02, - 0xE9, - 0xA5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1PrintControl)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult AddPage(ID2D1CommandList* commandList, System.Drawing.SizeF pageSize, Com.IStream* pagePrintTicketStream, ulong* tag1, ulong* tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1PrintControl*)Unsafe.AsPointer(ref this), commandList, pageSize, pagePrintTicketStream, tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Close() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1PrintControl*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1ImageBrush -[Guid("fe9e984d-3f95-407c-b5db-cb94d4e8f87c")] -[NativeTypeName("struct ID2D1ImageBrush : ID2D1Brush")] -[NativeInheritance("ID2D1Brush")] -public unsafe partial struct ID2D1ImageBrush -{ - public static ref readonly Guid IID_ID2D1ImageBrush - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x98, 0x9E, 0xFE, - 0x95, 0x3F, - 0x7C, 0x40, - 0xB5, - 0xDB, - 0xCB, - 0x94, - 0xD4, - 0xE8, - 0xF8, - 0x7C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ImageBrush)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetOpacity(float opacity) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), opacity); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public float GetOpacity() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void SetImage(ID2D1Image* image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void SetExtendModeX(ExtendMode extendModeX) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), extendModeX); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void SetExtendModeY(ExtendMode extendModeY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), extendModeY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void SetInterpolationMode(InterpolationMode interpolationMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), interpolationMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void SetSourceRectangle(Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void GetImage(ID2D1Image** image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public ExtendMode GetExtendModeX() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public ExtendMode GetExtendModeY() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public InterpolationMode GetInterpolationMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void GetSourceRectangle(Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), sourceRectangle); - } -} - -/// -/// ID2D1BitmapBrush1 -[Guid("41343a53-e41a-49a2-91cd-21793bbb62e5")] -[NativeTypeName("struct ID2D1BitmapBrush1 : ID2D1BitmapBrush")] -[NativeInheritance("ID2D1BitmapBrush")] -public unsafe partial struct ID2D1BitmapBrush1 -{ - public static ref readonly Guid IID_ID2D1BitmapBrush1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x53, 0x3A, 0x34, 0x41, - 0x1A, 0xE4, - 0xA2, 0x49, - 0x91, - 0xCD, - 0x21, - 0x79, - 0x3B, - 0xBB, - 0x62, - 0xE5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BitmapBrush1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetExtendModeX(ExtendMode extendModeX) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), extendModeX); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetExtendModeY(ExtendMode extendModeY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), extendModeY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetInterpolationMode(BitmapInterpolationMode interpolationMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), interpolationMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetBitmap(ID2D1Bitmap* bitmap) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public ExtendMode GetExtendModeX() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ExtendMode GetExtendModeY() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public BitmapInterpolationMode GetInterpolationMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GetBitmap(ID2D1Bitmap** bitmap) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void SetOpacity(float opacity) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), opacity); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public float GetOpacity() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void SetInterpolationMode1(InterpolationMode interpolationMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), interpolationMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public InterpolationMode GetInterpolationMode1() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1StrokeStyle1 -[Guid("10a72a66-e91c-43f4-993f-ddf4b82b0b4a")] -[NativeTypeName("struct ID2D1StrokeStyle1 : ID2D1StrokeStyle")] -[NativeInheritance("ID2D1StrokeStyle")] -public unsafe partial struct ID2D1StrokeStyle1 -{ - public static ref readonly Guid IID_ID2D1StrokeStyle1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x66, 0x2A, 0xA7, 0x10, - 0x1C, 0xE9, - 0xF4, 0x43, - 0x99, - 0x3F, - 0xDD, - 0xF4, - 0xB8, - 0x2B, - 0x0B, - 0x4A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1StrokeStyle1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public CapStyle GetStartCap() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public CapStyle GetEndCap() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public CapStyle GetDashCap() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public float GetMiterLimit() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public LineJoin GetLineJoin() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public float GetDashOffset() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public DashStyle GetDashStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public uint GetDashesCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void GetDashes(float* dashes, uint dashesCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this), dashes, dashesCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public StrokeTransformType GetStrokeTransformType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1PathGeometry1 -[Guid("62baa2d2-ab54-41b7-b872-787e0106a421")] -[NativeTypeName("struct ID2D1PathGeometry1 : ID2D1PathGeometry")] -[NativeInheritance("ID2D1PathGeometry")] -public unsafe partial struct ID2D1PathGeometry1 -{ - public static ref readonly Guid IID_ID2D1PathGeometry1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD2, 0xA2, 0xBA, 0x62, - 0x54, 0xAB, - 0xB7, 0x41, - 0xB8, - 0x72, - 0x78, - 0x7E, - 0x01, - 0x06, - 0xA4, - 0x21 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1PathGeometry1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Open(ID2D1GeometrySink** geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Stream(ID2D1GeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetSegmentCount(uint* count) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), count); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFigureCount(uint* count) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), count); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), worldTransform, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult ComputePointAndSegmentAtLength(float length, uint startSegment, Matrix3x2* worldTransform, float flatteningTolerance, PointDescription* pointDescription) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), length, startSegment, worldTransform, flatteningTolerance, pointDescription); - } -} - -/// -/// ID2D1Properties -[Guid("483473d7-cd46-4f9d-9d3a-3112aa80159d")] -[NativeTypeName("struct ID2D1Properties : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1Properties -{ - public static ref readonly Guid IID_ID2D1Properties - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD7, 0x73, 0x34, 0x48, - 0x46, 0xCD, - 0x9D, 0x4F, - 0x9D, - 0x3A, - 0x31, - 0x12, - 0xAA, - 0x80, - 0x15, - 0x9D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Properties)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetPropertyCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Properties*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPropertyName(uint index, ushort* name, uint nameCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index, name, nameCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetPropertyNameLength(uint index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public PropertyType GetType(uint index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetPropertyIndex(ushort* name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Properties*)Unsafe.AsPointer(ref this), name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Properties*)Unsafe.AsPointer(ref this), name, type, data, dataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetValue(uint index, PropertyType type, byte* data, uint dataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index, type, data, dataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Properties*)Unsafe.AsPointer(ref this), name, type, data, dataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetValue(uint index, PropertyType type, byte* data, uint dataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index, type, data, dataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public uint GetValueSize(uint index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetSubProperties(uint index, ID2D1Properties** subProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index, subProperties); - } -} - -/// -/// ID2D1Effect -[Guid("28211a43-7d89-476f-8181-2d6159b220ad")] -[NativeTypeName("struct ID2D1Effect : ID2D1Properties")] -[NativeInheritance("ID2D1Properties")] -public unsafe partial struct ID2D1Effect -{ - public static ref readonly Guid IID_ID2D1Effect - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x43, 0x1A, 0x21, 0x28, - 0x89, 0x7D, - 0x6F, 0x47, - 0x81, - 0x81, - 0x2D, - 0x61, - 0x59, - 0xB2, - 0x20, - 0xAD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Effect)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetPropertyCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Effect*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPropertyName(uint index, ushort* name, uint nameCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, name, nameCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetPropertyNameLength(uint index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public PropertyType GetType(uint index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetPropertyIndex(ushort* name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Effect*)Unsafe.AsPointer(ref this), name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Effect*)Unsafe.AsPointer(ref this), name, type, data, dataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetValue(uint index, PropertyType type, byte* data, uint dataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, type, data, dataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Effect*)Unsafe.AsPointer(ref this), name, type, data, dataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetValue(uint index, PropertyType type, byte* data, uint dataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, type, data, dataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public uint GetValueSize(uint index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetSubProperties(uint index, ID2D1Properties** subProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, subProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void SetInput(uint index, ID2D1Image* input, Bool32 invalidate) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, input, invalidate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetInputCount(uint inputCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Effect*)Unsafe.AsPointer(ref this), inputCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GetInput(uint index, ID2D1Image** input) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, input); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public uint GetInputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Effect*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void GetOutput(ID2D1Image** outputImage) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Effect*)Unsafe.AsPointer(ref this), outputImage); - } -} - -/// -/// ID2D1Bitmap1 -[Guid("a898a84c-3873-4588-b08b-ebbf978df041")] -[NativeTypeName("struct ID2D1Bitmap1 : ID2D1Bitmap")] -[NativeInheritance("ID2D1Bitmap")] -public unsafe partial struct ID2D1Bitmap1 -{ - public static ref readonly Guid IID_ID2D1Bitmap1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4C, 0xA8, 0x98, 0xA8, - 0x73, 0x38, - 0x88, 0x45, - 0xB0, - 0x8B, - 0xEB, - 0xBF, - 0x97, - 0x8D, - 0xF0, - 0x41 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Bitmap1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CopyFromBitmap(System.Drawing.Point* destPoint, ID2D1Bitmap* bitmap, Common.RectU* srcRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), destPoint, bitmap, srcRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CopyFromRenderTarget(System.Drawing.Point* destPoint, ID2D1RenderTarget* renderTarget, Common.RectU* srcRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), destPoint, renderTarget, srcRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CopyFromMemory(Common.RectU* dstRect, void* srcData, uint pitch) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), dstRect, srcData, pitch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void GetColorContext(ID2D1ColorContext** colorContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public BitmapOptions GetOptions() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetSurface(Graphics.Dxgi.IDXGISurface** dxgiSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), dxgiSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult Map(MapOptions options, MappedRect* mappedRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), options, mappedRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult Unmap() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1ColorContext -[Guid("1c4820bb-5771-4518-a581-2fe4dd0ec657")] -[NativeTypeName("struct ID2D1ColorContext : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1ColorContext -{ - public static ref readonly Guid IID_ID2D1ColorContext - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBB, 0x20, 0x48, 0x1C, - 0x71, 0x57, - 0x18, 0x45, - 0xA5, - 0x81, - 0x2F, - 0xE4, - 0xDD, - 0x0E, - 0xC6, - 0x57 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ColorContext)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ColorContext*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public ColorSpace GetColorSpace() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ColorContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetProfileSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ColorContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetProfile(byte* profile, uint profileSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ColorContext*)Unsafe.AsPointer(ref this), profile, profileSize); - } -} - -/// -/// ID2D1GradientStopCollection1 -[Guid("ae1572f4-5dd0-4777-998b-9279472ae63b")] -[NativeTypeName("struct ID2D1GradientStopCollection1 : ID2D1GradientStopCollection")] -[NativeInheritance("ID2D1GradientStopCollection")] -public unsafe partial struct ID2D1GradientStopCollection1 -{ - public static ref readonly Guid IID_ID2D1GradientStopCollection1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF4, 0x72, 0x15, 0xAE, - 0xD0, 0x5D, - 0x77, 0x47, - 0x99, - 0x8B, - 0x92, - 0x79, - 0x47, - 0x2A, - 0xE6, - 0x3B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GradientStopCollection1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetGradientStopCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetGradientStops(GradientStop* gradientStops, uint gradientStopsCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public Gamma GetColorInterpolationGamma() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ExtendMode GetExtendMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetGradientStops1(GradientStop* gradientStops, uint gradientStopsCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public ColorSpace GetPreInterpolationSpace() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public ColorSpace GetPostInterpolationSpace() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public BufferPrecision GetBufferPrecision() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public ColorInterpolationMode GetColorInterpolationMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1DrawingStateBlock1 -[Guid("689f1f85-c72e-4e33-8f19-85754efd5ace")] -[NativeTypeName("struct ID2D1DrawingStateBlock1 : ID2D1DrawingStateBlock")] -[NativeInheritance("ID2D1DrawingStateBlock")] -public unsafe partial struct ID2D1DrawingStateBlock1 -{ - public static ref readonly Guid IID_ID2D1DrawingStateBlock1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x85, 0x1F, 0x9F, 0x68, - 0x2E, 0xC7, - 0x33, 0x4E, - 0x8F, - 0x19, - 0x85, - 0x75, - 0x4E, - 0xFD, - 0x5A, - 0xCE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DrawingStateBlock1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDescription(DrawingStateDescription* stateDescription) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), stateDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetDescription(DrawingStateDescription* stateDescription) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), stateDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDescription(DrawingStateDescription1* stateDescription) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), stateDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void SetDescription(DrawingStateDescription1* stateDescription) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), stateDescription); - } -} - -/// -/// ID2D1DeviceContext -[Guid("e8f7fe7a-191c-466d-ad95-975678bda998")] -[NativeTypeName("struct ID2D1DeviceContext : ID2D1RenderTarget")] -[NativeInheritance("ID2D1RenderTarget")] -public unsafe partial struct ID2D1DeviceContext -{ - public static ref readonly Guid IID_ID2D1DeviceContext - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7A, 0xFE, 0xF7, 0xE8, - 0x1C, 0x19, - 0x6D, 0x46, - 0xAD, - 0x95, - 0x97, - 0x56, - 0x78, - 0xBD, - 0xA9, - 0x98 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), size, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateMesh(ID2D1Mesh** mesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), mesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), roundedRect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), ellipse, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetAntialiasMode(AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public AntialiasMode GetAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public TextAntialiasMode GetTextAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetTags(ulong tag1, ulong tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetTags(ulong* tag1, ulong* tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void PopLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult Flush(ulong* tag1, ulong* tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void PopAxisAlignedClip() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void Clear(Common.ColorF* clearColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), clearColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void BeginDraw() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void SetDpi(float dpiX, float dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public uint GetMaximumBitmapSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), renderTargetProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), filename, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), effectId, effect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HResult CreateCommandList(ID2D1CommandList** commandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), commandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), bufferPrecision); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), image, localBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), image, worldBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void GetDevice(ID2D1Device** device) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), device); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void SetTarget(ID2D1Image* image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void GetTarget(ID2D1Image** image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void SetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void GetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public PrimitiveBlend GetPrimitiveBlend() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void SetUnitMode(UnitMode unitMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public UnitMode GetUnitMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), effect, rectangleCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(89)] - public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(90)] - public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(91)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } -} - -/// -/// ID2D1Device -[Guid("47dd575d-ac05-4cdd-8049-9b02cd16f44c")] -[NativeTypeName("struct ID2D1Device : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Device -{ - public static ref readonly Guid IID_ID2D1Device - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5D, 0x57, 0xDD, 0x47, - 0x05, 0xAC, - 0xDD, 0x4C, - 0x80, - 0x49, - 0x9B, - 0x02, - 0xCD, - 0x16, - 0xF4, - 0x4C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device*)Unsafe.AsPointer(ref this), options, deviceContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetMaximumTextureMemory(ulong maximumInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device*)Unsafe.AsPointer(ref this), maximumInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ulong GetMaximumTextureMemory() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void ClearResources(uint millisecondsSinceUse) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device*)Unsafe.AsPointer(ref this), millisecondsSinceUse); - } -} - -/// -/// ID2D1Factory1 -[Guid("bb12d362-daee-4b9a-aa1d-14ba401cfa1f")] -[NativeTypeName("struct ID2D1Factory1 : ID2D1Factory")] -[NativeInheritance("ID2D1Factory")] -public unsafe partial struct ID2D1Factory1 -{ - public static ref readonly Guid IID_ID2D1Factory1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x62, 0xD3, 0x12, 0xBB, - 0xEE, 0xDA, - 0x9A, 0x4B, - 0xAA, - 0x1D, - 0x14, - 0xBA, - 0x40, - 0x1C, - 0xFA, - 0x1F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult ReloadSystemMetrics() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDesktopDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), metafileStream, metafile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[22]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[23]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult UnregisterEffect(Guid* classId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), classId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), effectId, properties); - } -} - -/// -/// ID2D1Multithread -[Guid("31e6e7bc-e0ff-4d46-8c64-a0a8c41c15d3")] -[NativeTypeName("struct ID2D1Multithread : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1Multithread -{ - public static ref readonly Guid IID_ID2D1Multithread - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBC, 0xE7, 0xE6, 0x31, - 0xFF, 0xE0, - 0x46, 0x4D, - 0x8C, - 0x64, - 0xA0, - 0xA8, - 0xC4, - 0x1C, - 0x15, - 0xD3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Multithread)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Bool32 GetMultithreadProtected() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Multithread*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void Enter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Multithread*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void Leave() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Multithread*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1VertexBuffer -[Guid("9b8b1336-00a5-4668-92b7-ced5d8bf9b7b")] -[NativeTypeName("struct ID2D1VertexBuffer : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1VertexBuffer -{ - public static ref readonly Guid IID_ID2D1VertexBuffer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x36, 0x13, 0x8B, 0x9B, - 0xA5, 0x00, - 0x68, 0x46, - 0x92, - 0xB7, - 0xCE, - 0xD5, - 0xD8, - 0xBF, - 0x9B, - 0x7B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1VertexBuffer)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Map(byte** data, uint bufferSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1VertexBuffer*)Unsafe.AsPointer(ref this), data, bufferSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Unmap() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1VertexBuffer*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1ResourceTexture -[Guid("688d15c3-02b0-438d-b13a-d1b44c32c39a")] -[NativeTypeName("struct ID2D1ResourceTexture : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1ResourceTexture -{ - public static ref readonly Guid IID_ID2D1ResourceTexture - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC3, 0x15, 0x8D, 0x68, - 0xB0, 0x02, - 0x8D, 0x43, - 0xB1, - 0x3A, - 0xD1, - 0xB4, - 0x4C, - 0x32, - 0xC3, - 0x9A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ResourceTexture)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Update(uint* minimumExtents, uint* maximimumExtents, uint* strides, uint dimensions, byte* data, uint dataCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ResourceTexture*)Unsafe.AsPointer(ref this), minimumExtents, maximimumExtents, strides, dimensions, data, dataCount); - } -} - -/// -/// ID2D1RenderInfo -[Guid("519ae1bd-d19a-420d-b849-364f594776b7")] -[NativeTypeName("struct ID2D1RenderInfo : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1RenderInfo -{ - public static ref readonly Guid IID_ID2D1RenderInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBD, 0xE1, 0x9A, 0x51, - 0x9A, 0xD1, - 0x0D, 0x42, - 0xB8, - 0x49, - 0x36, - 0x4F, - 0x59, - 0x47, - 0x76, - 0xB7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RenderInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetInputDescription(uint inputIndex, InputDescription* inputDescription) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1RenderInfo*)Unsafe.AsPointer(ref this), inputIndex, inputDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1RenderInfo*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetCached(Bool32 isCached) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1RenderInfo*)Unsafe.AsPointer(ref this), isCached); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetInstructionCountHint(uint instructionCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1RenderInfo*)Unsafe.AsPointer(ref this), instructionCount); - } -} - -/// -/// ID2D1DrawInfo -[Guid("693ce632-7f2f-45de-93fe-18d88b37aa21")] -[NativeTypeName("struct ID2D1DrawInfo : ID2D1RenderInfo")] -[NativeInheritance("ID2D1RenderInfo")] -public unsafe partial struct ID2D1DrawInfo -{ - public static ref readonly Guid IID_ID2D1DrawInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x32, 0xE6, 0x3C, 0x69, - 0x2F, 0x7F, - 0xDE, 0x45, - 0x93, - 0xFE, - 0x18, - 0xD8, - 0x8B, - 0x37, - 0xAA, - 0x21 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DrawInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetInputDescription(uint inputIndex, InputDescription* inputDescription) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), inputIndex, inputDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetCached(Bool32 isCached) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), isCached); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetInstructionCountHint(uint instructionCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), instructionCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPixelShaderConstantBuffer(byte* buffer, uint bufferCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), buffer, bufferCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetResourceTexture(uint textureIndex, ID2D1ResourceTexture* resourceTexture) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), textureIndex, resourceTexture); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetVertexShaderConstantBuffer(byte* buffer, uint bufferCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), buffer, bufferCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetPixelShader(Guid* shaderId, PixelOptions pixelOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), shaderId, pixelOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetVertexProcessing(ID2D1VertexBuffer* vertexBuffer, VertexOptions vertexOptions, BlendDescription* blendDescription, VertexRange* vertexRange, Guid* vertexShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), vertexBuffer, vertexOptions, blendDescription, vertexRange, vertexShader); - } -} - -/// -/// ID2D1ComputeInfo -[Guid("5598b14b-9fd7-48b7-9bdb-8f0964eb38bc")] -[NativeTypeName("struct ID2D1ComputeInfo : ID2D1RenderInfo")] -[NativeInheritance("ID2D1RenderInfo")] -public unsafe partial struct ID2D1ComputeInfo -{ - public static ref readonly Guid IID_ID2D1ComputeInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4B, 0xB1, 0x98, 0x55, - 0xD7, 0x9F, - 0xB7, 0x48, - 0x9B, - 0xDB, - 0x8F, - 0x09, - 0x64, - 0xEB, - 0x38, - 0xBC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ComputeInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetInputDescription(uint inputIndex, InputDescription* inputDescription) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), inputIndex, inputDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetCached(Bool32 isCached) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), isCached); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetInstructionCountHint(uint instructionCount) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), instructionCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetComputeShaderConstantBuffer(byte* buffer, uint bufferCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), buffer, bufferCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetComputeShader(Guid* shaderId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), shaderId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetResourceTexture(uint textureIndex, ID2D1ResourceTexture* resourceTexture) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), textureIndex, resourceTexture); - } -} - -/// -/// ID2D1TransformNode -[Guid("b2efe1e7-729f-4102-949f-505fa21bf666")] -[NativeTypeName("struct ID2D1TransformNode : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1TransformNode -{ - public static ref readonly Guid IID_ID2D1TransformNode - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE7, 0xE1, 0xEF, 0xB2, - 0x9F, 0x72, - 0x02, 0x41, - 0x94, - 0x9F, - 0x50, - 0x5F, - 0xA2, - 0x1B, - 0xF6, - 0x66 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TransformNode)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetInputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1TransformNode*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1TransformGraph -[Guid("13d29038-c3e6-4034-9081-13b53a417992")] -[NativeTypeName("struct ID2D1TransformGraph : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1TransformGraph -{ - public static ref readonly Guid IID_ID2D1TransformGraph - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x38, 0x90, 0xD2, 0x13, - 0xE6, 0xC3, - 0x34, 0x40, - 0x90, - 0x81, - 0x13, - 0xB5, - 0x3A, - 0x41, - 0x79, - 0x92 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TransformGraph)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetInputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetSingleTransformNode(ID2D1TransformNode* node) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), node); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult AddNode(ID2D1TransformNode* node) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), node); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult RemoveNode(ID2D1TransformNode* node) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), node); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetOutputNode(ID2D1TransformNode* node) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), node); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult ConnectNode(ID2D1TransformNode* fromNode, ID2D1TransformNode* toNode, uint toNodeInputIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), fromNode, toNode, toNodeInputIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult ConnectToEffectInput(uint toEffectInputIndex, ID2D1TransformNode* node, uint toNodeInputIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), toEffectInputIndex, node, toNodeInputIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void Clear() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetPassthroughGraph(uint effectInputIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), effectInputIndex); - } -} - -/// -/// ID2D1Transform -[Guid("ef1a287d-342a-4f76-8fdb-da0d6ea9f92b")] -[NativeTypeName("struct ID2D1Transform : ID2D1TransformNode")] -[NativeInheritance("ID2D1TransformNode")] -public unsafe partial struct ID2D1Transform -{ - public static ref readonly Guid IID_ID2D1Transform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7D, 0x28, 0x1A, 0xEF, - 0x2A, 0x34, - 0x76, 0x4F, - 0x8F, - 0xDB, - 0xDA, - 0x0D, - 0x6E, - 0xA9, - 0xF9, - 0x2B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Transform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetInputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Transform*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult MapOutputRectToInputRects(RawRect* outputRect, RawRect* inputRects, uint inputRectsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Transform*)Unsafe.AsPointer(ref this), outputRect, inputRects, inputRectsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult MapInputRectsToOutputRect(RawRect* inputRects, RawRect* inputOpaqueSubRects, uint inputRectCount, RawRect* outputRect, RawRect* outputOpaqueSubRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Transform*)Unsafe.AsPointer(ref this), inputRects, inputOpaqueSubRects, inputRectCount, outputRect, outputOpaqueSubRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult MapInvalidRect(uint inputIndex, RawRect* invalidInputRect, RawRect* invalidOutputRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Transform*)Unsafe.AsPointer(ref this), inputIndex, invalidInputRect, invalidOutputRect); - } -} - -/// -/// ID2D1DrawTransform -[Guid("36bfdcb6-9739-435d-a30d-a653beff6a6f")] -[NativeTypeName("struct ID2D1DrawTransform : ID2D1Transform")] -[NativeInheritance("ID2D1Transform")] -public unsafe partial struct ID2D1DrawTransform -{ - public static ref readonly Guid IID_ID2D1DrawTransform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB6, 0xDC, 0xBF, 0x36, - 0x39, 0x97, - 0x5D, 0x43, - 0xA3, - 0x0D, - 0xA6, - 0x53, - 0xBE, - 0xFF, - 0x6A, - 0x6F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DrawTransform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult MapOutputRectToInputRects(RawRect* outputRect, RawRect* inputRects, uint inputRectsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DrawTransform*)Unsafe.AsPointer(ref this), outputRect, inputRects, inputRectsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult MapInputRectsToOutputRect(RawRect* inputRects, RawRect* inputOpaqueSubRects, uint inputRectCount, RawRect* outputRect, RawRect* outputOpaqueSubRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DrawTransform*)Unsafe.AsPointer(ref this), inputRects, inputOpaqueSubRects, inputRectCount, outputRect, outputOpaqueSubRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult MapInvalidRect(uint inputIndex, RawRect* invalidInputRect, RawRect* invalidOutputRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DrawTransform*)Unsafe.AsPointer(ref this), inputIndex, invalidInputRect, invalidOutputRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public uint GetInputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DrawTransform*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetDrawInfo(ID2D1DrawInfo* drawInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DrawTransform*)Unsafe.AsPointer(ref this), drawInfo); - } -} - -/// -/// ID2D1ComputeTransform -[Guid("0d85573c-01e3-4f7d-bfd9-0d60608bf3c3")] -[NativeTypeName("struct ID2D1ComputeTransform : ID2D1Transform")] -[NativeInheritance("ID2D1Transform")] -public unsafe partial struct ID2D1ComputeTransform -{ - public static ref readonly Guid IID_ID2D1ComputeTransform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3C, 0x57, 0x85, 0x0D, - 0xE3, 0x01, - 0x7D, 0x4F, - 0xBF, - 0xD9, - 0x0D, - 0x60, - 0x60, - 0x8B, - 0xF3, - 0xC3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ComputeTransform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult MapOutputRectToInputRects(RawRect* outputRect, RawRect* inputRects, uint inputRectsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ComputeTransform*)Unsafe.AsPointer(ref this), outputRect, inputRects, inputRectsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult MapInputRectsToOutputRect(RawRect* inputRects, RawRect* inputOpaqueSubRects, uint inputRectCount, RawRect* outputRect, RawRect* outputOpaqueSubRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ComputeTransform*)Unsafe.AsPointer(ref this), inputRects, inputOpaqueSubRects, inputRectCount, outputRect, outputOpaqueSubRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult MapInvalidRect(uint inputIndex, RawRect* invalidInputRect, RawRect* invalidOutputRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ComputeTransform*)Unsafe.AsPointer(ref this), inputIndex, invalidInputRect, invalidOutputRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public uint GetInputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ComputeTransform*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetComputeInfo(ID2D1ComputeInfo* computeInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1ComputeTransform*)Unsafe.AsPointer(ref this), computeInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CalculateThreadgroups(RawRect* outputRect, uint* dimensionX, uint* dimensionY, uint* dimensionZ) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1ComputeTransform*)Unsafe.AsPointer(ref this), outputRect, dimensionX, dimensionY, dimensionZ); - } -} - -/// -/// ID2D1AnalysisTransform -[Guid("0359dc30-95e6-4568-9055-27720d130e93")] -[NativeTypeName("struct ID2D1AnalysisTransform : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1AnalysisTransform -{ - public static ref readonly Guid IID_ID2D1AnalysisTransform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x30, 0xDC, 0x59, 0x03, - 0xE6, 0x95, - 0x68, 0x45, - 0x90, - 0x55, - 0x27, - 0x72, - 0x0D, - 0x13, - 0x0E, - 0x93 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1AnalysisTransform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult ProcessAnalysisResults(byte* analysisData, uint analysisDataCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1AnalysisTransform*)Unsafe.AsPointer(ref this), analysisData, analysisDataCount); - } -} - -/// -/// ID2D1SourceTransform -[Guid("db1800dd-0c34-4cf9-be90-31cc0a5653e1")] -[NativeTypeName("struct ID2D1SourceTransform : ID2D1Transform")] -[NativeInheritance("ID2D1Transform")] -public unsafe partial struct ID2D1SourceTransform -{ - public static ref readonly Guid IID_ID2D1SourceTransform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDD, 0x00, 0x18, 0xDB, - 0x34, 0x0C, - 0xF9, 0x4C, - 0xBE, - 0x90, - 0x31, - 0xCC, - 0x0A, - 0x56, - 0x53, - 0xE1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SourceTransform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult MapOutputRectToInputRects(RawRect* outputRect, RawRect* inputRects, uint inputRectsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SourceTransform*)Unsafe.AsPointer(ref this), outputRect, inputRects, inputRectsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult MapInputRectsToOutputRect(RawRect* inputRects, RawRect* inputOpaqueSubRects, uint inputRectCount, RawRect* outputRect, RawRect* outputOpaqueSubRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SourceTransform*)Unsafe.AsPointer(ref this), inputRects, inputOpaqueSubRects, inputRectCount, outputRect, outputOpaqueSubRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult MapInvalidRect(uint inputIndex, RawRect* invalidInputRect, RawRect* invalidOutputRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SourceTransform*)Unsafe.AsPointer(ref this), inputIndex, invalidInputRect, invalidOutputRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public uint GetInputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SourceTransform*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetRenderInfo(ID2D1RenderInfo* renderInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SourceTransform*)Unsafe.AsPointer(ref this), renderInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Draw(ID2D1Bitmap1* target, RawRect* drawRect, System.Drawing.Point* targetOrigin) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SourceTransform*)Unsafe.AsPointer(ref this), target, drawRect, targetOrigin); - } -} - -/// -/// ID2D1ConcreteTransform -[Guid("1a799d8a-69f7-4e4c-9fed-437ccc6684cc")] -[NativeTypeName("struct ID2D1ConcreteTransform : ID2D1TransformNode")] -[NativeInheritance("ID2D1TransformNode")] -public unsafe partial struct ID2D1ConcreteTransform -{ - public static ref readonly Guid IID_ID2D1ConcreteTransform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8A, 0x9D, 0x79, 0x1A, - 0xF7, 0x69, - 0x4C, 0x4E, - 0x9F, - 0xED, - 0x43, - 0x7C, - 0xCC, - 0x66, - 0x84, - 0xCC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ConcreteTransform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetInputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ConcreteTransform*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ConcreteTransform*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetCached(Bool32 isCached) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ConcreteTransform*)Unsafe.AsPointer(ref this), isCached); - } -} - -/// -/// ID2D1BlendTransform -[Guid("63ac0b32-ba44-450f-8806-7f4ca1ff2f1b")] -[NativeTypeName("struct ID2D1BlendTransform : ID2D1ConcreteTransform")] -[NativeInheritance("ID2D1ConcreteTransform")] -public unsafe partial struct ID2D1BlendTransform -{ - public static ref readonly Guid IID_ID2D1BlendTransform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x32, 0x0B, 0xAC, 0x63, - 0x44, 0xBA, - 0x0F, 0x45, - 0x88, - 0x06, - 0x7F, - 0x4C, - 0xA1, - 0xFF, - 0x2F, - 0x1B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BlendTransform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1BlendTransform*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetCached(Bool32 isCached) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1BlendTransform*)Unsafe.AsPointer(ref this), isCached); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetInputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1BlendTransform*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetDescription(BlendDescription* description) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1BlendTransform*)Unsafe.AsPointer(ref this), description); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetDescription(BlendDescription* description) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1BlendTransform*)Unsafe.AsPointer(ref this), description); - } -} - -/// -/// ID2D1BorderTransform -[Guid("4998735c-3a19-473c-9781-656847e3a347")] -[NativeTypeName("struct ID2D1BorderTransform : ID2D1ConcreteTransform")] -[NativeInheritance("ID2D1ConcreteTransform")] -public unsafe partial struct ID2D1BorderTransform -{ - public static ref readonly Guid IID_ID2D1BorderTransform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5C, 0x73, 0x98, 0x49, - 0x19, 0x3A, - 0x3C, 0x47, - 0x97, - 0x81, - 0x65, - 0x68, - 0x47, - 0xE3, - 0xA3, - 0x47 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BorderTransform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetCached(Bool32 isCached) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this), isCached); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetInputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetExtendModeX(ExtendMode extendMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this), extendMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void SetExtendModeY(ExtendMode extendMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this), extendMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ExtendMode GetExtendModeX() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public ExtendMode GetExtendModeY() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1OffsetTransform -[Guid("3fe6adea-7643-4f53-bd14-a0ce63f24042")] -[NativeTypeName("struct ID2D1OffsetTransform : ID2D1TransformNode")] -[NativeInheritance("ID2D1TransformNode")] -public unsafe partial struct ID2D1OffsetTransform -{ - public static ref readonly Guid IID_ID2D1OffsetTransform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEA, 0xAD, 0xE6, 0x3F, - 0x43, 0x76, - 0x53, 0x4F, - 0xBD, - 0x14, - 0xA0, - 0xCE, - 0x63, - 0xF2, - 0x40, - 0x42 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1OffsetTransform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetInputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1OffsetTransform*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetOffset(System.Drawing.Point* offset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1OffsetTransform*)Unsafe.AsPointer(ref this), offset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public System.Drawing.Point GetOffset() - { - System.Drawing.Point result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1OffsetTransform*)Unsafe.AsPointer(ref this), &result); - } -} - -/// -/// ID2D1BoundsAdjustmentTransform -[Guid("90f732e2-5092-4606-a819-8651970baccd")] -[NativeTypeName("struct ID2D1BoundsAdjustmentTransform : ID2D1TransformNode")] -[NativeInheritance("ID2D1TransformNode")] -public unsafe partial struct ID2D1BoundsAdjustmentTransform -{ - public static ref readonly Guid IID_ID2D1BoundsAdjustmentTransform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE2, 0x32, 0xF7, 0x90, - 0x92, 0x50, - 0x06, 0x46, - 0xA8, - 0x19, - 0x86, - 0x51, - 0x97, - 0x0B, - 0xAC, - 0xCD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BoundsAdjustmentTransform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetInputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1BoundsAdjustmentTransform*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetOutputBounds(RawRect* outputBounds) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1BoundsAdjustmentTransform*)Unsafe.AsPointer(ref this), outputBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetOutputBounds(RawRect* outputBounds) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1BoundsAdjustmentTransform*)Unsafe.AsPointer(ref this), outputBounds); - } -} - -/// -/// ID2D1EffectImpl -[Guid("a248fd3f-3e6c-4e63-9f03-7f68ecc91db9")] -[NativeTypeName("struct ID2D1EffectImpl : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1EffectImpl -{ - public static ref readonly Guid IID_ID2D1EffectImpl - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3F, 0xFD, 0x48, 0xA2, - 0x6C, 0x3E, - 0x63, 0x4E, - 0x9F, - 0x03, - 0x7F, - 0x68, - 0xEC, - 0xC9, - 0x1D, - 0xB9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EffectImpl)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Initialize(ID2D1EffectContext* effectContext, ID2D1TransformGraph* transformGraph) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1EffectImpl*)Unsafe.AsPointer(ref this), effectContext, transformGraph); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult PrepareForRender(ChangeType changeType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1EffectImpl*)Unsafe.AsPointer(ref this), changeType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetGraph(ID2D1TransformGraph* transformGraph) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1EffectImpl*)Unsafe.AsPointer(ref this), transformGraph); - } -} - -/// -/// ID2D1EffectContext -[Guid("3d9f916b-27dc-4ad7-b4f1-64945340f563")] -[NativeTypeName("struct ID2D1EffectContext : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID2D1EffectContext -{ - public static ref readonly Guid IID_ID2D1EffectContext - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6B, 0x91, 0x9F, 0x3D, - 0xDC, 0x27, - 0xD7, 0x4A, - 0xB4, - 0xF1, - 0x64, - 0x94, - 0x53, - 0x40, - 0xF5, - 0x63 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EffectContext)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), effectId, effect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetMaximumSupportedFeatureLevel(Graphics.Direct3D.FeatureLevel* featureLevels, uint featureLevelsCount, Graphics.Direct3D.FeatureLevel* maximumSupportedFeatureLevel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), featureLevels, featureLevelsCount, maximumSupportedFeatureLevel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateTransformNodeFromEffect(ID2D1Effect* effect, ID2D1TransformNode** transformNode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), effect, transformNode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateBlendTransform(uint numInputs, BlendDescription* blendDescription, ID2D1BlendTransform** transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), numInputs, blendDescription, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateBorderTransform(ExtendMode extendModeX, ExtendMode extendModeY, ID2D1BorderTransform** transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), extendModeX, extendModeY, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateOffsetTransform(System.Drawing.Point* offset, ID2D1OffsetTransform** transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), offset, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateBoundsAdjustmentTransform(RawRect* outputRectangle, ID2D1BoundsAdjustmentTransform** transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), outputRectangle, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult LoadPixelShader(Guid* shaderId, byte* shaderBuffer, uint shaderBufferCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), shaderId, shaderBuffer, shaderBufferCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult LoadVertexShader(Guid* resourceId, byte* shaderBuffer, uint shaderBufferCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), resourceId, shaderBuffer, shaderBufferCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult LoadComputeShader(Guid* resourceId, byte* shaderBuffer, uint shaderBufferCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), resourceId, shaderBuffer, shaderBufferCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public Bool32 IsShaderLoaded(Guid* shaderId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), shaderId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateResourceTexture(Guid* resourceId, ResourceTextureProperties* resourceTextureProperties, byte* data, uint* strides, uint dataSize, ID2D1ResourceTexture** resourceTexture) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), resourceId, resourceTextureProperties, data, strides, dataSize, resourceTexture); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult FindResourceTexture(Guid* resourceId, ID2D1ResourceTexture** resourceTexture) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), resourceId, resourceTexture); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateVertexBuffer(VertexBufferProperties* vertexBufferProperties, Guid* resourceId, CustomVertexBufferProperties* customVertexBufferProperties, ID2D1VertexBuffer** buffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), vertexBufferProperties, resourceId, customVertexBufferProperties, buffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult FindVertexBuffer(Guid* resourceId, ID2D1VertexBuffer** buffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), resourceId, buffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), filename, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CheckFeatureSupport(Feature feature, void* featureSupportData, uint featureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), feature, featureSupportData, featureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), bufferPrecision); - } -} - -/// -/// ID2D1GeometryRealization -[Guid("a16907d7-bc02-4801-99e8-8cf7f485f774")] -[NativeTypeName("struct ID2D1GeometryRealization : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1GeometryRealization -{ - public static ref readonly Guid IID_ID2D1GeometryRealization - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD7, 0x07, 0x69, 0xA1, - 0x02, 0xBC, - 0x01, 0x48, - 0x99, - 0xE8, - 0x8C, - 0xF7, - 0xF4, - 0x85, - 0xF7, - 0x74 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GeometryRealization)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GeometryRealization*)Unsafe.AsPointer(ref this), factory); - } -} - -/// -/// ID2D1DeviceContext1 -[Guid("d37f57e4-6908-459f-a199-e72f24f79987")] -[NativeTypeName("struct ID2D1DeviceContext1 : ID2D1DeviceContext")] -[NativeInheritance("ID2D1DeviceContext")] -public unsafe partial struct ID2D1DeviceContext1 -{ - public static ref readonly Guid IID_ID2D1DeviceContext1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE4, 0x57, 0x7F, 0xD3, - 0x08, 0x69, - 0x9F, 0x45, - 0xA1, - 0x99, - 0xE7, - 0x2F, - 0x24, - 0xF7, - 0x99, - 0x87 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), filename, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), effectId, effect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateCommandList(ID2D1CommandList** commandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), commandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), bufferPrecision); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), image, localBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), image, worldBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void GetDevice(ID2D1Device** device) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), device); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void SetTarget(ID2D1Image* image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void GetTarget(ID2D1Image** image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void SetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void GetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public PrimitiveBlend GetPrimitiveBlend() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void SetUnitMode(UnitMode unitMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public UnitMode GetUnitMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), effect, rectangleCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), size, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult CreateMesh(ID2D1Mesh** mesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), mesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), roundedRect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), ellipse, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void SetAntialiasMode(AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public AntialiasMode GetAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public TextAntialiasMode GetTextAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void SetTags(ulong tag1, ulong tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void GetTags(ulong* tag1, ulong* tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void PopLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public HResult Flush(ulong* tag1, ulong* tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void PopAxisAlignedClip() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public void Clear(Common.ColorF* clearColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), clearColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void BeginDraw() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public void SetDpi(float dpiX, float dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(89)] - public uint GetMaximumBitmapSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(90)] - public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), renderTargetProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(91)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(92)] - public HResult CreateFilledGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, ID2D1GeometryRealization** geometryRealization) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, geometryRealization); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(93)] - public HResult CreateStrokedGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle* strokeStyle, ID2D1GeometryRealization** geometryRealization) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(94)] - public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), geometryRealization, brush); - } -} - -/// -/// ID2D1Device1 -[Guid("d21768e1-23a4-4823-a14b-7c3eba85d658")] -[NativeTypeName("struct ID2D1Device1 : ID2D1Device")] -[NativeInheritance("ID2D1Device")] -public unsafe partial struct ID2D1Device1 -{ - public static ref readonly Guid IID_ID2D1Device1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE1, 0x68, 0x17, 0xD2, - 0xA4, 0x23, - 0x23, 0x48, - 0xA1, - 0x4B, - 0x7C, - 0x3E, - 0xBA, - 0x85, - 0xD6, - 0x58 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device1*)Unsafe.AsPointer(ref this), options, deviceContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetMaximumTextureMemory(ulong maximumInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device1*)Unsafe.AsPointer(ref this), maximumInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ulong GetMaximumTextureMemory() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void ClearResources(uint millisecondsSinceUse) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device1*)Unsafe.AsPointer(ref this), millisecondsSinceUse); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device1*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public RenderingPriority GetRenderingPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Device1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void SetRenderingPriority(RenderingPriority renderingPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Device1*)Unsafe.AsPointer(ref this), renderingPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Device1*)Unsafe.AsPointer(ref this), options, deviceContext1); - } -} - -/// -/// ID2D1Factory2 -[Guid("94f81a73-9212-4376-9c58-b16a3a0d3992")] -[NativeTypeName("struct ID2D1Factory2 : ID2D1Factory1")] -[NativeInheritance("ID2D1Factory1")] -public unsafe partial struct ID2D1Factory2 -{ - public static ref readonly Guid IID_ID2D1Factory2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x73, 0x1A, 0xF8, 0x94, - 0x12, 0x92, - 0x76, 0x43, - 0x9C, - 0x58, - 0xB1, - 0x6A, - 0x3A, - 0x0D, - 0x39, - 0x92 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), metafileStream, metafile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[8]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[9]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult UnregisterEffect(Guid* classId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), classId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), effectId, properties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult ReloadSystemMetrics() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void GetDesktopDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); - } -} - -/// -/// ID2D1CommandSink1 -[Guid("9eb767fd-4269-4467-b8c2-eb30cb305743")] -[NativeTypeName("struct ID2D1CommandSink1 : ID2D1CommandSink")] -[NativeInheritance("ID2D1CommandSink")] -public unsafe partial struct ID2D1CommandSink1 -{ - public static ref readonly Guid IID_ID2D1CommandSink1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFD, 0x67, 0xB7, 0x9E, - 0x69, 0x42, - 0x67, 0x44, - 0xB8, - 0xC2, - 0xEB, - 0x30, - 0xCB, - 0x30, - 0x57, - 0x43 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult BeginDraw() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult EndDraw() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetAntialiasMode(AntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetTags(ulong tag1, ulong tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetTransform(Matrix3x2* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetUnitMode(UnitMode unitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult Clear(Common.ColorF* color) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), color); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult PushLayer(LayerParameters1* layerParameters1, ID2D1Layer* layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), layerParameters1, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult PopAxisAlignedClip() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult PopLayer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult SetPrimitiveBlend1(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), primitiveBlend); - } -} - -/// -/// ID2D1SvgAttribute -[Guid("c9cdb0dd-f8c9-4e70-b7c2-301c80292c5e")] -[NativeTypeName("struct ID2D1SvgAttribute : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1SvgAttribute -{ - public static ref readonly Guid IID_ID2D1SvgAttribute - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDD, 0xB0, 0xCD, 0xC9, - 0xC9, 0xF8, - 0x70, 0x4E, - 0xB7, - 0xC2, - 0x30, - 0x1C, - 0x80, - 0x29, - 0x2C, - 0x5E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgAttribute)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgAttribute*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetElement(ID2D1SvgElement** element) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgAttribute*)Unsafe.AsPointer(ref this), element); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult Clone(ID2D1SvgAttribute** attribute) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgAttribute*)Unsafe.AsPointer(ref this), attribute); - } -} - -/// -/// ID2D1SvgPaint -[Guid("d59bab0a-68a2-455b-a5dc-9eb2854e2490")] -[NativeTypeName("struct ID2D1SvgPaint : ID2D1SvgAttribute")] -[NativeInheritance("ID2D1SvgAttribute")] -public unsafe partial struct ID2D1SvgPaint -{ - public static ref readonly Guid IID_ID2D1SvgPaint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0A, 0xAB, 0x9B, 0xD5, - 0xA2, 0x68, - 0x5B, 0x45, - 0xA5, - 0xDC, - 0x9E, - 0xB2, - 0x85, - 0x4E, - 0x24, - 0x90 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgPaint)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetElement(ID2D1SvgElement** element) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), element); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Clone(ID2D1SvgAttribute** attribute) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), attribute); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPaintType(SvgPaintType paintType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), paintType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public SvgPaintType GetPaintType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetColor(Common.ColorF* color) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), color); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void GetColor(Common.ColorF* color) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), color); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetId(ushort* id) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), id); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetId(ushort* id, uint idCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), id, idCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public uint GetIdLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1SvgStrokeDashArray -[Guid("f1c0ca52-92a3-4f00-b4ce-f35691efd9d9")] -[NativeTypeName("struct ID2D1SvgStrokeDashArray : ID2D1SvgAttribute")] -[NativeInheritance("ID2D1SvgAttribute")] -public unsafe partial struct ID2D1SvgStrokeDashArray -{ - public static ref readonly Guid IID_ID2D1SvgStrokeDashArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x52, 0xCA, 0xC0, 0xF1, - 0xA3, 0x92, - 0x00, 0x4F, - 0xB4, - 0xCE, - 0xF3, - 0x56, - 0x91, - 0xEF, - 0xD9, - 0xD9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgStrokeDashArray)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetElement(ID2D1SvgElement** element) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), element); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Clone(ID2D1SvgAttribute** attribute) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), attribute); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult RemoveDashesAtEnd(uint dashesCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), dashesCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult UpdateDashes(SvgLength* dashes, uint dashesCount, uint startIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), dashes, dashesCount, startIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult UpdateDashes(float* dashes, uint dashesCount, uint startIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), dashes, dashesCount, startIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetDashes(SvgLength* dashes, uint dashesCount, uint startIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), dashes, dashesCount, startIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetDashes(float* dashes, uint dashesCount, uint startIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), dashes, dashesCount, startIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public uint GetDashesCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1SvgPointCollection -[Guid("9dbe4c0d-3572-4dd9-9825-5530813bb712")] -[NativeTypeName("struct ID2D1SvgPointCollection : ID2D1SvgAttribute")] -[NativeInheritance("ID2D1SvgAttribute")] -public unsafe partial struct ID2D1SvgPointCollection -{ - public static ref readonly Guid IID_ID2D1SvgPointCollection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0D, 0x4C, 0xBE, 0x9D, - 0x72, 0x35, - 0xD9, 0x4D, - 0x98, - 0x25, - 0x55, - 0x30, - 0x81, - 0x3B, - 0xB7, - 0x12 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgPointCollection)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetElement(ID2D1SvgElement** element) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this), element); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Clone(ID2D1SvgAttribute** attribute) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this), attribute); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult RemovePointsAtEnd(uint pointsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this), pointsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult UpdatePoints(System.Drawing.PointF** points, uint pointsCount, uint startIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this), points, pointsCount, startIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetPoints(System.Drawing.PointF** points, uint pointsCount, uint startIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this), points, pointsCount, startIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public uint GetPointsCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1SvgPathData -[Guid("c095e4f4-bb98-43d6-9745-4d1b84ec9888")] -[NativeTypeName("struct ID2D1SvgPathData : ID2D1SvgAttribute")] -[NativeInheritance("ID2D1SvgAttribute")] -public unsafe partial struct ID2D1SvgPathData -{ - public static ref readonly Guid IID_ID2D1SvgPathData - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF4, 0xE4, 0x95, 0xC0, - 0x98, 0xBB, - 0xD6, 0x43, - 0x97, - 0x45, - 0x4D, - 0x1B, - 0x84, - 0xEC, - 0x98, - 0x88 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgPathData)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetElement(ID2D1SvgElement** element) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), element); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Clone(ID2D1SvgAttribute** attribute) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), attribute); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult RemoveSegmentDataAtEnd(uint dataCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), dataCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult UpdateSegmentData(float* data, uint dataCount, uint startIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), data, dataCount, startIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetSegmentData(float* data, uint dataCount, uint startIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), data, dataCount, startIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public uint GetSegmentDataCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult RemoveCommandsAtEnd(uint commandsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), commandsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult UpdateCommands(SvgPathCommand* commands, uint commandsCount, uint startIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), commands, commandsCount, startIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetCommands(SvgPathCommand* commands, uint commandsCount, uint startIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), commands, commandsCount, startIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public uint GetCommandsCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreatePathGeometry(Common.FillMode fillMode, ID2D1PathGeometry1** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), fillMode, pathGeometry); - } -} - -/// -/// ID2D1SvgElement -[Guid("ac7b67a6-183e-49c1-a823-0ebe40b0db29")] -[NativeTypeName("struct ID2D1SvgElement : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1SvgElement -{ - public static ref readonly Guid IID_ID2D1SvgElement - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA6, 0x67, 0x7B, 0xAC, - 0x3E, 0x18, - 0xC1, 0x49, - 0xA8, - 0x23, - 0x0E, - 0xBE, - 0x40, - 0xB0, - 0xDB, - 0x29 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgElement)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDocument(ID2D1SvgDocument** document) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), document); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetTagName(ushort* name, uint nameCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public uint GetTagNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public Bool32 IsTextContent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetParent(ID2D1SvgElement** parent) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), parent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public Bool32 HasChildren() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GetFirstChild(ID2D1SvgElement** child) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), child); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void GetLastChild(ID2D1SvgElement** child) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), child); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetPreviousChild(ID2D1SvgElement* referenceChild, ID2D1SvgElement** previousChild) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), referenceChild, previousChild); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetNextChild(ID2D1SvgElement* referenceChild, ID2D1SvgElement** nextChild) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), referenceChild, nextChild); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult InsertChildBefore(ID2D1SvgElement* newChild, ID2D1SvgElement* referenceChild) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), newChild, referenceChild); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult AppendChild(ID2D1SvgElement* newChild) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), newChild); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult ReplaceChild(ID2D1SvgElement* newChild, ID2D1SvgElement* oldChild) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), newChild, oldChild); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult RemoveChild(ID2D1SvgElement* oldChild) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), oldChild); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateChild(ushort* tagName, ID2D1SvgElement** newChild) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), tagName, newChild); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public Bool32 IsAttributeSpecified(ushort* name, Bool32* inherited) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, inherited); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public uint GetSpecifiedAttributeCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetSpecifiedAttributeName(uint index, ushort* name, uint nameCount, Bool32* inherited) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), index, name, nameCount, inherited); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetSpecifiedAttributeNameLength(uint index, uint* nameLength, Bool32* inherited) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), index, nameLength, inherited); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult RemoveAttribute(ushort* name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult SetTextValue(ushort* name, uint nameCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetTextValue(ushort* name, uint nameCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public uint GetTextValueLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult SetAttributeValue(ushort* name, ID2D1SvgAttribute* value) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, value); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult SetAttributeValue(ushort* name, SvgAttributePodType type, void* value, uint valueSizeInBytes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult SetAttributeValue(ushort* name, SvgAttributeStringType type, ushort* value) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult GetAttributeValue(ushort* name, Guid* riid, void** value) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, riid, value); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult GetAttributeValue(ushort* name, SvgAttributePodType type, void* value, uint valueSizeInBytes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetAttributeValue(ushort* name, SvgAttributeStringType type, ushort* value, uint valueCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult GetAttributeValueLength(ushort* name, SvgAttributeStringType type, uint* valueLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, valueLength); - } -} - -/// -/// ID2D1SvgDocument -[Guid("86b88e4d-afa4-4d7b-88e4-68a51c4a0aec")] -[NativeTypeName("struct ID2D1SvgDocument : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1SvgDocument -{ - public static ref readonly Guid IID_ID2D1SvgDocument - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x8E, 0xB8, 0x86, - 0xA4, 0xAF, - 0x7B, 0x4D, - 0x88, - 0xE4, - 0x68, - 0xA5, - 0x1C, - 0x4A, - 0x0A, - 0xEC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgDocument)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetViewportSize(System.Drawing.SizeF viewportSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), viewportSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public System.Drawing.SizeF GetViewportSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetRoot(ID2D1SvgElement* root) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), root); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetRoot(ID2D1SvgElement** root) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), root); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult FindElementById(ushort* id, ID2D1SvgElement** svgElement) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), id, svgElement); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult Serialize(Com.IStream* outputXmlStream, ID2D1SvgElement* subtree) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), outputXmlStream, subtree); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult Deserialize(Com.IStream* inputXmlStream, ID2D1SvgElement** subtree) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), inputXmlStream, subtree); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreatePaint(SvgPaintType paintType, Common.ColorF* color, ushort* id, ID2D1SvgPaint** paint) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), paintType, color, id, paint); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateStrokeDashArray(SvgLength* dashes, uint dashesCount, ID2D1SvgStrokeDashArray** strokeDashArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), dashes, dashesCount, strokeDashArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreatePointCollection(System.Drawing.PointF** points, uint pointsCount, ID2D1SvgPointCollection** pointCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), points, pointsCount, pointCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreatePathData(float* segmentData, uint segmentDataCount, SvgPathCommand* commands, uint commandsCount, ID2D1SvgPathData** pathData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), segmentData, segmentDataCount, commands, commandsCount, pathData); - } -} - -/// -/// ID2D1InkStyle -[Guid("bae8b344-23fc-4071-8cb5-d05d6f073848")] -[NativeTypeName("struct ID2D1InkStyle : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1InkStyle -{ - public static ref readonly Guid IID_ID2D1InkStyle - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x44, 0xB3, 0xE8, 0xBA, - 0xFC, 0x23, - 0x71, 0x40, - 0x8C, - 0xB5, - 0xD0, - 0x5D, - 0x6F, - 0x07, - 0x38, - 0x48 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1InkStyle)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1InkStyle*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetNibTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1InkStyle*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetNibTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1InkStyle*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetNibShape(InkNibShape nibShape) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1InkStyle*)Unsafe.AsPointer(ref this), nibShape); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public InkNibShape GetNibShape() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1InkStyle*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1Ink -[Guid("b499923b-7029-478f-a8b3-432c7c5f5312")] -[NativeTypeName("struct ID2D1Ink : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1Ink -{ - public static ref readonly Guid IID_ID2D1Ink - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3B, 0x92, 0x99, 0xB4, - 0x29, 0x70, - 0x8F, 0x47, - 0xA8, - 0xB3, - 0x43, - 0x2C, - 0x7C, - 0x5F, - 0x53, - 0x12 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Ink)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Ink*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetStartPoint(InkPoint* startPoint) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Ink*)Unsafe.AsPointer(ref this), startPoint); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public InkPoint GetStartPoint() - { - InkPoint result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Ink*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult AddSegments(InkBezierSegment* segments, uint segmentsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Ink*)Unsafe.AsPointer(ref this), segments, segmentsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult RemoveSegmentsAtEnd(uint segmentsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Ink*)Unsafe.AsPointer(ref this), segmentsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetSegments(uint startSegment, InkBezierSegment* segments, uint segmentsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Ink*)Unsafe.AsPointer(ref this), startSegment, segments, segmentsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetSegmentAtEnd(InkBezierSegment* segment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Ink*)Unsafe.AsPointer(ref this), segment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public uint GetSegmentCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Ink*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetSegments(uint startSegment, InkBezierSegment* segments, uint segmentsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Ink*)Unsafe.AsPointer(ref this), startSegment, segments, segmentsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult StreamAsGeometry(ID2D1InkStyle* inkStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Ink*)Unsafe.AsPointer(ref this), inkStyle, worldTransform, flatteningTolerance, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetBounds(ID2D1InkStyle* inkStyle, Matrix3x2* worldTransform, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Ink*)Unsafe.AsPointer(ref this), inkStyle, worldTransform, bounds); - } -} - -/// -/// ID2D1GradientMesh -[Guid("f292e401-c050-4cde-83d7-04962d3b23c2")] -[NativeTypeName("struct ID2D1GradientMesh : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1GradientMesh -{ - public static ref readonly Guid IID_ID2D1GradientMesh - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x01, 0xE4, 0x92, 0xF2, - 0x50, 0xC0, - 0xDE, 0x4C, - 0x83, - 0xD7, - 0x04, - 0x96, - 0x2D, - 0x3B, - 0x23, - 0xC2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GradientMesh)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GradientMesh*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetPatchCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GradientMesh*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPatches(uint startIndex, GradientMeshPatch* patches, uint patchesCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GradientMesh*)Unsafe.AsPointer(ref this), startIndex, patches, patchesCount); - } -} - -/// -/// ID2D1ImageSource -[Guid("c9b664e5-74a1-4378-9ac2-eefc37a3f4d8")] -[NativeTypeName("struct ID2D1ImageSource : ID2D1Image")] -[NativeInheritance("ID2D1Image")] -public unsafe partial struct ID2D1ImageSource -{ - public static ref readonly Guid IID_ID2D1ImageSource - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE5, 0x64, 0xB6, 0xC9, - 0xA1, 0x74, - 0x78, 0x43, - 0x9A, - 0xC2, - 0xEE, - 0xFC, - 0x37, - 0xA3, - 0xF4, - 0xD8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ImageSource)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ImageSource*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult OfferResources() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ImageSource*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult TryReclaimResources(Bool32* resourcesDiscarded) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ImageSource*)Unsafe.AsPointer(ref this), resourcesDiscarded); - } -} - -/// -/// ID2D1ImageSourceFromWic -[Guid("77395441-1c8f-4555-8683-f50dab0fe792")] -[NativeTypeName("struct ID2D1ImageSourceFromWic : ID2D1ImageSource")] -[NativeInheritance("ID2D1ImageSource")] -public unsafe partial struct ID2D1ImageSourceFromWic -{ - public static ref readonly Guid IID_ID2D1ImageSourceFromWic - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x54, 0x39, 0x77, - 0x8F, 0x1C, - 0x55, 0x45, - 0x86, - 0x83, - 0xF5, - 0x0D, - 0xAB, - 0x0F, - 0xE7, - 0x92 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ImageSourceFromWic)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult OfferResources() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ImageSourceFromWic*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult TryReclaimResources(Bool32* resourcesDiscarded) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ImageSourceFromWic*)Unsafe.AsPointer(ref this), resourcesDiscarded); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ImageSourceFromWic*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult EnsureCached(Common.RectU* rectangleToFill) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ImageSourceFromWic*)Unsafe.AsPointer(ref this), rectangleToFill); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult TrimCache(Common.RectU* rectangleToPreserve) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1ImageSourceFromWic*)Unsafe.AsPointer(ref this), rectangleToPreserve); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetSource(Graphics.Imaging.IWICBitmapSource** wicBitmapSource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1ImageSourceFromWic*)Unsafe.AsPointer(ref this), wicBitmapSource); - } -} - -/// -/// ID2D1TransformedImageSource -[Guid("7f1f79e5-2796-416c-8f55-700f911445e5")] -[NativeTypeName("struct ID2D1TransformedImageSource : ID2D1Image")] -[NativeInheritance("ID2D1Image")] -public unsafe partial struct ID2D1TransformedImageSource -{ - public static ref readonly Guid IID_ID2D1TransformedImageSource - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE5, 0x79, 0x1F, 0x7F, - 0x96, 0x27, - 0x6C, 0x41, - 0x8F, - 0x55, - 0x70, - 0x0F, - 0x91, - 0x14, - 0x45, - 0xE5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TransformedImageSource)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1TransformedImageSource*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetSource(ID2D1ImageSource** imageSource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1TransformedImageSource*)Unsafe.AsPointer(ref this), imageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetProperties(TransformedImageSourceProperties* properties) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1TransformedImageSource*)Unsafe.AsPointer(ref this), properties); - } -} - -/// -/// ID2D1LookupTable3D -[Guid("53dd9855-a3b0-4d5b-82e1-26e25c5e5797")] -[NativeTypeName("struct ID2D1LookupTable3D : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1LookupTable3D -{ - public static ref readonly Guid IID_ID2D1LookupTable3D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x55, 0x98, 0xDD, 0x53, - 0xB0, 0xA3, - 0x5B, 0x4D, - 0x82, - 0xE1, - 0x26, - 0xE2, - 0x5C, - 0x5E, - 0x57, - 0x97 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1LookupTable3D)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1LookupTable3D*)Unsafe.AsPointer(ref this), factory); - } -} - -/// -/// ID2D1DeviceContext2 -[Guid("394ea6a3-0c34-4321-950b-6ca20f0be6c7")] -[NativeTypeName("struct ID2D1DeviceContext2 : ID2D1DeviceContext1")] -[NativeInheritance("ID2D1DeviceContext1")] -public unsafe partial struct ID2D1DeviceContext2 -{ - public static ref readonly Guid IID_ID2D1DeviceContext2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA3, 0xA6, 0x4E, 0x39, - 0x34, 0x0C, - 0x21, 0x43, - 0x95, - 0x0B, - 0x6C, - 0xA2, - 0x0F, - 0x0B, - 0xE6, - 0xC7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateFilledGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, ID2D1GeometryRealization** geometryRealization) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, geometryRealization); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateStrokedGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle* strokeStyle, ID2D1GeometryRealization** geometryRealization) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), geometryRealization, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), filename, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), effectId, effect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateCommandList(ID2D1CommandList** commandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), commandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), bufferPrecision); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), image, localBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), image, worldBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void GetDevice(ID2D1Device** device) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), device); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void SetTarget(ID2D1Image* image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void GetTarget(ID2D1Image** image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void GetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public PrimitiveBlend GetPrimitiveBlend() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetUnitMode(UnitMode unitMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public UnitMode GetUnitMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), effect, rectangleCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), size, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult CreateMesh(ID2D1Mesh** mesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), mesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), roundedRect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), ellipse, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void SetAntialiasMode(AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public AntialiasMode GetAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public TextAntialiasMode GetTextAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void SetTags(ulong tag1, ulong tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void GetTags(ulong* tag1, ulong* tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void PopLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public HResult Flush(ulong* tag1, ulong* tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public void PopAxisAlignedClip() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public void Clear(Common.ColorF* clearColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), clearColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public void BeginDraw() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public void SetDpi(float dpiX, float dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(89)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(90)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(91)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(92)] - public uint GetMaximumBitmapSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(93)] - public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), renderTargetProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(94)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(95)] - public HResult CreateInk(InkPoint* startPoint, ID2D1Ink** ink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), startPoint, ink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(96)] - public HResult CreateInkStyle(InkStyleProperties* inkStyleProperties, ID2D1InkStyle** inkStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), inkStyleProperties, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(97)] - public HResult CreateGradientMesh(GradientMeshPatch* patches, uint patchesCount, ID2D1GradientMesh** gradientMesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), patches, patchesCount, gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(98)] - public HResult CreateImageSourceFromWic(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, ImageSourceLoadingOptions loadingOptions, Common.AlphaMode alphaMode, ID2D1ImageSourceFromWic** imageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), wicBitmapSource, loadingOptions, alphaMode, imageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(99)] - public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(100)] - public HResult CreateImageSourceFromDxgi(Graphics.Dxgi.IDXGISurface** surfaces, uint surfaceCount, Graphics.Dxgi.Common.ColorSpaceType colorSpace, ImageSourceFromDxgiOptions options, ID2D1ImageSource** imageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), surfaces, surfaceCount, colorSpace, options, imageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(101)] - public HResult GetGradientMeshWorldBounds(ID2D1GradientMesh* gradientMesh, Common.RectF* pBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), gradientMesh, pBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(102)] - public void DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(103)] - public void DrawGradientMesh(ID2D1GradientMesh* gradientMesh) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(104)] - public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(105)] - public HResult CreateTransformedImageSource(ID2D1ImageSource* imageSource, TransformedImageSourceProperties* properties, ID2D1TransformedImageSource** transformedImageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), imageSource, properties, transformedImageSource); - } -} - -/// -/// ID2D1Device2 -[Guid("a44472e1-8dfb-4e60-8492-6e2861c9ca8b")] -[NativeTypeName("struct ID2D1Device2 : ID2D1Device1")] -[NativeInheritance("ID2D1Device1")] -public unsafe partial struct ID2D1Device2 -{ - public static ref readonly Guid IID_ID2D1Device2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE1, 0x72, 0x44, 0xA4, - 0xFB, 0x8D, - 0x60, 0x4E, - 0x84, - 0x92, - 0x6E, - 0x28, - 0x61, - 0xC9, - 0xCA, - 0x8B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public RenderingPriority GetRenderingPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetRenderingPriority(RenderingPriority renderingPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device2*)Unsafe.AsPointer(ref this), renderingPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device2*)Unsafe.AsPointer(ref this), options, deviceContext1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device2*)Unsafe.AsPointer(ref this), options, deviceContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void SetMaximumTextureMemory(ulong maximumInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device2*)Unsafe.AsPointer(ref this), maximumInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ulong GetMaximumTextureMemory() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Device2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void ClearResources(uint millisecondsSinceUse) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Device2*)Unsafe.AsPointer(ref this), millisecondsSinceUse); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Device2*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext2** deviceContext2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Device2*)Unsafe.AsPointer(ref this), options, deviceContext2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void FlushDeviceContexts(ID2D1Bitmap* bitmap) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Device2*)Unsafe.AsPointer(ref this), bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetDxgiDevice(Graphics.Dxgi.IDXGIDevice** dxgiDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Device2*)Unsafe.AsPointer(ref this), dxgiDevice); - } -} - -/// -/// ID2D1Factory3 -[Guid("0869759f-4f00-413f-b03e-2bda45404d0f")] -[NativeTypeName("struct ID2D1Factory3 : ID2D1Factory2")] -[NativeInheritance("ID2D1Factory2")] -public unsafe partial struct ID2D1Factory3 -{ - public static ref readonly Guid IID_ID2D1Factory3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9F, 0x75, 0x69, 0x08, - 0x00, 0x4F, - 0x3F, 0x41, - 0xB0, - 0x3E, - 0x2B, - 0xDA, - 0x45, - 0x40, - 0x4D, - 0x0F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), metafileStream, metafile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[9]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[10]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult UnregisterEffect(Guid* classId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), classId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), effectId, properties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult ReloadSystemMetrics() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void GetDesktopDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device2** d2dDevice2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice2); - } -} - -/// -/// ID2D1CommandSink2 -[Guid("3bab440e-417e-47df-a2e2-bc0be6a00916")] -[NativeTypeName("struct ID2D1CommandSink2 : ID2D1CommandSink1")] -[NativeInheritance("ID2D1CommandSink1")] -public unsafe partial struct ID2D1CommandSink2 -{ - public static ref readonly Guid IID_ID2D1CommandSink2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0E, 0x44, 0xAB, 0x3B, - 0x7E, 0x41, - 0xDF, 0x47, - 0xA2, - 0xE2, - 0xBC, - 0x0B, - 0xE6, - 0xA0, - 0x09, - 0x16 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetPrimitiveBlend1(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult BeginDraw() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult EndDraw() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetAntialiasMode(AntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetTags(ulong tag1, ulong tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetTransform(Matrix3x2* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetUnitMode(UnitMode unitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult Clear(Common.ColorF* color) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), color); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult PushLayer(LayerParameters1* layerParameters1, ID2D1Layer* layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), layerParameters1, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult PopAxisAlignedClip() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult PopLayer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult DrawGradientMesh(ID2D1GradientMesh* gradientMesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); - } -} - -/// -/// ID2D1GdiMetafile1 -[Guid("2e69f9e8-dd3f-4bf9-95ba-c04f49d788df")] -[NativeTypeName("struct ID2D1GdiMetafile1 : ID2D1GdiMetafile")] -[NativeInheritance("ID2D1GdiMetafile")] -public unsafe partial struct ID2D1GdiMetafile1 -{ - public static ref readonly Guid IID_ID2D1GdiMetafile1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE8, 0xF9, 0x69, 0x2E, - 0x3F, 0xDD, - 0xF9, 0x4B, - 0x95, - 0xBA, - 0xC0, - 0x4F, - 0x49, - 0xD7, - 0x88, - 0xDF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiMetafile1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Stream(ID2D1GdiMetafileSink* sink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GdiMetafile1*)Unsafe.AsPointer(ref this), sink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetBounds(Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GdiMetafile1*)Unsafe.AsPointer(ref this), bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GdiMetafile1*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDpi(float* dpiX, float* dpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1GdiMetafile1*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetSourceBounds(Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1GdiMetafile1*)Unsafe.AsPointer(ref this), bounds); - } -} - -/// -/// ID2D1GdiMetafileSink1 -[Guid("fd0ecb6b-91e6-411e-8655-395e760f91b4")] -[NativeTypeName("struct ID2D1GdiMetafileSink1 : ID2D1GdiMetafileSink")] -[NativeInheritance("ID2D1GdiMetafileSink")] -public unsafe partial struct ID2D1GdiMetafileSink1 -{ - public static ref readonly Guid IID_ID2D1GdiMetafileSink1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6B, 0xCB, 0x0E, 0xFD, - 0xE6, 0x91, - 0x1E, 0x41, - 0x86, - 0x55, - 0x39, - 0x5E, - 0x76, - 0x0F, - 0x91, - 0xB4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiMetafileSink1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult ProcessRecord(uint recordType, void* recordData, uint recordDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GdiMetafileSink1*)Unsafe.AsPointer(ref this), recordType, recordData, recordDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult ProcessRecord(uint recordType, void* recordData, uint recordDataSize, uint flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GdiMetafileSink1*)Unsafe.AsPointer(ref this), recordType, recordData, recordDataSize, flags); - } -} - -/// -/// ID2D1SpriteBatch -[Guid("4dc583bf-3a10-438a-8722-e9765224f1f1")] -[NativeTypeName("struct ID2D1SpriteBatch : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1SpriteBatch -{ - public static ref readonly Guid IID_ID2D1SpriteBatch - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBF, 0x83, 0xC5, 0x4D, - 0x10, 0x3A, - 0x8A, 0x43, - 0x87, - 0x22, - 0xE9, - 0x76, - 0x52, - 0x24, - 0xF1, - 0xF1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SpriteBatch)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SpriteBatch*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult AddSprites(uint spriteCount, Common.RectF* destinationRectangles, Common.RectU* sourceRectangles, Common.ColorF* colors, Matrix3x2* transforms, uint destinationRectanglesStride, uint sourceRectanglesStride, uint colorsStride, uint transformsStride) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SpriteBatch*)Unsafe.AsPointer(ref this), spriteCount, destinationRectangles, sourceRectangles, colors, transforms, destinationRectanglesStride, sourceRectanglesStride, colorsStride, transformsStride); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetSprites(uint startIndex, uint spriteCount, Common.RectF* destinationRectangles, Common.RectU* sourceRectangles, Common.ColorF* colors, Matrix3x2* transforms, uint destinationRectanglesStride, uint sourceRectanglesStride, uint colorsStride, uint transformsStride) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SpriteBatch*)Unsafe.AsPointer(ref this), startIndex, spriteCount, destinationRectangles, sourceRectangles, colors, transforms, destinationRectanglesStride, sourceRectanglesStride, colorsStride, transformsStride); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetSprites(uint startIndex, uint spriteCount, Common.RectF* destinationRectangles, Common.RectU* sourceRectangles, Common.ColorF* colors, Matrix3x2** transforms) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SpriteBatch*)Unsafe.AsPointer(ref this), startIndex, spriteCount, destinationRectangles, sourceRectangles, colors, transforms); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetSpriteCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SpriteBatch*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void Clear() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SpriteBatch*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1DeviceContext3 -[Guid("235a7496-8351-414c-bcd4-6672ab2d8e00")] -[NativeTypeName("struct ID2D1DeviceContext3 : ID2D1DeviceContext2")] -[NativeInheritance("ID2D1DeviceContext2")] -public unsafe partial struct ID2D1DeviceContext3 -{ - public static ref readonly Guid IID_ID2D1DeviceContext3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x96, 0x74, 0x5A, 0x23, - 0x51, 0x83, - 0x4C, 0x41, - 0xBC, - 0xD4, - 0x66, - 0x72, - 0xAB, - 0x2D, - 0x8E, - 0x00 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateInk(InkPoint* startPoint, ID2D1Ink** ink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), startPoint, ink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateInkStyle(InkStyleProperties* inkStyleProperties, ID2D1InkStyle** inkStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), inkStyleProperties, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateGradientMesh(GradientMeshPatch* patches, uint patchesCount, ID2D1GradientMesh** gradientMesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), patches, patchesCount, gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateImageSourceFromWic(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, ImageSourceLoadingOptions loadingOptions, Common.AlphaMode alphaMode, ID2D1ImageSourceFromWic** imageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), wicBitmapSource, loadingOptions, alphaMode, imageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateImageSourceFromDxgi(Graphics.Dxgi.IDXGISurface** surfaces, uint surfaceCount, Graphics.Dxgi.Common.ColorSpaceType colorSpace, ImageSourceFromDxgiOptions options, ID2D1ImageSource** imageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), surfaces, surfaceCount, colorSpace, options, imageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetGradientMeshWorldBounds(ID2D1GradientMesh* gradientMesh, Common.RectF* pBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), gradientMesh, pBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void DrawGradientMesh(ID2D1GradientMesh* gradientMesh) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateTransformedImageSource(ID2D1ImageSource* imageSource, TransformedImageSourceProperties* properties, ID2D1TransformedImageSource** transformedImageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), imageSource, properties, transformedImageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateFilledGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, ID2D1GeometryRealization** geometryRealization) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, geometryRealization); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateStrokedGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle* strokeStyle, ID2D1GeometryRealization** geometryRealization) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), geometryRealization, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), filename, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), effectId, effect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateCommandList(ID2D1CommandList** commandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), commandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), bufferPrecision); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), image, localBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), image, worldBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void GetDevice(ID2D1Device** device) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), device); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetTarget(ID2D1Image* image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void GetTarget(ID2D1Image** image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void GetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public PrimitiveBlend GetPrimitiveBlend() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetUnitMode(UnitMode unitMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public UnitMode GetUnitMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), effect, rectangleCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), size, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult CreateMesh(ID2D1Mesh** mesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), mesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), roundedRect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), ellipse, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void SetAntialiasMode(AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public AntialiasMode GetAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public TextAntialiasMode GetTextAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public void SetTags(ulong tag1, ulong tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public void GetTags(ulong* tag1, ulong* tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(89)] - public void PopLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(90)] - public HResult Flush(ulong* tag1, ulong* tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(91)] - public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(92)] - public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(93)] - public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(94)] - public void PopAxisAlignedClip() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(95)] - public void Clear(Common.ColorF* clearColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), clearColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(96)] - public void BeginDraw() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(97)] - public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(98)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(99)] - public void SetDpi(float dpiX, float dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(100)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(101)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(102)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(103)] - public uint GetMaximumBitmapSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(104)] - public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), renderTargetProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(105)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(106)] - public HResult CreateSpriteBatch(ID2D1SpriteBatch** spriteBatch) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), spriteBatch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(107)] - public void DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); - } -} - -/// -/// ID2D1Device3 -[Guid("852f2087-802c-4037-ab60-ff2e7ee6fc01")] -[NativeTypeName("struct ID2D1Device3 : ID2D1Device2")] -[NativeInheritance("ID2D1Device2")] -public unsafe partial struct ID2D1Device3 -{ - public static ref readonly Guid IID_ID2D1Device3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x87, 0x20, 0x2F, 0x85, - 0x2C, 0x80, - 0x37, 0x40, - 0xAB, - 0x60, - 0xFF, - 0x2E, - 0x7E, - 0xE6, - 0xFC, - 0x01 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext2** deviceContext2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device3*)Unsafe.AsPointer(ref this), options, deviceContext2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void FlushDeviceContexts(ID2D1Bitmap* bitmap) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device3*)Unsafe.AsPointer(ref this), bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetDxgiDevice(Graphics.Dxgi.IDXGIDevice** dxgiDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device3*)Unsafe.AsPointer(ref this), dxgiDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public RenderingPriority GetRenderingPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void SetRenderingPriority(RenderingPriority renderingPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device3*)Unsafe.AsPointer(ref this), renderingPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Device3*)Unsafe.AsPointer(ref this), options, deviceContext1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Device3*)Unsafe.AsPointer(ref this), options, deviceContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void SetMaximumTextureMemory(ulong maximumInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Device3*)Unsafe.AsPointer(ref this), maximumInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public ulong GetMaximumTextureMemory() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Device3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ClearResources(uint millisecondsSinceUse) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Device3*)Unsafe.AsPointer(ref this), millisecondsSinceUse); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Device3*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext3** deviceContext3) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Device3*)Unsafe.AsPointer(ref this), options, deviceContext3); - } -} - -/// -/// ID2D1Factory4 -[Guid("bd4ec2d2-0662-4bee-ba8e-6f29f032e096")] -[NativeTypeName("struct ID2D1Factory4 : ID2D1Factory3")] -[NativeInheritance("ID2D1Factory3")] -public unsafe partial struct ID2D1Factory4 -{ - public static ref readonly Guid IID_ID2D1Factory4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD2, 0xC2, 0x4E, 0xBD, - 0x62, 0x06, - 0xEE, 0x4B, - 0xBA, - 0x8E, - 0x6F, - 0x29, - 0xF0, - 0x32, - 0xE0, - 0x96 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device2** d2dDevice2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), metafileStream, metafile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[10]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[11]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult UnregisterEffect(Guid* classId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), classId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), effectId, properties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult ReloadSystemMetrics() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GetDesktopDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device3** d2dDevice3) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice3); - } -} - -/// -/// ID2D1CommandSink3 -[Guid("18079135-4cf3-4868-bc8e-06067e6d242d")] -[NativeTypeName("struct ID2D1CommandSink3 : ID2D1CommandSink2")] -[NativeInheritance("ID2D1CommandSink2")] -public unsafe partial struct ID2D1CommandSink3 -{ - public static ref readonly Guid IID_ID2D1CommandSink3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x35, 0x91, 0x07, 0x18, - 0xF3, 0x4C, - 0x68, 0x48, - 0xBC, - 0x8E, - 0x06, - 0x06, - 0x7E, - 0x6D, - 0x24, - 0x2D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult DrawGradientMesh(ID2D1GradientMesh* gradientMesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrimitiveBlend1(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult BeginDraw() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult EndDraw() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetAntialiasMode(AntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetTags(ulong tag1, ulong tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult SetTransform(Matrix3x2* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetUnitMode(UnitMode unitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult Clear(Common.ColorF* color) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), color); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult PushLayer(LayerParameters1* layerParameters1, ID2D1Layer* layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), layerParameters1, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult PopAxisAlignedClip() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult PopLayer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); - } -} - -/// -/// ID2D1SvgGlyphStyle -[Guid("af671749-d241-4db8-8e41-dcc2e5c1a438")] -[NativeTypeName("struct ID2D1SvgGlyphStyle : ID2D1Resource")] -[NativeInheritance("ID2D1Resource")] -public unsafe partial struct ID2D1SvgGlyphStyle -{ - public static ref readonly Guid IID_ID2D1SvgGlyphStyle - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0x17, 0x67, 0xAF, - 0x41, 0xD2, - 0xB8, 0x4D, - 0x8E, - 0x41, - 0xDC, - 0xC2, - 0xE5, - 0xC1, - 0xA4, - 0x38 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgGlyphStyle)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgGlyphStyle*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetFill(ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgGlyphStyle*)Unsafe.AsPointer(ref this), brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetFill(ID2D1Brush** brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgGlyphStyle*)Unsafe.AsPointer(ref this), brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetStroke(ID2D1Brush* brush, float strokeWidth, float* dashes, uint dashesCount, float dashOffset) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgGlyphStyle*)Unsafe.AsPointer(ref this), brush, strokeWidth, dashes, dashesCount, dashOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetStrokeDashesCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgGlyphStyle*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetStroke(ID2D1Brush** brush, float* strokeWidth, float* dashes, uint dashesCount, float* dashOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgGlyphStyle*)Unsafe.AsPointer(ref this), brush, strokeWidth, dashes, dashesCount, dashOffset); - } -} - -/// -/// ID2D1DeviceContext4 -[Guid("8c427831-3d90-4476-b647-c4fae349e4db")] -[NativeTypeName("struct ID2D1DeviceContext4 : ID2D1DeviceContext3")] -[NativeInheritance("ID2D1DeviceContext3")] -public unsafe partial struct ID2D1DeviceContext4 -{ - public static ref readonly Guid IID_ID2D1DeviceContext4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x31, 0x78, 0x42, 0x8C, - 0x90, 0x3D, - 0x76, 0x44, - 0xB6, - 0x47, - 0xC4, - 0xFA, - 0xE3, - 0x49, - 0xE4, - 0xDB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateSpriteBatch(ID2D1SpriteBatch** spriteBatch) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), spriteBatch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateInk(InkPoint* startPoint, ID2D1Ink** ink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), startPoint, ink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateInkStyle(InkStyleProperties* inkStyleProperties, ID2D1InkStyle** inkStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), inkStyleProperties, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateGradientMesh(GradientMeshPatch* patches, uint patchesCount, ID2D1GradientMesh** gradientMesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), patches, patchesCount, gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateImageSourceFromWic(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, ImageSourceLoadingOptions loadingOptions, Common.AlphaMode alphaMode, ID2D1ImageSourceFromWic** imageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), wicBitmapSource, loadingOptions, alphaMode, imageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateImageSourceFromDxgi(Graphics.Dxgi.IDXGISurface** surfaces, uint surfaceCount, Graphics.Dxgi.Common.ColorSpaceType colorSpace, ImageSourceFromDxgiOptions options, ID2D1ImageSource** imageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), surfaces, surfaceCount, colorSpace, options, imageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetGradientMeshWorldBounds(ID2D1GradientMesh* gradientMesh, Common.RectF* pBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), gradientMesh, pBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DrawGradientMesh(ID2D1GradientMesh* gradientMesh) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateTransformedImageSource(ID2D1ImageSource* imageSource, TransformedImageSourceProperties* properties, ID2D1TransformedImageSource** transformedImageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), imageSource, properties, transformedImageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateFilledGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, ID2D1GeometryRealization** geometryRealization) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, geometryRealization); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateStrokedGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle* strokeStyle, ID2D1GeometryRealization** geometryRealization) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), geometryRealization, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), filename, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), effectId, effect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateCommandList(ID2D1CommandList** commandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), commandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), bufferPrecision); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), image, localBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), image, worldBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void GetDevice(ID2D1Device** device) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), device); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetTarget(ID2D1Image* image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void GetTarget(ID2D1Image** image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void GetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public PrimitiveBlend GetPrimitiveBlend() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetUnitMode(UnitMode unitMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public UnitMode GetUnitMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), effect, rectangleCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), size, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult CreateMesh(ID2D1Mesh** mesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), mesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), roundedRect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), ellipse, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void SetAntialiasMode(AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public AntialiasMode GetAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public TextAntialiasMode GetTextAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public void SetTags(ulong tag1, ulong tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(89)] - public void GetTags(ulong* tag1, ulong* tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(90)] - public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(91)] - public void PopLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(92)] - public HResult Flush(ulong* tag1, ulong* tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(93)] - public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(94)] - public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(95)] - public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(96)] - public void PopAxisAlignedClip() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(97)] - public void Clear(Common.ColorF* clearColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), clearColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(98)] - public void BeginDraw() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(99)] - public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(100)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(101)] - public void SetDpi(float dpiX, float dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(102)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(103)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(104)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(105)] - public uint GetMaximumBitmapSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(106)] - public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), renderTargetProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(107)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(108)] - public HResult CreateSvgGlyphStyle(ID2D1SvgGlyphStyle** svgGlyphStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), svgGlyphStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(109)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(110)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(111)] - public void DrawColorBitmapGlyphRun(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, ColorBitmapGlyphSnapOption bitmapSnapOption) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), glyphImageFormat, baselineOrigin, glyphRun, measuringMode, bitmapSnapOption); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(112)] - public void DrawSvgGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(113)] - public HResult GetColorBitmapGlyphImage(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, System.Drawing.PointF* glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, float dpiX, float dpiY, Matrix3x2** glyphTransform, ID2D1Image** glyphImage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), glyphImageFormat, glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, dpiX, dpiY, glyphTransform, glyphImage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(114)] - public HResult GetSvgGlyphImage(System.Drawing.PointF* glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Matrix3x2** glyphTransform, ID2D1CommandList** glyphImage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, glyphTransform, glyphImage); - } -} - -/// -/// ID2D1Device4 -[Guid("d7bdb159-5683-4a46-bc9c-72dc720b858b")] -[NativeTypeName("struct ID2D1Device4 : ID2D1Device3")] -[NativeInheritance("ID2D1Device3")] -public unsafe partial struct ID2D1Device4 -{ - public static ref readonly Guid IID_ID2D1Device4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0xB1, 0xBD, 0xD7, - 0x83, 0x56, - 0x46, 0x4A, - 0xBC, - 0x9C, - 0x72, - 0xDC, - 0x72, - 0x0B, - 0x85, - 0x8B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext3** deviceContext3) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device4*)Unsafe.AsPointer(ref this), options, deviceContext3); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext2** deviceContext2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device4*)Unsafe.AsPointer(ref this), options, deviceContext2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void FlushDeviceContexts(ID2D1Bitmap* bitmap) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device4*)Unsafe.AsPointer(ref this), bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDxgiDevice(Graphics.Dxgi.IDXGIDevice** dxgiDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device4*)Unsafe.AsPointer(ref this), dxgiDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public RenderingPriority GetRenderingPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void SetRenderingPriority(RenderingPriority renderingPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Device4*)Unsafe.AsPointer(ref this), renderingPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Device4*)Unsafe.AsPointer(ref this), options, deviceContext1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Device4*)Unsafe.AsPointer(ref this), options, deviceContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void SetMaximumTextureMemory(ulong maximumInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Device4*)Unsafe.AsPointer(ref this), maximumInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public ulong GetMaximumTextureMemory() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Device4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void ClearResources(uint millisecondsSinceUse) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Device4*)Unsafe.AsPointer(ref this), millisecondsSinceUse); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Device4*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext4** deviceContext4) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Device4*)Unsafe.AsPointer(ref this), options, deviceContext4); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void SetMaximumColorGlyphCacheMemory(ulong maximumInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Device4*)Unsafe.AsPointer(ref this), maximumInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public ulong GetMaximumColorGlyphCacheMemory() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Device4*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID2D1Factory5 -[Guid("c4349994-838e-4b0f-8cab-44997d9eeacc")] -[NativeTypeName("struct ID2D1Factory5 : ID2D1Factory4")] -[NativeInheritance("ID2D1Factory4")] -public unsafe partial struct ID2D1Factory5 -{ - public static ref readonly Guid IID_ID2D1Factory5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x94, 0x99, 0x34, 0xC4, - 0x8E, 0x83, - 0x0F, 0x4B, - 0x8C, - 0xAB, - 0x44, - 0x99, - 0x7D, - 0x9E, - 0xEA, - 0xCC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory5)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device3** d2dDevice3) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice3); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device2** d2dDevice2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), metafileStream, metafile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[11]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[12]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult UnregisterEffect(Guid* classId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), classId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), effectId, properties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult ReloadSystemMetrics() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void GetDesktopDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device4** d2dDevice4) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice4); - } -} - -/// -/// ID2D1CommandSink4 -[Guid("c78a6519-40d6-4218-b2de-beeeb744bb3e")] -[NativeTypeName("struct ID2D1CommandSink4 : ID2D1CommandSink3")] -[NativeInheritance("ID2D1CommandSink3")] -public unsafe partial struct ID2D1CommandSink4 -{ - public static ref readonly Guid IID_ID2D1CommandSink4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x19, 0x65, 0x8A, 0xC7, - 0xD6, 0x40, - 0x18, 0x42, - 0xB2, - 0xDE, - 0xBE, - 0xEE, - 0xB7, - 0x44, - 0xBB, - 0x3E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult DrawGradientMesh(ID2D1GradientMesh* gradientMesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrimitiveBlend1(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult BeginDraw() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult EndDraw() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetAntialiasMode(AntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetTags(ulong tag1, ulong tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetTransform(Matrix3x2* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetUnitMode(UnitMode unitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult Clear(Common.ColorF* color) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), color); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult PushLayer(LayerParameters1* layerParameters1, ID2D1Layer* layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), layerParameters1, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult PopAxisAlignedClip() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult PopLayer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult SetPrimitiveBlend2(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), primitiveBlend); - } -} - -/// -/// ID2D1ColorContext1 -[Guid("1ab42875-c57f-4be9-bd85-9cd78d6f55ee")] -[NativeTypeName("struct ID2D1ColorContext1 : ID2D1ColorContext")] -[NativeInheritance("ID2D1ColorContext")] -public unsafe partial struct ID2D1ColorContext1 -{ - public static ref readonly Guid IID_ID2D1ColorContext1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x75, 0x28, 0xB4, 0x1A, - 0x7F, 0xC5, - 0xE9, 0x4B, - 0xBD, - 0x85, - 0x9C, - 0xD7, - 0x8D, - 0x6F, - 0x55, - 0xEE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ColorContext1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public ColorSpace GetColorSpace() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetProfileSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetProfile(byte* profile, uint profileSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this), profile, profileSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public ColorContextType GetColorContextType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public Graphics.Dxgi.Common.ColorSpaceType GetDXGIColorSpace() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetSimpleColorProfile(SimpleColorProfile* simpleProfile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this), simpleProfile); - } -} - -/// -/// ID2D1DeviceContext5 -[Guid("7836d248-68cc-4df6-b9e8-de991bf62eb7")] -[NativeTypeName("struct ID2D1DeviceContext5 : ID2D1DeviceContext4")] -[NativeInheritance("ID2D1DeviceContext4")] -public unsafe partial struct ID2D1DeviceContext5 -{ - public static ref readonly Guid IID_ID2D1DeviceContext5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x48, 0xD2, 0x36, 0x78, - 0xCC, 0x68, - 0xF6, 0x4D, - 0xB9, - 0xE8, - 0xDE, - 0x99, - 0x1B, - 0xF6, - 0x2E, - 0xB7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext5)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateSvgGlyphStyle(ID2D1SvgGlyphStyle** svgGlyphStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), svgGlyphStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void DrawColorBitmapGlyphRun(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, ColorBitmapGlyphSnapOption bitmapSnapOption) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), glyphImageFormat, baselineOrigin, glyphRun, measuringMode, bitmapSnapOption); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void DrawSvgGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetColorBitmapGlyphImage(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, System.Drawing.PointF* glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, float dpiX, float dpiY, Matrix3x2** glyphTransform, ID2D1Image** glyphImage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), glyphImageFormat, glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, dpiX, dpiY, glyphTransform, glyphImage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetSvgGlyphImage(System.Drawing.PointF* glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Matrix3x2** glyphTransform, ID2D1CommandList** glyphImage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, glyphTransform, glyphImage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateSpriteBatch(ID2D1SpriteBatch** spriteBatch) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), spriteBatch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateInk(InkPoint* startPoint, ID2D1Ink** ink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), startPoint, ink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateInkStyle(InkStyleProperties* inkStyleProperties, ID2D1InkStyle** inkStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), inkStyleProperties, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateGradientMesh(GradientMeshPatch* patches, uint patchesCount, ID2D1GradientMesh** gradientMesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), patches, patchesCount, gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateImageSourceFromWic(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, ImageSourceLoadingOptions loadingOptions, Common.AlphaMode alphaMode, ID2D1ImageSourceFromWic** imageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), wicBitmapSource, loadingOptions, alphaMode, imageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateImageSourceFromDxgi(Graphics.Dxgi.IDXGISurface** surfaces, uint surfaceCount, Graphics.Dxgi.Common.ColorSpaceType colorSpace, ImageSourceFromDxgiOptions options, ID2D1ImageSource** imageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), surfaces, surfaceCount, colorSpace, options, imageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetGradientMeshWorldBounds(ID2D1GradientMesh* gradientMesh, Common.RectF* pBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), gradientMesh, pBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void DrawGradientMesh(ID2D1GradientMesh* gradientMesh) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateTransformedImageSource(ID2D1ImageSource* imageSource, TransformedImageSourceProperties* properties, ID2D1TransformedImageSource** transformedImageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), imageSource, properties, transformedImageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateFilledGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, ID2D1GeometryRealization** geometryRealization) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, geometryRealization); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateStrokedGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle* strokeStyle, ID2D1GeometryRealization** geometryRealization) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), geometryRealization, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), filename, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), effectId, effect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreateCommandList(ID2D1CommandList** commandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), commandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), bufferPrecision); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), image, localBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), image, worldBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetDevice(ID2D1Device** device) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), device); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void SetTarget(ID2D1Image* image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void GetTarget(ID2D1Image** image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void GetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public PrimitiveBlend GetPrimitiveBlend() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void SetUnitMode(UnitMode unitMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public UnitMode GetUnitMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), effect, rectangleCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), size, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public HResult CreateMesh(ID2D1Mesh** mesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), mesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), roundedRect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), ellipse, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(89)] - public void SetAntialiasMode(AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(90)] - public AntialiasMode GetAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(91)] - public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(92)] - public TextAntialiasMode GetTextAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(93)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(94)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(95)] - public void SetTags(ulong tag1, ulong tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(96)] - public void GetTags(ulong* tag1, ulong* tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(97)] - public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(98)] - public void PopLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(99)] - public HResult Flush(ulong* tag1, ulong* tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(100)] - public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(101)] - public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(102)] - public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(103)] - public void PopAxisAlignedClip() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(104)] - public void Clear(Common.ColorF* clearColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), clearColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(105)] - public void BeginDraw() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(106)] - public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(107)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(108)] - public void SetDpi(float dpiX, float dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(109)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(110)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(111)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(112)] - public uint GetMaximumBitmapSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(113)] - public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), renderTargetProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(114)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(115)] - public HResult CreateSvgDocument(Com.IStream* inputXmlStream, System.Drawing.SizeF viewportSize, ID2D1SvgDocument** svgDocument) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[115]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), inputXmlStream, viewportSize, svgDocument); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(116)] - public void DrawSvgDocument(ID2D1SvgDocument* svgDocument) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[116]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), svgDocument); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(117)] - public HResult CreateColorContextFromDxgiColorSpace(Graphics.Dxgi.Common.ColorSpaceType colorSpace, ID2D1ColorContext1** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[117]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), colorSpace, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(118)] - public HResult CreateColorContextFromSimpleColorProfile(SimpleColorProfile* simpleProfile, ID2D1ColorContext1** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[118]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), simpleProfile, colorContext); - } -} - -/// -/// ID2D1Device5 -[Guid("d55ba0a4-6405-4694-aef5-08ee1a4358b4")] -[NativeTypeName("struct ID2D1Device5 : ID2D1Device4")] -[NativeInheritance("ID2D1Device4")] -public unsafe partial struct ID2D1Device5 -{ - public static ref readonly Guid IID_ID2D1Device5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA4, 0xA0, 0x5B, 0xD5, - 0x05, 0x64, - 0x94, 0x46, - 0xAE, - 0xF5, - 0x08, - 0xEE, - 0x1A, - 0x43, - 0x58, - 0xB4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device5)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext4** deviceContext4) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device5*)Unsafe.AsPointer(ref this), options, deviceContext4); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetMaximumColorGlyphCacheMemory(ulong maximumInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device5*)Unsafe.AsPointer(ref this), maximumInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ulong GetMaximumColorGlyphCacheMemory() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext3** deviceContext3) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device5*)Unsafe.AsPointer(ref this), options, deviceContext3); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext2** deviceContext2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device5*)Unsafe.AsPointer(ref this), options, deviceContext2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void FlushDeviceContexts(ID2D1Bitmap* bitmap) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Device5*)Unsafe.AsPointer(ref this), bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetDxgiDevice(Graphics.Dxgi.IDXGIDevice** dxgiDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Device5*)Unsafe.AsPointer(ref this), dxgiDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public RenderingPriority GetRenderingPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Device5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void SetRenderingPriority(RenderingPriority renderingPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Device5*)Unsafe.AsPointer(ref this), renderingPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Device5*)Unsafe.AsPointer(ref this), options, deviceContext1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Device5*)Unsafe.AsPointer(ref this), options, deviceContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void SetMaximumTextureMemory(ulong maximumInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Device5*)Unsafe.AsPointer(ref this), maximumInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public ulong GetMaximumTextureMemory() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Device5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ClearResources(uint millisecondsSinceUse) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Device5*)Unsafe.AsPointer(ref this), millisecondsSinceUse); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Device5*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext5** deviceContext5) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Device5*)Unsafe.AsPointer(ref this), options, deviceContext5); - } -} - -/// -/// ID2D1Factory6 -[Guid("f9976f46-f642-44c1-97ca-da32ea2a2635")] -[NativeTypeName("struct ID2D1Factory6 : ID2D1Factory5")] -[NativeInheritance("ID2D1Factory5")] -public unsafe partial struct ID2D1Factory6 -{ - public static ref readonly Guid IID_ID2D1Factory6 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x46, 0x6F, 0x97, 0xF9, - 0x42, 0xF6, - 0xC1, 0x44, - 0x97, - 0xCA, - 0xDA, - 0x32, - 0xEA, - 0x2A, - 0x26, - 0x35 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory6)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device4** d2dDevice4) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice4); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device3** d2dDevice3) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice3); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device2** d2dDevice2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), metafileStream, metafile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[12]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[13]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult UnregisterEffect(Guid* classId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), classId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), effectId, properties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult ReloadSystemMetrics() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void GetDesktopDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device5** d2dDevice5) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice5); - } -} - -/// -/// ID2D1CommandSink5 -[Guid("7047dd26-b1e7-44a7-959a-8349e2144fa8")] -[NativeTypeName("struct ID2D1CommandSink5 : ID2D1CommandSink4")] -[NativeInheritance("ID2D1CommandSink4")] -public unsafe partial struct ID2D1CommandSink5 -{ - public static ref readonly Guid IID_ID2D1CommandSink5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x26, 0xDD, 0x47, 0x70, - 0xE7, 0xB1, - 0xA7, 0x44, - 0x95, - 0x9A, - 0x83, - 0x49, - 0xE2, - 0x14, - 0x4F, - 0xA8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink5)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetPrimitiveBlend2(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult DrawGradientMesh(ID2D1GradientMesh* gradientMesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrimitiveBlend1(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult BeginDraw() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult EndDraw() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetAntialiasMode(AntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetTags(ulong tag1, ulong tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetTransform(Matrix3x2* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult SetUnitMode(UnitMode unitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult Clear(Common.ColorF* color) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), color); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult PushLayer(LayerParameters1* layerParameters1, ID2D1Layer* layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), layerParameters1, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult PopAxisAlignedClip() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult PopLayer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult BlendImage(ID2D1Image* image, Common.BlendMode blendMode, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), image, blendMode, targetOffset, imageRectangle, interpolationMode); - } -} - -/// -/// ID2D1DeviceContext6 -[Guid("985f7e37-4ed0-4a19-98a3-15b0edfde306")] -[NativeTypeName("struct ID2D1DeviceContext6 : ID2D1DeviceContext5")] -[NativeInheritance("ID2D1DeviceContext5")] -public unsafe partial struct ID2D1DeviceContext6 -{ - public static ref readonly Guid IID_ID2D1DeviceContext6 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x37, 0x7E, 0x5F, 0x98, - 0xD0, 0x4E, - 0x19, 0x4A, - 0x98, - 0xA3, - 0x15, - 0xB0, - 0xED, - 0xFD, - 0xE3, - 0x06 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext6)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateSvgDocument(Com.IStream* inputXmlStream, System.Drawing.SizeF viewportSize, ID2D1SvgDocument** svgDocument) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), inputXmlStream, viewportSize, svgDocument); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void DrawSvgDocument(ID2D1SvgDocument* svgDocument) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), svgDocument); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateColorContextFromDxgiColorSpace(Graphics.Dxgi.Common.ColorSpaceType colorSpace, ID2D1ColorContext1** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), colorSpace, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateColorContextFromSimpleColorProfile(SimpleColorProfile* simpleProfile, ID2D1ColorContext1** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), simpleProfile, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateSvgGlyphStyle(ID2D1SvgGlyphStyle** svgGlyphStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), svgGlyphStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void DrawColorBitmapGlyphRun(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, ColorBitmapGlyphSnapOption bitmapSnapOption) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), glyphImageFormat, baselineOrigin, glyphRun, measuringMode, bitmapSnapOption); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void DrawSvgGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetColorBitmapGlyphImage(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, System.Drawing.PointF* glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, float dpiX, float dpiY, Matrix3x2** glyphTransform, ID2D1Image** glyphImage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), glyphImageFormat, glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, dpiX, dpiY, glyphTransform, glyphImage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetSvgGlyphImage(System.Drawing.PointF* glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Matrix3x2** glyphTransform, ID2D1CommandList** glyphImage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, glyphTransform, glyphImage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateSpriteBatch(ID2D1SpriteBatch** spriteBatch) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), spriteBatch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateInk(InkPoint* startPoint, ID2D1Ink** ink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), startPoint, ink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateInkStyle(InkStyleProperties* inkStyleProperties, ID2D1InkStyle** inkStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), inkStyleProperties, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateGradientMesh(GradientMeshPatch* patches, uint patchesCount, ID2D1GradientMesh** gradientMesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), patches, patchesCount, gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateImageSourceFromWic(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, ImageSourceLoadingOptions loadingOptions, Common.AlphaMode alphaMode, ID2D1ImageSourceFromWic** imageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), wicBitmapSource, loadingOptions, alphaMode, imageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateImageSourceFromDxgi(Graphics.Dxgi.IDXGISurface** surfaces, uint surfaceCount, Graphics.Dxgi.Common.ColorSpaceType colorSpace, ImageSourceFromDxgiOptions options, ID2D1ImageSource** imageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), surfaces, surfaceCount, colorSpace, options, imageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetGradientMeshWorldBounds(ID2D1GradientMesh* gradientMesh, Common.RectF* pBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), gradientMesh, pBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void DrawGradientMesh(ID2D1GradientMesh* gradientMesh) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), gradientMesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateTransformedImageSource(ID2D1ImageSource* imageSource, TransformedImageSourceProperties* properties, ID2D1TransformedImageSource** transformedImageSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), imageSource, properties, transformedImageSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateFilledGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, ID2D1GeometryRealization** geometryRealization) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, geometryRealization); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateStrokedGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle* strokeStyle, ID2D1GeometryRealization** geometryRealization) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), geometryRealization, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), filename, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), effectId, effect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult CreateCommandList(ID2D1CommandList** commandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), commandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), bufferPrecision); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image, localBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image, worldBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void GetDevice(ID2D1Device** device) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), device); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void SetTarget(ID2D1Image* image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void GetTarget(ID2D1Image** image) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void SetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void GetRenderingControls(RenderingControls* renderingControls) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), renderingControls); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), primitiveBlend); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public PrimitiveBlend GetPrimitiveBlend() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void SetUnitMode(UnitMode unitMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), unitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public UnitMode GetUnitMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), effect, rectangleCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), size, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public HResult CreateMesh(ID2D1Mesh** mesh) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), mesh); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), rect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), roundedRect, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), ellipse, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), mesh, brush); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(89)] - public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(90)] - public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(91)] - public void SetTransform(Matrix3x2* transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(92)] - public void GetTransform(Matrix3x2** transform) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(93)] - public void SetAntialiasMode(AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(94)] - public AntialiasMode GetAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(95)] - public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), textAntialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(96)] - public TextAntialiasMode GetTextAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(97)] - public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(98)] - public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), textRenderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(99)] - public void SetTags(ulong tag1, ulong tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(100)] - public void GetTags(ulong* tag1, ulong* tag2) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(101)] - public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), layerParameters, layer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(102)] - public void PopLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(103)] - public HResult Flush(ulong* tag1, ulong* tag2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(104)] - public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(105)] - public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(106)] - public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(107)] - public void PopAxisAlignedClip() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(108)] - public void Clear(Common.ColorF* clearColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), clearColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(109)] - public void BeginDraw() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(110)] - public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), tag1, tag2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(111)] - public Common.PixelFormat GetPixelFormat() - { - Common.PixelFormat result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(112)] - public void SetDpi(float dpiX, float dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(113)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(114)] - public System.Drawing.SizeF GetSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(115)] - public System.Drawing.Size GetPixelSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[115]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(116)] - public uint GetMaximumBitmapSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[116]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(117)] - public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[117]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), renderTargetProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(118)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[118]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(119)] - public void BlendImage(ID2D1Image* image, Common.BlendMode blendMode, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[119]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image, blendMode, targetOffset, imageRectangle, interpolationMode); - } -} - -/// -/// ID2D1Device6 -[Guid("7bfef914-2d75-4bad-be87-e18ddb077b6d")] -[NativeTypeName("struct ID2D1Device6 : ID2D1Device5")] -[NativeInheritance("ID2D1Device5")] -public unsafe partial struct ID2D1Device6 -{ - public static ref readonly Guid IID_ID2D1Device6 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x14, 0xF9, 0xFE, 0x7B, - 0x75, 0x2D, - 0xAD, 0x4B, - 0xBE, - 0x87, - 0xE1, - 0x8D, - 0xDB, - 0x07, - 0x7B, - 0x6D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device6)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext5** deviceContext5) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext5); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext4** deviceContext4) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext4); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetMaximumColorGlyphCacheMemory(ulong maximumInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device6*)Unsafe.AsPointer(ref this), maximumInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ulong GetMaximumColorGlyphCacheMemory() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext3** deviceContext3) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext3); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext2** deviceContext2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void FlushDeviceContexts(ID2D1Bitmap* bitmap) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Device6*)Unsafe.AsPointer(ref this), bitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetDxgiDevice(Graphics.Dxgi.IDXGIDevice** dxgiDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Device6*)Unsafe.AsPointer(ref this), dxgiDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public RenderingPriority GetRenderingPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Device6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void SetRenderingPriority(RenderingPriority renderingPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Device6*)Unsafe.AsPointer(ref this), renderingPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void SetMaximumTextureMemory(ulong maximumInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Device6*)Unsafe.AsPointer(ref this), maximumInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public ulong GetMaximumTextureMemory() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Device6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void ClearResources(uint millisecondsSinceUse) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Device6*)Unsafe.AsPointer(ref this), millisecondsSinceUse); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void GetFactory(ID2D1Factory** factory) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Device6*)Unsafe.AsPointer(ref this), factory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext6** deviceContext6) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext6); - } -} - -/// -/// ID2D1Factory7 -[Guid("bdc2bdd3-b96c-4de6-bdf7-99d4745454de")] -[NativeTypeName("struct ID2D1Factory7 : ID2D1Factory6")] -[NativeInheritance("ID2D1Factory6")] -public unsafe partial struct ID2D1Factory7 -{ - public static ref readonly Guid IID_ID2D1Factory7 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD3, 0xBD, 0xC2, 0xBD, - 0x6C, 0xB9, - 0xE6, 0x4D, - 0xBD, - 0xF7, - 0x99, - 0xD4, - 0x74, - 0x54, - 0x54, - 0xDE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory7)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device5** d2dDevice5) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice5); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device4** d2dDevice4) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice4); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device3** d2dDevice3) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice3); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device2** d2dDevice2) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice2); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), metafileStream, metafile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[13]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) - { - return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[14]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult UnregisterEffect(Guid* classId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), classId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), effectId, properties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult ReloadSystemMetrics() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory7*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void GetDesktopDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), pathGeometry); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device6** d2dDevice6) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice6); - } -} - -/// -/// ID2D1EffectContext1 -[Guid("84ab595a-fc81-4546-bacd-e8ef4d8abe7a")] -[NativeTypeName("struct ID2D1EffectContext1 : ID2D1EffectContext")] -[NativeInheritance("ID2D1EffectContext")] -public unsafe partial struct ID2D1EffectContext1 -{ - public static ref readonly Guid IID_ID2D1EffectContext1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5A, 0x59, 0xAB, 0x84, - 0x81, 0xFC, - 0x46, 0x45, - 0xBA, - 0xCD, - 0xE8, - 0xEF, - 0x4D, - 0x8A, - 0xBE, - 0x7A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EffectContext1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), effectId, effect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetMaximumSupportedFeatureLevel(Graphics.Direct3D.FeatureLevel* featureLevels, uint featureLevelsCount, Graphics.Direct3D.FeatureLevel* maximumSupportedFeatureLevel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), featureLevels, featureLevelsCount, maximumSupportedFeatureLevel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateTransformNodeFromEffect(ID2D1Effect* effect, ID2D1TransformNode** transformNode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), effect, transformNode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateBlendTransform(uint numInputs, BlendDescription* blendDescription, ID2D1BlendTransform** transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), numInputs, blendDescription, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateBorderTransform(ExtendMode extendModeX, ExtendMode extendModeY, ID2D1BorderTransform** transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), extendModeX, extendModeY, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateOffsetTransform(System.Drawing.Point* offset, ID2D1OffsetTransform** transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), offset, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateBoundsAdjustmentTransform(RawRect* outputRectangle, ID2D1BoundsAdjustmentTransform** transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), outputRectangle, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult LoadPixelShader(Guid* shaderId, byte* shaderBuffer, uint shaderBufferCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), shaderId, shaderBuffer, shaderBufferCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult LoadVertexShader(Guid* resourceId, byte* shaderBuffer, uint shaderBufferCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), resourceId, shaderBuffer, shaderBufferCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult LoadComputeShader(Guid* resourceId, byte* shaderBuffer, uint shaderBufferCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), resourceId, shaderBuffer, shaderBufferCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public Bool32 IsShaderLoaded(Guid* shaderId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), shaderId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateResourceTexture(Guid* resourceId, ResourceTextureProperties* resourceTextureProperties, byte* data, uint* strides, uint dataSize, ID2D1ResourceTexture** resourceTexture) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), resourceId, resourceTextureProperties, data, strides, dataSize, resourceTexture); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult FindResourceTexture(Guid* resourceId, ID2D1ResourceTexture** resourceTexture) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), resourceId, resourceTexture); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateVertexBuffer(VertexBufferProperties* vertexBufferProperties, Guid* resourceId, CustomVertexBufferProperties* customVertexBufferProperties, ID2D1VertexBuffer** buffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), vertexBufferProperties, resourceId, customVertexBufferProperties, buffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult FindVertexBuffer(Guid* resourceId, ID2D1VertexBuffer** buffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), resourceId, buffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), filename, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CheckFeatureSupport(Feature feature, void* featureSupportData, uint featureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), feature, featureSupportData, featureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), bufferPrecision); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); - } -} - -/// -/// ID2D1EffectContext2 -[Guid("577ad2a0-9fc7-4dda-8b18-dab810140052")] -[NativeTypeName("struct ID2D1EffectContext2 : ID2D1EffectContext1")] -[NativeInheritance("ID2D1EffectContext1")] -public unsafe partial struct ID2D1EffectContext2 -{ - public static ref readonly Guid IID_ID2D1EffectContext2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA0, 0xD2, 0x7A, 0x57, - 0xC7, 0x9F, - 0xDA, 0x4D, - 0x8B, - 0x18, - 0xDA, - 0xB8, - 0x10, - 0x14, - 0x00, - 0x52 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EffectContext2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDpi(float* dpiX, float* dpiY) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), effectId, effect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetMaximumSupportedFeatureLevel(Graphics.Direct3D.FeatureLevel* featureLevels, uint featureLevelsCount, Graphics.Direct3D.FeatureLevel* maximumSupportedFeatureLevel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), featureLevels, featureLevelsCount, maximumSupportedFeatureLevel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateTransformNodeFromEffect(ID2D1Effect* effect, ID2D1TransformNode** transformNode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), effect, transformNode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateBlendTransform(uint numInputs, BlendDescription* blendDescription, ID2D1BlendTransform** transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), numInputs, blendDescription, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateBorderTransform(ExtendMode extendModeX, ExtendMode extendModeY, ID2D1BorderTransform** transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), extendModeX, extendModeY, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateOffsetTransform(System.Drawing.Point* offset, ID2D1OffsetTransform** transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), offset, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateBoundsAdjustmentTransform(RawRect* outputRectangle, ID2D1BoundsAdjustmentTransform** transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), outputRectangle, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult LoadPixelShader(Guid* shaderId, byte* shaderBuffer, uint shaderBufferCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), shaderId, shaderBuffer, shaderBufferCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult LoadVertexShader(Guid* resourceId, byte* shaderBuffer, uint shaderBufferCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), resourceId, shaderBuffer, shaderBufferCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult LoadComputeShader(Guid* resourceId, byte* shaderBuffer, uint shaderBufferCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), resourceId, shaderBuffer, shaderBufferCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public Bool32 IsShaderLoaded(Guid* shaderId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), shaderId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateResourceTexture(Guid* resourceId, ResourceTextureProperties* resourceTextureProperties, byte* data, uint* strides, uint dataSize, ID2D1ResourceTexture** resourceTexture) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), resourceId, resourceTextureProperties, data, strides, dataSize, resourceTexture); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult FindResourceTexture(Guid* resourceId, ID2D1ResourceTexture** resourceTexture) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), resourceId, resourceTexture); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateVertexBuffer(VertexBufferProperties* vertexBufferProperties, Guid* resourceId, CustomVertexBufferProperties* customVertexBufferProperties, ID2D1VertexBuffer** buffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), vertexBufferProperties, resourceId, customVertexBufferProperties, buffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult FindVertexBuffer(Guid* resourceId, ID2D1VertexBuffer** buffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), resourceId, buffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), filename, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CheckFeatureSupport(Feature feature, void* featureSupportData, uint featureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), feature, featureSupportData, featureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), bufferPrecision); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateColorContextFromDxgiColorSpace(Graphics.Dxgi.Common.ColorSpaceType colorSpace, ID2D1ColorContext1** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), colorSpace, colorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateColorContextFromSimpleColorProfile(SimpleColorProfile* simpleProfile, ID2D1ColorContext1** colorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), simpleProfile, colorContext); - } -} - #endregion Com Types #region Functions diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1AnalysisTransform.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1AnalysisTransform.cs new file mode 100644 index 0000000..e5ff42d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1AnalysisTransform.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1AnalysisTransform +[Guid("0359dc30-95e6-4568-9055-27720d130e93")] +[NativeTypeName("struct ID2D1AnalysisTransform : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1AnalysisTransform +{ + public static ref readonly Guid IID_ID2D1AnalysisTransform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x30, 0xDC, 0x59, 0x03, + 0xE6, 0x95, + 0x68, 0x45, + 0x90, + 0x55, + 0x27, + 0x72, + 0x0D, + 0x13, + 0x0E, + 0x93 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1AnalysisTransform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ProcessAnalysisResults(byte* analysisData, uint analysisDataCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1AnalysisTransform*)Unsafe.AsPointer(ref this), analysisData, analysisDataCount); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Bitmap.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Bitmap.cs new file mode 100644 index 0000000..2d797da --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Bitmap.cs @@ -0,0 +1,148 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Bitmap +[Guid("a2296057-ea42-4099-983b-539fb6505426")] +[NativeTypeName("struct ID2D1Bitmap : ID2D1Image")] +[NativeInheritance("ID2D1Image")] +public unsafe partial struct ID2D1Bitmap +{ + public static ref readonly Guid IID_ID2D1Bitmap + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x57, 0x60, 0x29, 0xA2, + 0x42, 0xEA, + 0x99, 0x40, + 0x98, + 0x3B, + 0x53, + 0x9F, + 0xB6, + 0x50, + 0x54, + 0x26 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Bitmap)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CopyFromBitmap(System.Drawing.Point* destPoint, ID2D1Bitmap* bitmap, Common.RectU* srcRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this), destPoint, bitmap, srcRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CopyFromRenderTarget(System.Drawing.Point* destPoint, ID2D1RenderTarget* renderTarget, Common.RectU* srcRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this), destPoint, renderTarget, srcRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CopyFromMemory(Common.RectU* dstRect, void* srcData, uint pitch) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Bitmap*)Unsafe.AsPointer(ref this), dstRect, srcData, pitch); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Bitmap1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Bitmap1.cs new file mode 100644 index 0000000..db81182 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Bitmap1.cs @@ -0,0 +1,188 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Bitmap1 +[Guid("a898a84c-3873-4588-b08b-ebbf978df041")] +[NativeTypeName("struct ID2D1Bitmap1 : ID2D1Bitmap")] +[NativeInheritance("ID2D1Bitmap")] +public unsafe partial struct ID2D1Bitmap1 +{ + public static ref readonly Guid IID_ID2D1Bitmap1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4C, 0xA8, 0x98, 0xA8, + 0x73, 0x38, + 0x88, 0x45, + 0xB0, + 0x8B, + 0xEB, + 0xBF, + 0x97, + 0x8D, + 0xF0, + 0x41 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Bitmap1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CopyFromBitmap(System.Drawing.Point* destPoint, ID2D1Bitmap* bitmap, Common.RectU* srcRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), destPoint, bitmap, srcRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CopyFromRenderTarget(System.Drawing.Point* destPoint, ID2D1RenderTarget* renderTarget, Common.RectU* srcRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), destPoint, renderTarget, srcRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CopyFromMemory(Common.RectU* dstRect, void* srcData, uint pitch) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), dstRect, srcData, pitch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void GetColorContext(ID2D1ColorContext** colorContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public BitmapOptions GetOptions() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetSurface(Graphics.Dxgi.IDXGISurface** dxgiSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), dxgiSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult Map(MapOptions options, MappedRect* mappedRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this), options, mappedRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult Unmap() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Bitmap1*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BitmapBrush.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BitmapBrush.cs new file mode 100644 index 0000000..47e4524 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BitmapBrush.cs @@ -0,0 +1,187 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1BitmapBrush +[Guid("2cd906aa-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1BitmapBrush : ID2D1Brush")] +[NativeInheritance("ID2D1Brush")] +public unsafe partial struct ID2D1BitmapBrush +{ + public static ref readonly Guid IID_ID2D1BitmapBrush + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BitmapBrush)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetOpacity(float opacity) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), opacity); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public float GetOpacity() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetExtendModeX(ExtendMode extendModeX) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), extendModeX); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetExtendModeY(ExtendMode extendModeY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), extendModeY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void SetInterpolationMode(BitmapInterpolationMode interpolationMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), interpolationMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void SetBitmap(ID2D1Bitmap* bitmap) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public ExtendMode GetExtendModeX() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public ExtendMode GetExtendModeY() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public BitmapInterpolationMode GetInterpolationMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void GetBitmap(ID2D1Bitmap** bitmap) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1BitmapBrush*)Unsafe.AsPointer(ref this), bitmap); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BitmapBrush1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BitmapBrush1.cs new file mode 100644 index 0000000..dd9e81b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BitmapBrush1.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1BitmapBrush1 +[Guid("41343a53-e41a-49a2-91cd-21793bbb62e5")] +[NativeTypeName("struct ID2D1BitmapBrush1 : ID2D1BitmapBrush")] +[NativeInheritance("ID2D1BitmapBrush")] +public unsafe partial struct ID2D1BitmapBrush1 +{ + public static ref readonly Guid IID_ID2D1BitmapBrush1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x53, 0x3A, 0x34, 0x41, + 0x1A, 0xE4, + 0xA2, 0x49, + 0x91, + 0xCD, + 0x21, + 0x79, + 0x3B, + 0xBB, + 0x62, + 0xE5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BitmapBrush1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetOpacity(float opacity) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), opacity); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public float GetOpacity() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetExtendModeX(ExtendMode extendModeX) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), extendModeX); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetExtendModeY(ExtendMode extendModeY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), extendModeY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void SetInterpolationMode(BitmapInterpolationMode interpolationMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), interpolationMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void SetBitmap(ID2D1Bitmap* bitmap) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public ExtendMode GetExtendModeX() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public ExtendMode GetExtendModeY() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public BitmapInterpolationMode GetInterpolationMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void GetBitmap(ID2D1Bitmap** bitmap) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void SetInterpolationMode1(InterpolationMode interpolationMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this), interpolationMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public InterpolationMode GetInterpolationMode1() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1BitmapBrush1*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BitmapRenderTarget.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BitmapRenderTarget.cs new file mode 100644 index 0000000..27c873f --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BitmapRenderTarget.cs @@ -0,0 +1,524 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1BitmapRenderTarget +[Guid("2cd90695-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1BitmapRenderTarget : ID2D1RenderTarget")] +[NativeInheritance("ID2D1RenderTarget")] +public unsafe partial struct ID2D1BitmapRenderTarget +{ + public static ref readonly Guid IID_ID2D1BitmapRenderTarget + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x95, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BitmapRenderTarget)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), size, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMesh(ID2D1Mesh** mesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), mesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetAntialiasMode(AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public AntialiasMode GetAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetTags(ulong tag1, ulong tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void GetTags(ulong* tag1, ulong* tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void PopLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult Flush(ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void PopAxisAlignedClip() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void Clear(Common.ColorF* clearColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), clearColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void BeginDraw() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void SetDpi(float dpiX, float dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public uint GetMaximumBitmapSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), renderTargetProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult GetBitmap(ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), bitmap); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BlendTransform.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BlendTransform.cs new file mode 100644 index 0000000..4b66454 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BlendTransform.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1BlendTransform +[Guid("63ac0b32-ba44-450f-8806-7f4ca1ff2f1b")] +[NativeTypeName("struct ID2D1BlendTransform : ID2D1ConcreteTransform")] +[NativeInheritance("ID2D1ConcreteTransform")] +public unsafe partial struct ID2D1BlendTransform +{ + public static ref readonly Guid IID_ID2D1BlendTransform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x32, 0x0B, 0xAC, 0x63, + 0x44, 0xBA, + 0x0F, 0x45, + 0x88, + 0x06, + 0x7F, + 0x4C, + 0xA1, + 0xFF, + 0x2F, + 0x1B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BlendTransform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1BlendTransform*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1BlendTransform*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetCached(Bool32 isCached) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1BlendTransform*)Unsafe.AsPointer(ref this), isCached); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetDescription(BlendDescription* description) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1BlendTransform*)Unsafe.AsPointer(ref this), description); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetDescription(BlendDescription* description) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1BlendTransform*)Unsafe.AsPointer(ref this), description); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BorderTransform.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BorderTransform.cs new file mode 100644 index 0000000..dba6d00 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BorderTransform.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1BorderTransform +[Guid("4998735c-3a19-473c-9781-656847e3a347")] +[NativeTypeName("struct ID2D1BorderTransform : ID2D1ConcreteTransform")] +[NativeInheritance("ID2D1ConcreteTransform")] +public unsafe partial struct ID2D1BorderTransform +{ + public static ref readonly Guid IID_ID2D1BorderTransform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5C, 0x73, 0x98, 0x49, + 0x19, 0x3A, + 0x3C, 0x47, + 0x97, + 0x81, + 0x65, + 0x68, + 0x47, + 0xE3, + 0xA3, + 0x47 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BorderTransform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetCached(Bool32 isCached) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this), isCached); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetExtendModeX(ExtendMode extendMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this), extendMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void SetExtendModeY(ExtendMode extendMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this), extendMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public ExtendMode GetExtendModeX() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ExtendMode GetExtendModeY() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1BorderTransform*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BoundsAdjustmentTransform.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BoundsAdjustmentTransform.cs new file mode 100644 index 0000000..3e4edbb --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1BoundsAdjustmentTransform.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1BoundsAdjustmentTransform +[Guid("90f732e2-5092-4606-a819-8651970baccd")] +[NativeTypeName("struct ID2D1BoundsAdjustmentTransform : ID2D1TransformNode")] +[NativeInheritance("ID2D1TransformNode")] +public unsafe partial struct ID2D1BoundsAdjustmentTransform +{ + public static ref readonly Guid IID_ID2D1BoundsAdjustmentTransform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE2, 0x32, 0xF7, 0x90, + 0x92, 0x50, + 0x06, 0x46, + 0xA8, + 0x19, + 0x86, + 0x51, + 0x97, + 0x0B, + 0xAC, + 0xCD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1BoundsAdjustmentTransform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1BoundsAdjustmentTransform*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetOutputBounds(RawRect* outputBounds) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1BoundsAdjustmentTransform*)Unsafe.AsPointer(ref this), outputBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void GetOutputBounds(RawRect* outputBounds) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1BoundsAdjustmentTransform*)Unsafe.AsPointer(ref this), outputBounds); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Brush.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Brush.cs new file mode 100644 index 0000000..a2c31f6 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Brush.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Brush +[Guid("2cd906a8-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1Brush : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1Brush +{ + public static ref readonly Guid IID_ID2D1Brush + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA8, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Brush)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Brush*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetOpacity(float opacity) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Brush*)Unsafe.AsPointer(ref this), opacity); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Brush*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public float GetOpacity() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Brush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Brush*)Unsafe.AsPointer(ref this), transform); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ColorContext.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ColorContext.cs new file mode 100644 index 0000000..9b9d1e2 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ColorContext.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1ColorContext +[Guid("1c4820bb-5771-4518-a581-2fe4dd0ec657")] +[NativeTypeName("struct ID2D1ColorContext : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1ColorContext +{ + public static ref readonly Guid IID_ID2D1ColorContext + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBB, 0x20, 0x48, 0x1C, + 0x71, 0x57, + 0x18, 0x45, + 0xA5, + 0x81, + 0x2F, + 0xE4, + 0xDD, + 0x0E, + 0xC6, + 0x57 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ColorContext)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ColorContext*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public ColorSpace GetColorSpace() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ColorContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetProfileSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ColorContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetProfile(byte* profile, uint profileSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ColorContext*)Unsafe.AsPointer(ref this), profile, profileSize); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ColorContext1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ColorContext1.cs new file mode 100644 index 0000000..e02c849 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ColorContext1.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1ColorContext1 +[Guid("1ab42875-c57f-4be9-bd85-9cd78d6f55ee")] +[NativeTypeName("struct ID2D1ColorContext1 : ID2D1ColorContext")] +[NativeInheritance("ID2D1ColorContext")] +public unsafe partial struct ID2D1ColorContext1 +{ + public static ref readonly Guid IID_ID2D1ColorContext1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x75, 0x28, 0xB4, 0x1A, + 0x7F, 0xC5, + 0xE9, 0x4B, + 0xBD, + 0x85, + 0x9C, + 0xD7, + 0x8D, + 0x6F, + 0x55, + 0xEE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ColorContext1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public ColorSpace GetColorSpace() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetProfileSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetProfile(byte* profile, uint profileSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this), profile, profileSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public ColorContextType GetColorContextType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public Graphics.Dxgi.Common.ColorSpaceType GetDXGIColorSpace() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSimpleColorProfile(SimpleColorProfile* simpleProfile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1ColorContext1*)Unsafe.AsPointer(ref this), simpleProfile); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandList.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandList.cs new file mode 100644 index 0000000..56cc74b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandList.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1CommandList +[Guid("b4f34a19-2383-4d76-94f6-ec343657c3dc")] +[NativeTypeName("struct ID2D1CommandList : ID2D1Image")] +[NativeInheritance("ID2D1Image")] +public unsafe partial struct ID2D1CommandList +{ + public static ref readonly Guid IID_ID2D1CommandList + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x19, 0x4A, 0xF3, 0xB4, + 0x83, 0x23, + 0x76, 0x4D, + 0x94, + 0xF6, + 0xEC, + 0x34, + 0x36, + 0x57, + 0xC3, + 0xDC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandList)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandList*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Stream(ID2D1CommandSink* sink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandList*)Unsafe.AsPointer(ref this), sink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult Close() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandList*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink.cs new file mode 100644 index 0000000..4e78a58 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink.cs @@ -0,0 +1,283 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1CommandSink +[Guid("54d7898a-a061-40a7-bec7-e465bcba2c4f")] +[NativeTypeName("struct ID2D1CommandSink : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1CommandSink +{ + public static ref readonly Guid IID_ID2D1CommandSink + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8A, 0x89, 0xD7, 0x54, + 0x61, 0xA0, + 0xA7, 0x40, + 0xBE, + 0xC7, + 0xE4, + 0x65, + 0xBC, + 0xBA, + 0x2C, + 0x4F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult BeginDraw() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult EndDraw() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetAntialiasMode(AntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetTags(ulong tag1, ulong tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTransform(Matrix3x2* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult SetUnitMode(UnitMode unitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Clear(Common.ColorF* color) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), color); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult PushLayer(LayerParameters1* layerParameters1, ID2D1Layer* layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this), layerParameters1, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult PopAxisAlignedClip() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult PopLayer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1CommandSink*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink1.cs new file mode 100644 index 0000000..b6f9f47 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink1.cs @@ -0,0 +1,291 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1CommandSink1 +[Guid("9eb767fd-4269-4467-b8c2-eb30cb305743")] +[NativeTypeName("struct ID2D1CommandSink1 : ID2D1CommandSink")] +[NativeInheritance("ID2D1CommandSink")] +public unsafe partial struct ID2D1CommandSink1 +{ + public static ref readonly Guid IID_ID2D1CommandSink1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFD, 0x67, 0xB7, 0x9E, + 0x69, 0x42, + 0x67, 0x44, + 0xB8, + 0xC2, + 0xEB, + 0x30, + 0xCB, + 0x30, + 0x57, + 0x43 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult BeginDraw() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult EndDraw() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetAntialiasMode(AntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetTags(ulong tag1, ulong tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTransform(Matrix3x2* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult SetUnitMode(UnitMode unitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Clear(Common.ColorF* color) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), color); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult PushLayer(LayerParameters1* layerParameters1, ID2D1Layer* layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), layerParameters1, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult PopAxisAlignedClip() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult PopLayer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetPrimitiveBlend1(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1CommandSink1*)Unsafe.AsPointer(ref this), primitiveBlend); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink2.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink2.cs new file mode 100644 index 0000000..6d7fb31 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink2.cs @@ -0,0 +1,315 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1CommandSink2 +[Guid("3bab440e-417e-47df-a2e2-bc0be6a00916")] +[NativeTypeName("struct ID2D1CommandSink2 : ID2D1CommandSink1")] +[NativeInheritance("ID2D1CommandSink1")] +public unsafe partial struct ID2D1CommandSink2 +{ + public static ref readonly Guid IID_ID2D1CommandSink2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0E, 0x44, 0xAB, 0x3B, + 0x7E, 0x41, + 0xDF, 0x47, + 0xA2, + 0xE2, + 0xBC, + 0x0B, + 0xE6, + 0xA0, + 0x09, + 0x16 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult BeginDraw() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult EndDraw() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetAntialiasMode(AntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetTags(ulong tag1, ulong tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTransform(Matrix3x2* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult SetUnitMode(UnitMode unitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Clear(Common.ColorF* color) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), color); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult PushLayer(LayerParameters1* layerParameters1, ID2D1Layer* layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), layerParameters1, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult PopAxisAlignedClip() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult PopLayer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetPrimitiveBlend1(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult DrawGradientMesh(ID2D1GradientMesh* gradientMesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1CommandSink2*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink3.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink3.cs new file mode 100644 index 0000000..8343814 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink3.cs @@ -0,0 +1,323 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1CommandSink3 +[Guid("18079135-4cf3-4868-bc8e-06067e6d242d")] +[NativeTypeName("struct ID2D1CommandSink3 : ID2D1CommandSink2")] +[NativeInheritance("ID2D1CommandSink2")] +public unsafe partial struct ID2D1CommandSink3 +{ + public static ref readonly Guid IID_ID2D1CommandSink3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x35, 0x91, 0x07, 0x18, + 0xF3, 0x4C, + 0x68, 0x48, + 0xBC, + 0x8E, + 0x06, + 0x06, + 0x7E, + 0x6D, + 0x24, + 0x2D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult BeginDraw() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult EndDraw() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetAntialiasMode(AntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetTags(ulong tag1, ulong tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTransform(Matrix3x2* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult SetUnitMode(UnitMode unitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Clear(Common.ColorF* color) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), color); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult PushLayer(LayerParameters1* layerParameters1, ID2D1Layer* layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), layerParameters1, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult PopAxisAlignedClip() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult PopLayer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetPrimitiveBlend1(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult DrawGradientMesh(ID2D1GradientMesh* gradientMesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1CommandSink3*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink4.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink4.cs new file mode 100644 index 0000000..2de14ca --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink4.cs @@ -0,0 +1,331 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1CommandSink4 +[Guid("c78a6519-40d6-4218-b2de-beeeb744bb3e")] +[NativeTypeName("struct ID2D1CommandSink4 : ID2D1CommandSink3")] +[NativeInheritance("ID2D1CommandSink3")] +public unsafe partial struct ID2D1CommandSink4 +{ + public static ref readonly Guid IID_ID2D1CommandSink4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x19, 0x65, 0x8A, 0xC7, + 0xD6, 0x40, + 0x18, 0x42, + 0xB2, + 0xDE, + 0xBE, + 0xEE, + 0xB7, + 0x44, + 0xBB, + 0x3E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult BeginDraw() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult EndDraw() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetAntialiasMode(AntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetTags(ulong tag1, ulong tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTransform(Matrix3x2* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult SetUnitMode(UnitMode unitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Clear(Common.ColorF* color) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), color); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult PushLayer(LayerParameters1* layerParameters1, ID2D1Layer* layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), layerParameters1, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult PopAxisAlignedClip() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult PopLayer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetPrimitiveBlend1(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult DrawGradientMesh(ID2D1GradientMesh* gradientMesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult SetPrimitiveBlend2(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1CommandSink4*)Unsafe.AsPointer(ref this), primitiveBlend); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink5.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink5.cs new file mode 100644 index 0000000..3a9b9d7 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1CommandSink5.cs @@ -0,0 +1,339 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1CommandSink5 +[Guid("7047dd26-b1e7-44a7-959a-8349e2144fa8")] +[NativeTypeName("struct ID2D1CommandSink5 : ID2D1CommandSink4")] +[NativeInheritance("ID2D1CommandSink4")] +public unsafe partial struct ID2D1CommandSink5 +{ + public static ref readonly Guid IID_ID2D1CommandSink5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x26, 0xDD, 0x47, 0x70, + 0xE7, 0xB1, + 0xA7, 0x44, + 0x95, + 0x9A, + 0x83, + 0x49, + 0xE2, + 0x14, + 0x4F, + 0xA8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1CommandSink5)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult BeginDraw() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult EndDraw() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetAntialiasMode(AntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetTags(ulong tag1, ulong tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTransform(Matrix3x2* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult SetUnitMode(UnitMode unitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Clear(Common.ColorF* color) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), color); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult PushLayer(LayerParameters1* layerParameters1, ID2D1Layer* layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), layerParameters1, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult PopAxisAlignedClip() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult PopLayer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetPrimitiveBlend1(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult DrawGradientMesh(ID2D1GradientMesh* gradientMesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult SetPrimitiveBlend2(PrimitiveBlend primitiveBlend) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult BlendImage(ID2D1Image* image, Common.BlendMode blendMode, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1CommandSink5*)Unsafe.AsPointer(ref this), image, blendMode, targetOffset, imageRectangle, interpolationMode); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ComputeInfo.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ComputeInfo.cs new file mode 100644 index 0000000..452d2f3 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ComputeInfo.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1ComputeInfo +[Guid("5598b14b-9fd7-48b7-9bdb-8f0964eb38bc")] +[NativeTypeName("struct ID2D1ComputeInfo : ID2D1RenderInfo")] +[NativeInheritance("ID2D1RenderInfo")] +public unsafe partial struct ID2D1ComputeInfo +{ + public static ref readonly Guid IID_ID2D1ComputeInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4B, 0xB1, 0x98, 0x55, + 0xD7, 0x9F, + 0xB7, 0x48, + 0x9B, + 0xDB, + 0x8F, + 0x09, + 0x64, + 0xEB, + 0x38, + 0xBC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ComputeInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetInputDescription(uint inputIndex, InputDescription* inputDescription) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), inputIndex, inputDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetCached(Bool32 isCached) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), isCached); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetInstructionCountHint(uint instructionCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), instructionCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetComputeShaderConstantBuffer(byte* buffer, uint bufferCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), buffer, bufferCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetComputeShader(Guid* shaderId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), shaderId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetResourceTexture(uint textureIndex, ID2D1ResourceTexture* resourceTexture) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), textureIndex, resourceTexture); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ComputeTransform.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ComputeTransform.cs new file mode 100644 index 0000000..94b029c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ComputeTransform.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1ComputeTransform +[Guid("0d85573c-01e3-4f7d-bfd9-0d60608bf3c3")] +[NativeTypeName("struct ID2D1ComputeTransform : ID2D1Transform")] +[NativeInheritance("ID2D1Transform")] +public unsafe partial struct ID2D1ComputeTransform +{ + public static ref readonly Guid IID_ID2D1ComputeTransform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3C, 0x57, 0x85, 0x0D, + 0xE3, 0x01, + 0x7D, 0x4F, + 0xBF, + 0xD9, + 0x0D, + 0x60, + 0x60, + 0x8B, + 0xF3, + 0xC3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ComputeTransform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ComputeTransform*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult MapOutputRectToInputRects(RawRect* outputRect, RawRect* inputRects, uint inputRectsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ComputeTransform*)Unsafe.AsPointer(ref this), outputRect, inputRects, inputRectsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult MapInputRectsToOutputRect(RawRect* inputRects, RawRect* inputOpaqueSubRects, uint inputRectCount, RawRect* outputRect, RawRect* outputOpaqueSubRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ComputeTransform*)Unsafe.AsPointer(ref this), inputRects, inputOpaqueSubRects, inputRectCount, outputRect, outputOpaqueSubRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult MapInvalidRect(uint inputIndex, RawRect* invalidInputRect, RawRect* invalidOutputRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ComputeTransform*)Unsafe.AsPointer(ref this), inputIndex, invalidInputRect, invalidOutputRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetComputeInfo(ID2D1ComputeInfo* computeInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1ComputeTransform*)Unsafe.AsPointer(ref this), computeInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CalculateThreadgroups(RawRect* outputRect, uint* dimensionX, uint* dimensionY, uint* dimensionZ) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1ComputeTransform*)Unsafe.AsPointer(ref this), outputRect, dimensionX, dimensionY, dimensionZ); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ConcreteTransform.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ConcreteTransform.cs new file mode 100644 index 0000000..ed5aed0 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ConcreteTransform.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1ConcreteTransform +[Guid("1a799d8a-69f7-4e4c-9fed-437ccc6684cc")] +[NativeTypeName("struct ID2D1ConcreteTransform : ID2D1TransformNode")] +[NativeInheritance("ID2D1TransformNode")] +public unsafe partial struct ID2D1ConcreteTransform +{ + public static ref readonly Guid IID_ID2D1ConcreteTransform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8A, 0x9D, 0x79, 0x1A, + 0xF7, 0x69, + 0x4C, 0x4E, + 0x9F, + 0xED, + 0x43, + 0x7C, + 0xCC, + 0x66, + 0x84, + 0xCC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ConcreteTransform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ConcreteTransform*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ConcreteTransform*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetCached(Bool32 isCached) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ConcreteTransform*)Unsafe.AsPointer(ref this), isCached); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DCRenderTarget.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DCRenderTarget.cs new file mode 100644 index 0000000..8ee4bf3 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DCRenderTarget.cs @@ -0,0 +1,524 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DCRenderTarget +[Guid("1c51bc64-de61-46fd-9899-63a5d8f03950")] +[NativeTypeName("struct ID2D1DCRenderTarget : ID2D1RenderTarget")] +[NativeInheritance("ID2D1RenderTarget")] +public unsafe partial struct ID2D1DCRenderTarget +{ + public static ref readonly Guid IID_ID2D1DCRenderTarget + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0xBC, 0x51, 0x1C, + 0x61, 0xDE, + 0xFD, 0x46, + 0x98, + 0x99, + 0x63, + 0xA5, + 0xD8, + 0xF0, + 0x39, + 0x50 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DCRenderTarget)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), size, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMesh(ID2D1Mesh** mesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), mesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetAntialiasMode(AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public AntialiasMode GetAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetTags(ulong tag1, ulong tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void GetTags(ulong* tag1, ulong* tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void PopLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult Flush(ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void PopAxisAlignedClip() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void Clear(Common.ColorF* clearColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), clearColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void BeginDraw() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void SetDpi(float dpiX, float dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public uint GetMaximumBitmapSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), renderTargetProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult BindDC(IntPtr hDC, RawRect* pSubRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), hDC, pSubRect); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device.cs new file mode 100644 index 0000000..f0f0260 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Device +[Guid("47dd575d-ac05-4cdd-8049-9b02cd16f44c")] +[NativeTypeName("struct ID2D1Device : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1Device +{ + public static ref readonly Guid IID_ID2D1Device + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5D, 0x57, 0xDD, 0x47, + 0x05, 0xAC, + 0xDD, 0x4C, + 0x80, + 0x49, + 0x9B, + 0x02, + 0xCD, + 0x16, + 0xF4, + 0x4C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device*)Unsafe.AsPointer(ref this), options, deviceContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetMaximumTextureMemory(ulong maximumInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device*)Unsafe.AsPointer(ref this), maximumInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ulong GetMaximumTextureMemory() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void ClearResources(uint millisecondsSinceUse) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device*)Unsafe.AsPointer(ref this), millisecondsSinceUse); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device1.cs new file mode 100644 index 0000000..1d4b311 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device1.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Device1 +[Guid("d21768e1-23a4-4823-a14b-7c3eba85d658")] +[NativeTypeName("struct ID2D1Device1 : ID2D1Device")] +[NativeInheritance("ID2D1Device")] +public unsafe partial struct ID2D1Device1 +{ + public static ref readonly Guid IID_ID2D1Device1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE1, 0x68, 0x17, 0xD2, + 0xA4, 0x23, + 0x23, 0x48, + 0xA1, + 0x4B, + 0x7C, + 0x3E, + 0xBA, + 0x85, + 0xD6, + 0x58 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device1*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device1*)Unsafe.AsPointer(ref this), options, deviceContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetMaximumTextureMemory(ulong maximumInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device1*)Unsafe.AsPointer(ref this), maximumInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ulong GetMaximumTextureMemory() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void ClearResources(uint millisecondsSinceUse) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device1*)Unsafe.AsPointer(ref this), millisecondsSinceUse); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public RenderingPriority GetRenderingPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Device1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetRenderingPriority(RenderingPriority renderingPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Device1*)Unsafe.AsPointer(ref this), renderingPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Device1*)Unsafe.AsPointer(ref this), options, deviceContext1); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device2.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device2.cs new file mode 100644 index 0000000..5081d6e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device2.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Device2 +[Guid("a44472e1-8dfb-4e60-8492-6e2861c9ca8b")] +[NativeTypeName("struct ID2D1Device2 : ID2D1Device1")] +[NativeInheritance("ID2D1Device1")] +public unsafe partial struct ID2D1Device2 +{ + public static ref readonly Guid IID_ID2D1Device2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE1, 0x72, 0x44, 0xA4, + 0xFB, 0x8D, + 0x60, 0x4E, + 0x84, + 0x92, + 0x6E, + 0x28, + 0x61, + 0xC9, + 0xCA, + 0x8B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device2*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device2*)Unsafe.AsPointer(ref this), options, deviceContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetMaximumTextureMemory(ulong maximumInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device2*)Unsafe.AsPointer(ref this), maximumInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ulong GetMaximumTextureMemory() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void ClearResources(uint millisecondsSinceUse) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device2*)Unsafe.AsPointer(ref this), millisecondsSinceUse); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public RenderingPriority GetRenderingPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Device2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetRenderingPriority(RenderingPriority renderingPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Device2*)Unsafe.AsPointer(ref this), renderingPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Device2*)Unsafe.AsPointer(ref this), options, deviceContext1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext2** deviceContext2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Device2*)Unsafe.AsPointer(ref this), options, deviceContext2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void FlushDeviceContexts(ID2D1Bitmap* bitmap) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Device2*)Unsafe.AsPointer(ref this), bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetDxgiDevice(Graphics.Dxgi.IDXGIDevice** dxgiDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Device2*)Unsafe.AsPointer(ref this), dxgiDevice); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device3.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device3.cs new file mode 100644 index 0000000..93ce1f1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device3.cs @@ -0,0 +1,179 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Device3 +[Guid("852f2087-802c-4037-ab60-ff2e7ee6fc01")] +[NativeTypeName("struct ID2D1Device3 : ID2D1Device2")] +[NativeInheritance("ID2D1Device2")] +public unsafe partial struct ID2D1Device3 +{ + public static ref readonly Guid IID_ID2D1Device3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x87, 0x20, 0x2F, 0x85, + 0x2C, 0x80, + 0x37, 0x40, + 0xAB, + 0x60, + 0xFF, + 0x2E, + 0x7E, + 0xE6, + 0xFC, + 0x01 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device3*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device3*)Unsafe.AsPointer(ref this), options, deviceContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetMaximumTextureMemory(ulong maximumInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device3*)Unsafe.AsPointer(ref this), maximumInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ulong GetMaximumTextureMemory() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void ClearResources(uint millisecondsSinceUse) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device3*)Unsafe.AsPointer(ref this), millisecondsSinceUse); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public RenderingPriority GetRenderingPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Device3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetRenderingPriority(RenderingPriority renderingPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Device3*)Unsafe.AsPointer(ref this), renderingPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Device3*)Unsafe.AsPointer(ref this), options, deviceContext1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext2** deviceContext2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Device3*)Unsafe.AsPointer(ref this), options, deviceContext2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void FlushDeviceContexts(ID2D1Bitmap* bitmap) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Device3*)Unsafe.AsPointer(ref this), bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetDxgiDevice(Graphics.Dxgi.IDXGIDevice** dxgiDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Device3*)Unsafe.AsPointer(ref this), dxgiDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext3** deviceContext3) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Device3*)Unsafe.AsPointer(ref this), options, deviceContext3); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device4.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device4.cs new file mode 100644 index 0000000..a6ea7d3 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device4.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Device4 +[Guid("d7bdb159-5683-4a46-bc9c-72dc720b858b")] +[NativeTypeName("struct ID2D1Device4 : ID2D1Device3")] +[NativeInheritance("ID2D1Device3")] +public unsafe partial struct ID2D1Device4 +{ + public static ref readonly Guid IID_ID2D1Device4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0xB1, 0xBD, 0xD7, + 0x83, 0x56, + 0x46, 0x4A, + 0xBC, + 0x9C, + 0x72, + 0xDC, + 0x72, + 0x0B, + 0x85, + 0x8B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device4*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device4*)Unsafe.AsPointer(ref this), options, deviceContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetMaximumTextureMemory(ulong maximumInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device4*)Unsafe.AsPointer(ref this), maximumInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ulong GetMaximumTextureMemory() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void ClearResources(uint millisecondsSinceUse) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device4*)Unsafe.AsPointer(ref this), millisecondsSinceUse); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public RenderingPriority GetRenderingPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Device4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetRenderingPriority(RenderingPriority renderingPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Device4*)Unsafe.AsPointer(ref this), renderingPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Device4*)Unsafe.AsPointer(ref this), options, deviceContext1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext2** deviceContext2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Device4*)Unsafe.AsPointer(ref this), options, deviceContext2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void FlushDeviceContexts(ID2D1Bitmap* bitmap) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Device4*)Unsafe.AsPointer(ref this), bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetDxgiDevice(Graphics.Dxgi.IDXGIDevice** dxgiDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Device4*)Unsafe.AsPointer(ref this), dxgiDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext3** deviceContext3) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Device4*)Unsafe.AsPointer(ref this), options, deviceContext3); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext4** deviceContext4) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Device4*)Unsafe.AsPointer(ref this), options, deviceContext4); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void SetMaximumColorGlyphCacheMemory(ulong maximumInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Device4*)Unsafe.AsPointer(ref this), maximumInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public ulong GetMaximumColorGlyphCacheMemory() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Device4*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device5.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device5.cs new file mode 100644 index 0000000..7fcdbd8 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device5.cs @@ -0,0 +1,211 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Device5 +[Guid("d55ba0a4-6405-4694-aef5-08ee1a4358b4")] +[NativeTypeName("struct ID2D1Device5 : ID2D1Device4")] +[NativeInheritance("ID2D1Device4")] +public unsafe partial struct ID2D1Device5 +{ + public static ref readonly Guid IID_ID2D1Device5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA4, 0xA0, 0x5B, 0xD5, + 0x05, 0x64, + 0x94, 0x46, + 0xAE, + 0xF5, + 0x08, + 0xEE, + 0x1A, + 0x43, + 0x58, + 0xB4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device5)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device5*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device5*)Unsafe.AsPointer(ref this), options, deviceContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetMaximumTextureMemory(ulong maximumInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device5*)Unsafe.AsPointer(ref this), maximumInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ulong GetMaximumTextureMemory() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void ClearResources(uint millisecondsSinceUse) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device5*)Unsafe.AsPointer(ref this), millisecondsSinceUse); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public RenderingPriority GetRenderingPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Device5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetRenderingPriority(RenderingPriority renderingPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Device5*)Unsafe.AsPointer(ref this), renderingPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Device5*)Unsafe.AsPointer(ref this), options, deviceContext1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext2** deviceContext2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Device5*)Unsafe.AsPointer(ref this), options, deviceContext2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void FlushDeviceContexts(ID2D1Bitmap* bitmap) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Device5*)Unsafe.AsPointer(ref this), bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetDxgiDevice(Graphics.Dxgi.IDXGIDevice** dxgiDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Device5*)Unsafe.AsPointer(ref this), dxgiDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext3** deviceContext3) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Device5*)Unsafe.AsPointer(ref this), options, deviceContext3); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext4** deviceContext4) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Device5*)Unsafe.AsPointer(ref this), options, deviceContext4); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void SetMaximumColorGlyphCacheMemory(ulong maximumInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Device5*)Unsafe.AsPointer(ref this), maximumInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public ulong GetMaximumColorGlyphCacheMemory() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Device5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext5** deviceContext5) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Device5*)Unsafe.AsPointer(ref this), options, deviceContext5); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device6.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device6.cs new file mode 100644 index 0000000..edfb03a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Device6.cs @@ -0,0 +1,219 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Device6 +[Guid("7bfef914-2d75-4bad-be87-e18ddb077b6d")] +[NativeTypeName("struct ID2D1Device6 : ID2D1Device5")] +[NativeInheritance("ID2D1Device5")] +public unsafe partial struct ID2D1Device6 +{ + public static ref readonly Guid IID_ID2D1Device6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x14, 0xF9, 0xFE, 0x7B, + 0x75, 0x2D, + 0xAD, 0x4B, + 0xBE, + 0x87, + 0xE1, + 0x8D, + 0xDB, + 0x07, + 0x7B, + 0x6D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device6)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Device6*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetMaximumTextureMemory(ulong maximumInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Device6*)Unsafe.AsPointer(ref this), maximumInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ulong GetMaximumTextureMemory() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Device6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void ClearResources(uint millisecondsSinceUse) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Device6*)Unsafe.AsPointer(ref this), millisecondsSinceUse); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public RenderingPriority GetRenderingPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Device6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetRenderingPriority(RenderingPriority renderingPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Device6*)Unsafe.AsPointer(ref this), renderingPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext2** deviceContext2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void FlushDeviceContexts(ID2D1Bitmap* bitmap) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Device6*)Unsafe.AsPointer(ref this), bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetDxgiDevice(Graphics.Dxgi.IDXGIDevice** dxgiDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Device6*)Unsafe.AsPointer(ref this), dxgiDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext3** deviceContext3) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext3); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext4** deviceContext4) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext4); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void SetMaximumColorGlyphCacheMemory(ulong maximumInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Device6*)Unsafe.AsPointer(ref this), maximumInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public ulong GetMaximumColorGlyphCacheMemory() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Device6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext5** deviceContext5) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext5); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext6** deviceContext6) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Device6*)Unsafe.AsPointer(ref this), options, deviceContext6); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext.cs new file mode 100644 index 0000000..dd06831 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext.cs @@ -0,0 +1,796 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DeviceContext +[Guid("e8f7fe7a-191c-466d-ad95-975678bda998")] +[NativeTypeName("struct ID2D1DeviceContext : ID2D1RenderTarget")] +[NativeInheritance("ID2D1RenderTarget")] +public unsafe partial struct ID2D1DeviceContext +{ + public static ref readonly Guid IID_ID2D1DeviceContext + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7A, 0xFE, 0xF7, 0xE8, + 0x1C, 0x19, + 0x6D, 0x46, + 0xAD, + 0x95, + 0x97, + 0x56, + 0x78, + 0xBD, + 0xA9, + 0x98 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), size, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMesh(ID2D1Mesh** mesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), mesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), roundedRect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), ellipse, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetAntialiasMode(AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public AntialiasMode GetAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetTags(ulong tag1, ulong tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void GetTags(ulong* tag1, ulong* tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void PopLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult Flush(ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void PopAxisAlignedClip() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void Clear(Common.ColorF* clearColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), clearColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void BeginDraw() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void SetDpi(float dpiX, float dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public uint GetMaximumBitmapSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), renderTargetProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), filename, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), effectId, effect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CreateCommandList(ID2D1CommandList** commandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), commandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), bufferPrecision); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), image, localBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), image, worldBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void GetDevice(ID2D1Device** device) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), device); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void SetTarget(ID2D1Image* image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void GetTarget(ID2D1Image** image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void SetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void GetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public PrimitiveBlend GetPrimitiveBlend() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void SetUnitMode(UnitMode unitMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public UnitMode GetUnitMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), effect, rectangleCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext1.cs new file mode 100644 index 0000000..f37a682 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext1.cs @@ -0,0 +1,820 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DeviceContext1 +[Guid("d37f57e4-6908-459f-a199-e72f24f79987")] +[NativeTypeName("struct ID2D1DeviceContext1 : ID2D1DeviceContext")] +[NativeInheritance("ID2D1DeviceContext")] +public unsafe partial struct ID2D1DeviceContext1 +{ + public static ref readonly Guid IID_ID2D1DeviceContext1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE4, 0x57, 0x7F, 0xD3, + 0x08, 0x69, + 0x9F, 0x45, + 0xA1, + 0x99, + 0xE7, + 0x2F, + 0x24, + 0xF7, + 0x99, + 0x87 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), size, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMesh(ID2D1Mesh** mesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), mesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), roundedRect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), ellipse, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetAntialiasMode(AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public AntialiasMode GetAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetTags(ulong tag1, ulong tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void GetTags(ulong* tag1, ulong* tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void PopLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult Flush(ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void PopAxisAlignedClip() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void Clear(Common.ColorF* clearColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), clearColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void BeginDraw() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void SetDpi(float dpiX, float dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public uint GetMaximumBitmapSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), renderTargetProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), filename, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), effectId, effect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CreateCommandList(ID2D1CommandList** commandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), commandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), bufferPrecision); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), image, localBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), image, worldBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void GetDevice(ID2D1Device** device) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), device); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void SetTarget(ID2D1Image* image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void GetTarget(ID2D1Image** image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void SetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void GetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public PrimitiveBlend GetPrimitiveBlend() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void SetUnitMode(UnitMode unitMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public UnitMode GetUnitMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), effect, rectangleCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(92)] + public HResult CreateFilledGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, ID2D1GeometryRealization** geometryRealization) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(93)] + public HResult CreateStrokedGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle* strokeStyle, ID2D1GeometryRealization** geometryRealization) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(94)] + public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), geometryRealization, brush); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext2.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext2.cs new file mode 100644 index 0000000..2eb426c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext2.cs @@ -0,0 +1,908 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DeviceContext2 +[Guid("394ea6a3-0c34-4321-950b-6ca20f0be6c7")] +[NativeTypeName("struct ID2D1DeviceContext2 : ID2D1DeviceContext1")] +[NativeInheritance("ID2D1DeviceContext1")] +public unsafe partial struct ID2D1DeviceContext2 +{ + public static ref readonly Guid IID_ID2D1DeviceContext2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA3, 0xA6, 0x4E, 0x39, + 0x34, 0x0C, + 0x21, 0x43, + 0x95, + 0x0B, + 0x6C, + 0xA2, + 0x0F, + 0x0B, + 0xE6, + 0xC7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), size, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMesh(ID2D1Mesh** mesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), mesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), roundedRect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), ellipse, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetAntialiasMode(AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public AntialiasMode GetAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetTags(ulong tag1, ulong tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void GetTags(ulong* tag1, ulong* tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void PopLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult Flush(ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void PopAxisAlignedClip() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void Clear(Common.ColorF* clearColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), clearColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void BeginDraw() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void SetDpi(float dpiX, float dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public uint GetMaximumBitmapSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), renderTargetProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), filename, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), effectId, effect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CreateCommandList(ID2D1CommandList** commandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), commandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), bufferPrecision); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), image, localBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), image, worldBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void GetDevice(ID2D1Device** device) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), device); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void SetTarget(ID2D1Image* image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void GetTarget(ID2D1Image** image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void SetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void GetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public PrimitiveBlend GetPrimitiveBlend() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void SetUnitMode(UnitMode unitMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public UnitMode GetUnitMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), effect, rectangleCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(92)] + public HResult CreateFilledGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, ID2D1GeometryRealization** geometryRealization) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(93)] + public HResult CreateStrokedGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle* strokeStyle, ID2D1GeometryRealization** geometryRealization) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(94)] + public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), geometryRealization, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(95)] + public HResult CreateInk(InkPoint* startPoint, ID2D1Ink** ink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), startPoint, ink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(96)] + public HResult CreateInkStyle(InkStyleProperties* inkStyleProperties, ID2D1InkStyle** inkStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), inkStyleProperties, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(97)] + public HResult CreateGradientMesh(GradientMeshPatch* patches, uint patchesCount, ID2D1GradientMesh** gradientMesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), patches, patchesCount, gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(98)] + public HResult CreateImageSourceFromWic(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, ImageSourceLoadingOptions loadingOptions, Common.AlphaMode alphaMode, ID2D1ImageSourceFromWic** imageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), wicBitmapSource, loadingOptions, alphaMode, imageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(99)] + public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(100)] + public HResult CreateImageSourceFromDxgi(Graphics.Dxgi.IDXGISurface** surfaces, uint surfaceCount, Graphics.Dxgi.Common.ColorSpaceType colorSpace, ImageSourceFromDxgiOptions options, ID2D1ImageSource** imageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), surfaces, surfaceCount, colorSpace, options, imageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(101)] + public HResult GetGradientMeshWorldBounds(ID2D1GradientMesh* gradientMesh, Common.RectF* pBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), gradientMesh, pBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(102)] + public void DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(103)] + public void DrawGradientMesh(ID2D1GradientMesh* gradientMesh) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(104)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(105)] + public HResult CreateTransformedImageSource(ID2D1ImageSource* imageSource, TransformedImageSourceProperties* properties, ID2D1TransformedImageSource** transformedImageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), imageSource, properties, transformedImageSource); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext3.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext3.cs new file mode 100644 index 0000000..1f50505 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext3.cs @@ -0,0 +1,924 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DeviceContext3 +[Guid("235a7496-8351-414c-bcd4-6672ab2d8e00")] +[NativeTypeName("struct ID2D1DeviceContext3 : ID2D1DeviceContext2")] +[NativeInheritance("ID2D1DeviceContext2")] +public unsafe partial struct ID2D1DeviceContext3 +{ + public static ref readonly Guid IID_ID2D1DeviceContext3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x96, 0x74, 0x5A, 0x23, + 0x51, 0x83, + 0x4C, 0x41, + 0xBC, + 0xD4, + 0x66, + 0x72, + 0xAB, + 0x2D, + 0x8E, + 0x00 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), size, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMesh(ID2D1Mesh** mesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), mesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), roundedRect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), ellipse, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetAntialiasMode(AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public AntialiasMode GetAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetTags(ulong tag1, ulong tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void GetTags(ulong* tag1, ulong* tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void PopLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult Flush(ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void PopAxisAlignedClip() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void Clear(Common.ColorF* clearColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), clearColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void BeginDraw() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void SetDpi(float dpiX, float dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public uint GetMaximumBitmapSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), renderTargetProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), filename, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), effectId, effect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CreateCommandList(ID2D1CommandList** commandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), commandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), bufferPrecision); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), image, localBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), image, worldBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void GetDevice(ID2D1Device** device) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), device); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void SetTarget(ID2D1Image* image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void GetTarget(ID2D1Image** image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void SetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void GetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public PrimitiveBlend GetPrimitiveBlend() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void SetUnitMode(UnitMode unitMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public UnitMode GetUnitMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), effect, rectangleCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(92)] + public HResult CreateFilledGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, ID2D1GeometryRealization** geometryRealization) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(93)] + public HResult CreateStrokedGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle* strokeStyle, ID2D1GeometryRealization** geometryRealization) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(94)] + public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), geometryRealization, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(95)] + public HResult CreateInk(InkPoint* startPoint, ID2D1Ink** ink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), startPoint, ink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(96)] + public HResult CreateInkStyle(InkStyleProperties* inkStyleProperties, ID2D1InkStyle** inkStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), inkStyleProperties, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(97)] + public HResult CreateGradientMesh(GradientMeshPatch* patches, uint patchesCount, ID2D1GradientMesh** gradientMesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), patches, patchesCount, gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(98)] + public HResult CreateImageSourceFromWic(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, ImageSourceLoadingOptions loadingOptions, Common.AlphaMode alphaMode, ID2D1ImageSourceFromWic** imageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), wicBitmapSource, loadingOptions, alphaMode, imageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(99)] + public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(100)] + public HResult CreateImageSourceFromDxgi(Graphics.Dxgi.IDXGISurface** surfaces, uint surfaceCount, Graphics.Dxgi.Common.ColorSpaceType colorSpace, ImageSourceFromDxgiOptions options, ID2D1ImageSource** imageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), surfaces, surfaceCount, colorSpace, options, imageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(101)] + public HResult GetGradientMeshWorldBounds(ID2D1GradientMesh* gradientMesh, Common.RectF* pBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), gradientMesh, pBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(102)] + public void DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(103)] + public void DrawGradientMesh(ID2D1GradientMesh* gradientMesh) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(104)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(105)] + public HResult CreateTransformedImageSource(ID2D1ImageSource* imageSource, TransformedImageSourceProperties* properties, ID2D1TransformedImageSource** transformedImageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), imageSource, properties, transformedImageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(106)] + public HResult CreateSpriteBatch(ID2D1SpriteBatch** spriteBatch) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), spriteBatch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(107)] + public void DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext4.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext4.cs new file mode 100644 index 0000000..bcf91ca --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext4.cs @@ -0,0 +1,980 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DeviceContext4 +[Guid("8c427831-3d90-4476-b647-c4fae349e4db")] +[NativeTypeName("struct ID2D1DeviceContext4 : ID2D1DeviceContext3")] +[NativeInheritance("ID2D1DeviceContext3")] +public unsafe partial struct ID2D1DeviceContext4 +{ + public static ref readonly Guid IID_ID2D1DeviceContext4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x31, 0x78, 0x42, 0x8C, + 0x90, 0x3D, + 0x76, 0x44, + 0xB6, + 0x47, + 0xC4, + 0xFA, + 0xE3, + 0x49, + 0xE4, + 0xDB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), size, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMesh(ID2D1Mesh** mesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), mesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), roundedRect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), ellipse, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetAntialiasMode(AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public AntialiasMode GetAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetTags(ulong tag1, ulong tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void GetTags(ulong* tag1, ulong* tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void PopLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult Flush(ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void PopAxisAlignedClip() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void Clear(Common.ColorF* clearColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), clearColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void BeginDraw() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void SetDpi(float dpiX, float dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public uint GetMaximumBitmapSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), renderTargetProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), filename, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), effectId, effect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CreateCommandList(ID2D1CommandList** commandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), commandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), bufferPrecision); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), image, localBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), image, worldBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void GetDevice(ID2D1Device** device) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), device); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void SetTarget(ID2D1Image* image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void GetTarget(ID2D1Image** image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void SetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void GetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public PrimitiveBlend GetPrimitiveBlend() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void SetUnitMode(UnitMode unitMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public UnitMode GetUnitMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), effect, rectangleCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(92)] + public HResult CreateFilledGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, ID2D1GeometryRealization** geometryRealization) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(93)] + public HResult CreateStrokedGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle* strokeStyle, ID2D1GeometryRealization** geometryRealization) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(94)] + public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), geometryRealization, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(95)] + public HResult CreateInk(InkPoint* startPoint, ID2D1Ink** ink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), startPoint, ink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(96)] + public HResult CreateInkStyle(InkStyleProperties* inkStyleProperties, ID2D1InkStyle** inkStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), inkStyleProperties, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(97)] + public HResult CreateGradientMesh(GradientMeshPatch* patches, uint patchesCount, ID2D1GradientMesh** gradientMesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), patches, patchesCount, gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(98)] + public HResult CreateImageSourceFromWic(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, ImageSourceLoadingOptions loadingOptions, Common.AlphaMode alphaMode, ID2D1ImageSourceFromWic** imageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), wicBitmapSource, loadingOptions, alphaMode, imageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(99)] + public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(100)] + public HResult CreateImageSourceFromDxgi(Graphics.Dxgi.IDXGISurface** surfaces, uint surfaceCount, Graphics.Dxgi.Common.ColorSpaceType colorSpace, ImageSourceFromDxgiOptions options, ID2D1ImageSource** imageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), surfaces, surfaceCount, colorSpace, options, imageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(101)] + public HResult GetGradientMeshWorldBounds(ID2D1GradientMesh* gradientMesh, Common.RectF* pBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), gradientMesh, pBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(102)] + public void DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(103)] + public void DrawGradientMesh(ID2D1GradientMesh* gradientMesh) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(104)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(105)] + public HResult CreateTransformedImageSource(ID2D1ImageSource* imageSource, TransformedImageSourceProperties* properties, ID2D1TransformedImageSource** transformedImageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), imageSource, properties, transformedImageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(106)] + public HResult CreateSpriteBatch(ID2D1SpriteBatch** spriteBatch) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), spriteBatch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(107)] + public void DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(108)] + public HResult CreateSvgGlyphStyle(ID2D1SvgGlyphStyle** svgGlyphStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), svgGlyphStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(109)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(110)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(111)] + public void DrawColorBitmapGlyphRun(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, ColorBitmapGlyphSnapOption bitmapSnapOption) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), glyphImageFormat, baselineOrigin, glyphRun, measuringMode, bitmapSnapOption); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(112)] + public void DrawSvgGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(113)] + public HResult GetColorBitmapGlyphImage(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, System.Drawing.PointF* glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, float dpiX, float dpiY, Matrix3x2** glyphTransform, ID2D1Image** glyphImage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), glyphImageFormat, glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, dpiX, dpiY, glyphTransform, glyphImage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(114)] + public HResult GetSvgGlyphImage(System.Drawing.PointF* glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Matrix3x2** glyphTransform, ID2D1CommandList** glyphImage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, glyphTransform, glyphImage); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext5.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext5.cs new file mode 100644 index 0000000..7618582 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext5.cs @@ -0,0 +1,1012 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DeviceContext5 +[Guid("7836d248-68cc-4df6-b9e8-de991bf62eb7")] +[NativeTypeName("struct ID2D1DeviceContext5 : ID2D1DeviceContext4")] +[NativeInheritance("ID2D1DeviceContext4")] +public unsafe partial struct ID2D1DeviceContext5 +{ + public static ref readonly Guid IID_ID2D1DeviceContext5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x48, 0xD2, 0x36, 0x78, + 0xCC, 0x68, + 0xF6, 0x4D, + 0xB9, + 0xE8, + 0xDE, + 0x99, + 0x1B, + 0xF6, + 0x2E, + 0xB7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext5)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), size, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMesh(ID2D1Mesh** mesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), mesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), roundedRect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), ellipse, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetAntialiasMode(AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public AntialiasMode GetAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetTags(ulong tag1, ulong tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void GetTags(ulong* tag1, ulong* tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void PopLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult Flush(ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void PopAxisAlignedClip() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void Clear(Common.ColorF* clearColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), clearColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void BeginDraw() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void SetDpi(float dpiX, float dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public uint GetMaximumBitmapSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), renderTargetProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), filename, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), effectId, effect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CreateCommandList(ID2D1CommandList** commandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), commandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), bufferPrecision); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), image, localBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), image, worldBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void GetDevice(ID2D1Device** device) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), device); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void SetTarget(ID2D1Image* image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void GetTarget(ID2D1Image** image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void SetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void GetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public PrimitiveBlend GetPrimitiveBlend() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void SetUnitMode(UnitMode unitMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public UnitMode GetUnitMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), effect, rectangleCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(92)] + public HResult CreateFilledGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, ID2D1GeometryRealization** geometryRealization) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(93)] + public HResult CreateStrokedGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle* strokeStyle, ID2D1GeometryRealization** geometryRealization) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(94)] + public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), geometryRealization, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(95)] + public HResult CreateInk(InkPoint* startPoint, ID2D1Ink** ink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), startPoint, ink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(96)] + public HResult CreateInkStyle(InkStyleProperties* inkStyleProperties, ID2D1InkStyle** inkStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), inkStyleProperties, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(97)] + public HResult CreateGradientMesh(GradientMeshPatch* patches, uint patchesCount, ID2D1GradientMesh** gradientMesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), patches, patchesCount, gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(98)] + public HResult CreateImageSourceFromWic(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, ImageSourceLoadingOptions loadingOptions, Common.AlphaMode alphaMode, ID2D1ImageSourceFromWic** imageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), wicBitmapSource, loadingOptions, alphaMode, imageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(99)] + public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(100)] + public HResult CreateImageSourceFromDxgi(Graphics.Dxgi.IDXGISurface** surfaces, uint surfaceCount, Graphics.Dxgi.Common.ColorSpaceType colorSpace, ImageSourceFromDxgiOptions options, ID2D1ImageSource** imageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), surfaces, surfaceCount, colorSpace, options, imageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(101)] + public HResult GetGradientMeshWorldBounds(ID2D1GradientMesh* gradientMesh, Common.RectF* pBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), gradientMesh, pBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(102)] + public void DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(103)] + public void DrawGradientMesh(ID2D1GradientMesh* gradientMesh) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(104)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(105)] + public HResult CreateTransformedImageSource(ID2D1ImageSource* imageSource, TransformedImageSourceProperties* properties, ID2D1TransformedImageSource** transformedImageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), imageSource, properties, transformedImageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(106)] + public HResult CreateSpriteBatch(ID2D1SpriteBatch** spriteBatch) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), spriteBatch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(107)] + public void DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(108)] + public HResult CreateSvgGlyphStyle(ID2D1SvgGlyphStyle** svgGlyphStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), svgGlyphStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(109)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(110)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(111)] + public void DrawColorBitmapGlyphRun(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, ColorBitmapGlyphSnapOption bitmapSnapOption) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), glyphImageFormat, baselineOrigin, glyphRun, measuringMode, bitmapSnapOption); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(112)] + public void DrawSvgGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(113)] + public HResult GetColorBitmapGlyphImage(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, System.Drawing.PointF* glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, float dpiX, float dpiY, Matrix3x2** glyphTransform, ID2D1Image** glyphImage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), glyphImageFormat, glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, dpiX, dpiY, glyphTransform, glyphImage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(114)] + public HResult GetSvgGlyphImage(System.Drawing.PointF* glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Matrix3x2** glyphTransform, ID2D1CommandList** glyphImage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, glyphTransform, glyphImage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(115)] + public HResult CreateSvgDocument(Com.IStream* inputXmlStream, System.Drawing.SizeF viewportSize, ID2D1SvgDocument** svgDocument) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[115]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), inputXmlStream, viewportSize, svgDocument); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(116)] + public void DrawSvgDocument(ID2D1SvgDocument* svgDocument) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[116]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), svgDocument); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(117)] + public HResult CreateColorContextFromDxgiColorSpace(Graphics.Dxgi.Common.ColorSpaceType colorSpace, ID2D1ColorContext1** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[117]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), colorSpace, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(118)] + public HResult CreateColorContextFromSimpleColorProfile(SimpleColorProfile* simpleProfile, ID2D1ColorContext1** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[118]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), simpleProfile, colorContext); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext6.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext6.cs new file mode 100644 index 0000000..9708b40 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DeviceContext6.cs @@ -0,0 +1,1020 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DeviceContext6 +[Guid("985f7e37-4ed0-4a19-98a3-15b0edfde306")] +[NativeTypeName("struct ID2D1DeviceContext6 : ID2D1DeviceContext5")] +[NativeInheritance("ID2D1DeviceContext5")] +public unsafe partial struct ID2D1DeviceContext6 +{ + public static ref readonly Guid IID_ID2D1DeviceContext6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x37, 0x7E, 0x5F, 0x98, + 0xD0, 0x4E, + 0x19, 0x4A, + 0x98, + 0xA3, + 0x15, + 0xB0, + 0xED, + 0xFD, + 0xE3, + 0x06 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext6)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), size, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMesh(ID2D1Mesh** mesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), mesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), roundedRect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), ellipse, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetAntialiasMode(AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public AntialiasMode GetAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetTags(ulong tag1, ulong tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void GetTags(ulong* tag1, ulong* tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void PopLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult Flush(ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void PopAxisAlignedClip() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void Clear(Common.ColorF* clearColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), clearColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void BeginDraw() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void SetDpi(float dpiX, float dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public uint GetMaximumBitmapSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), renderTargetProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateBitmap(System.Drawing.Size size, void* sourceData, uint pitch, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), size, sourceData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), filename, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateBitmapFromDxgiSurface(Graphics.Dxgi.IDXGISurface* surface, BitmapProperties1* bitmapProperties, ID2D1Bitmap1** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), effectId, effect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image, imageBrushProperties, brushProperties, imageBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties1* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush1** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CreateCommandList(ID2D1CommandList** commandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), commandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), bufferPrecision); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult GetImageLocalBounds(ID2D1Image* image, Common.RectF* localBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image, localBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public HResult GetImageWorldBounds(ID2D1Image* image, Common.RectF* worldBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image, worldBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public HResult GetGlyphRunWorldBounds(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void GetDevice(ID2D1Device** device) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), device); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void SetTarget(ID2D1Image* image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void GetTarget(ID2D1Image** image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void SetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void GetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public PrimitiveBlend GetPrimitiveBlend() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void SetUnitMode(UnitMode unitMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public UnitMode GetUnitMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void DrawImage(ID2D1Image* image, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, System.Drawing.PointF* targetOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Common.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Common.RectF* inputRectangle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), effect, rectangleCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Common.RectF* rectangles, uint rectanglesCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Common.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Common.RectF* requiredInputRects, uint inputCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(92)] + public HResult CreateFilledGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, ID2D1GeometryRealization** geometryRealization) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(93)] + public HResult CreateStrokedGeometryRealization(ID2D1Geometry* geometry, float flatteningTolerance, float strokeWidth, ID2D1StrokeStyle* strokeStyle, ID2D1GeometryRealization** geometryRealization) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(94)] + public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), geometryRealization, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(95)] + public HResult CreateInk(InkPoint* startPoint, ID2D1Ink** ink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), startPoint, ink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(96)] + public HResult CreateInkStyle(InkStyleProperties* inkStyleProperties, ID2D1InkStyle** inkStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), inkStyleProperties, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(97)] + public HResult CreateGradientMesh(GradientMeshPatch* patches, uint patchesCount, ID2D1GradientMesh** gradientMesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), patches, patchesCount, gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(98)] + public HResult CreateImageSourceFromWic(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, ImageSourceLoadingOptions loadingOptions, Common.AlphaMode alphaMode, ID2D1ImageSourceFromWic** imageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), wicBitmapSource, loadingOptions, alphaMode, imageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(99)] + public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(100)] + public HResult CreateImageSourceFromDxgi(Graphics.Dxgi.IDXGISurface** surfaces, uint surfaceCount, Graphics.Dxgi.Common.ColorSpaceType colorSpace, ImageSourceFromDxgiOptions options, ID2D1ImageSource** imageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), surfaces, surfaceCount, colorSpace, options, imageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(101)] + public HResult GetGradientMeshWorldBounds(ID2D1GradientMesh* gradientMesh, Common.RectF* pBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), gradientMesh, pBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(102)] + public void DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(103)] + public void DrawGradientMesh(ID2D1GradientMesh* gradientMesh) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(104)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(105)] + public HResult CreateTransformedImageSource(ID2D1ImageSource* imageSource, TransformedImageSourceProperties* properties, ID2D1TransformedImageSource** transformedImageSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), imageSource, properties, transformedImageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(106)] + public HResult CreateSpriteBatch(ID2D1SpriteBatch** spriteBatch) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), spriteBatch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(107)] + public void DrawSpriteBatch(ID2D1SpriteBatch* spriteBatch, uint startIndex, uint spriteCount, ID2D1Bitmap* bitmap, BitmapInterpolationMode interpolationMode, SpriteOptions spriteOptions) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(108)] + public HResult CreateSvgGlyphStyle(ID2D1SvgGlyphStyle** svgGlyphStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), svgGlyphStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(109)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(110)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(111)] + public void DrawColorBitmapGlyphRun(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, ColorBitmapGlyphSnapOption bitmapSnapOption) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), glyphImageFormat, baselineOrigin, glyphRun, measuringMode, bitmapSnapOption); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(112)] + public void DrawSvgGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(113)] + public HResult GetColorBitmapGlyphImage(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, System.Drawing.PointF* glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, float dpiX, float dpiY, Matrix3x2** glyphTransform, ID2D1Image** glyphImage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), glyphImageFormat, glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, dpiX, dpiY, glyphTransform, glyphImage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(114)] + public HResult GetSvgGlyphImage(System.Drawing.PointF* glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Matrix3x2** glyphTransform, ID2D1CommandList** glyphImage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, glyphTransform, glyphImage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(115)] + public HResult CreateSvgDocument(Com.IStream* inputXmlStream, System.Drawing.SizeF viewportSize, ID2D1SvgDocument** svgDocument) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[115]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), inputXmlStream, viewportSize, svgDocument); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(116)] + public void DrawSvgDocument(ID2D1SvgDocument* svgDocument) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[116]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), svgDocument); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(117)] + public HResult CreateColorContextFromDxgiColorSpace(Graphics.Dxgi.Common.ColorSpaceType colorSpace, ID2D1ColorContext1** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[117]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), colorSpace, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(118)] + public HResult CreateColorContextFromSimpleColorProfile(SimpleColorProfile* simpleProfile, ID2D1ColorContext1** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[118]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), simpleProfile, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(119)] + public void BlendImage(ID2D1Image* image, Common.BlendMode blendMode, System.Drawing.PointF* targetOffset, Common.RectF* imageRectangle, InterpolationMode interpolationMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[119]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), image, blendMode, targetOffset, imageRectangle, interpolationMode); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawInfo.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawInfo.cs new file mode 100644 index 0000000..357a80a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawInfo.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DrawInfo +[Guid("693ce632-7f2f-45de-93fe-18d88b37aa21")] +[NativeTypeName("struct ID2D1DrawInfo : ID2D1RenderInfo")] +[NativeInheritance("ID2D1RenderInfo")] +public unsafe partial struct ID2D1DrawInfo +{ + public static ref readonly Guid IID_ID2D1DrawInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x32, 0xE6, 0x3C, 0x69, + 0x2F, 0x7F, + 0xDE, 0x45, + 0x93, + 0xFE, + 0x18, + 0xD8, + 0x8B, + 0x37, + 0xAA, + 0x21 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DrawInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetInputDescription(uint inputIndex, InputDescription* inputDescription) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), inputIndex, inputDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetCached(Bool32 isCached) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), isCached); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetInstructionCountHint(uint instructionCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), instructionCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetPixelShaderConstantBuffer(byte* buffer, uint bufferCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), buffer, bufferCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetResourceTexture(uint textureIndex, ID2D1ResourceTexture* resourceTexture) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), textureIndex, resourceTexture); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetVertexShaderConstantBuffer(byte* buffer, uint bufferCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), buffer, bufferCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetPixelShader(Guid* shaderId, PixelOptions pixelOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), shaderId, pixelOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult SetVertexProcessing(ID2D1VertexBuffer* vertexBuffer, VertexOptions vertexOptions, BlendDescription* blendDescription, VertexRange* vertexRange, Guid* vertexShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1DrawInfo*)Unsafe.AsPointer(ref this), vertexBuffer, vertexOptions, blendDescription, vertexRange, vertexShader); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawTransform.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawTransform.cs new file mode 100644 index 0000000..2c54d04 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawTransform.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DrawTransform +[Guid("36bfdcb6-9739-435d-a30d-a653beff6a6f")] +[NativeTypeName("struct ID2D1DrawTransform : ID2D1Transform")] +[NativeInheritance("ID2D1Transform")] +public unsafe partial struct ID2D1DrawTransform +{ + public static ref readonly Guid IID_ID2D1DrawTransform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB6, 0xDC, 0xBF, 0x36, + 0x39, 0x97, + 0x5D, 0x43, + 0xA3, + 0x0D, + 0xA6, + 0x53, + 0xBE, + 0xFF, + 0x6A, + 0x6F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DrawTransform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DrawTransform*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult MapOutputRectToInputRects(RawRect* outputRect, RawRect* inputRects, uint inputRectsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DrawTransform*)Unsafe.AsPointer(ref this), outputRect, inputRects, inputRectsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult MapInputRectsToOutputRect(RawRect* inputRects, RawRect* inputOpaqueSubRects, uint inputRectCount, RawRect* outputRect, RawRect* outputOpaqueSubRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DrawTransform*)Unsafe.AsPointer(ref this), inputRects, inputOpaqueSubRects, inputRectCount, outputRect, outputOpaqueSubRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult MapInvalidRect(uint inputIndex, RawRect* invalidInputRect, RawRect* invalidOutputRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DrawTransform*)Unsafe.AsPointer(ref this), inputIndex, invalidInputRect, invalidOutputRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetDrawInfo(ID2D1DrawInfo* drawInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DrawTransform*)Unsafe.AsPointer(ref this), drawInfo); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawingStateBlock.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawingStateBlock.cs new file mode 100644 index 0000000..ba953ae --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawingStateBlock.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DrawingStateBlock +[Guid("28506e39-ebf6-46a1-bb47-fd85565ab957")] +[NativeTypeName("struct ID2D1DrawingStateBlock : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1DrawingStateBlock +{ + public static ref readonly Guid IID_ID2D1DrawingStateBlock + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x39, 0x6E, 0x50, 0x28, + 0xF6, 0xEB, + 0xA1, 0x46, + 0xBB, + 0x47, + 0xFD, + 0x85, + 0x56, + 0x5A, + 0xB9, + 0x57 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DrawingStateBlock)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DrawingStateBlock*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetDescription(DrawingStateDescription* stateDescription) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DrawingStateBlock*)Unsafe.AsPointer(ref this), stateDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetDescription(DrawingStateDescription* stateDescription) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DrawingStateBlock*)Unsafe.AsPointer(ref this), stateDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DrawingStateBlock*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DrawingStateBlock*)Unsafe.AsPointer(ref this), textRenderingParams); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawingStateBlock1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawingStateBlock1.cs new file mode 100644 index 0000000..aa62778 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1DrawingStateBlock1.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DrawingStateBlock1 +[Guid("689f1f85-c72e-4e33-8f19-85754efd5ace")] +[NativeTypeName("struct ID2D1DrawingStateBlock1 : ID2D1DrawingStateBlock")] +[NativeInheritance("ID2D1DrawingStateBlock")] +public unsafe partial struct ID2D1DrawingStateBlock1 +{ + public static ref readonly Guid IID_ID2D1DrawingStateBlock1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x85, 0x1F, 0x9F, 0x68, + 0x2E, 0xC7, + 0x33, 0x4E, + 0x8F, + 0x19, + 0x85, + 0x75, + 0x4E, + 0xFD, + 0x5A, + 0xCE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DrawingStateBlock1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetDescription(DrawingStateDescription* stateDescription) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), stateDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetDescription(DrawingStateDescription* stateDescription) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), stateDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDescription(DrawingStateDescription1* stateDescription) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), stateDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetDescription(DrawingStateDescription1* stateDescription) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1DrawingStateBlock1*)Unsafe.AsPointer(ref this), stateDescription); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Effect.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Effect.cs new file mode 100644 index 0000000..b967a46 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Effect.cs @@ -0,0 +1,211 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Effect +[Guid("28211a43-7d89-476f-8181-2d6159b220ad")] +[NativeTypeName("struct ID2D1Effect : ID2D1Properties")] +[NativeInheritance("ID2D1Properties")] +public unsafe partial struct ID2D1Effect +{ + public static ref readonly Guid IID_ID2D1Effect + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x43, 0x1A, 0x21, 0x28, + 0x89, 0x7D, + 0x6F, 0x47, + 0x81, + 0x81, + 0x2D, + 0x61, + 0x59, + 0xB2, + 0x20, + 0xAD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Effect)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetPropertyCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Effect*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPropertyName(uint index, ushort* name, uint nameCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, name, nameCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetPropertyNameLength(uint index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public PropertyType GetType(uint index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetPropertyIndex(ushort* name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Effect*)Unsafe.AsPointer(ref this), name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Effect*)Unsafe.AsPointer(ref this), name, type, data, dataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetValue(uint index, PropertyType type, byte* data, uint dataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, type, data, dataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Effect*)Unsafe.AsPointer(ref this), name, type, data, dataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetValue(uint index, PropertyType type, byte* data, uint dataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, type, data, dataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public uint GetValueSize(uint index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetSubProperties(uint index, ID2D1Properties** subProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, subProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void SetInput(uint index, ID2D1Image* input, Bool32 invalidate) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, input, invalidate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult SetInputCount(uint inputCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Effect*)Unsafe.AsPointer(ref this), inputCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void GetInput(uint index, ID2D1Image** input) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, input); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public uint GetInputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Effect*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void GetOutput(ID2D1Image** outputImage) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Effect*)Unsafe.AsPointer(ref this), outputImage); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectContext.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectContext.cs new file mode 100644 index 0000000..4d705e7 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectContext.cs @@ -0,0 +1,251 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1EffectContext +[Guid("3d9f916b-27dc-4ad7-b4f1-64945340f563")] +[NativeTypeName("struct ID2D1EffectContext : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1EffectContext +{ + public static ref readonly Guid IID_ID2D1EffectContext + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6B, 0x91, 0x9F, 0x3D, + 0xDC, 0x27, + 0xD7, 0x4A, + 0xB4, + 0xF1, + 0x64, + 0x94, + 0x53, + 0x40, + 0xF5, + 0x63 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EffectContext)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), effectId, effect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetMaximumSupportedFeatureLevel(Graphics.Direct3D.FeatureLevel* featureLevels, uint featureLevelsCount, Graphics.Direct3D.FeatureLevel* maximumSupportedFeatureLevel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), featureLevels, featureLevelsCount, maximumSupportedFeatureLevel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateTransformNodeFromEffect(ID2D1Effect* effect, ID2D1TransformNode** transformNode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), effect, transformNode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBlendTransform(uint numInputs, BlendDescription* blendDescription, ID2D1BlendTransform** transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), numInputs, blendDescription, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateBorderTransform(ExtendMode extendModeX, ExtendMode extendModeY, ID2D1BorderTransform** transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), extendModeX, extendModeY, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateOffsetTransform(System.Drawing.Point* offset, ID2D1OffsetTransform** transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), offset, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateBoundsAdjustmentTransform(RawRect* outputRectangle, ID2D1BoundsAdjustmentTransform** transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), outputRectangle, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult LoadPixelShader(Guid* shaderId, byte* shaderBuffer, uint shaderBufferCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), shaderId, shaderBuffer, shaderBufferCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult LoadVertexShader(Guid* resourceId, byte* shaderBuffer, uint shaderBufferCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), resourceId, shaderBuffer, shaderBufferCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult LoadComputeShader(Guid* resourceId, byte* shaderBuffer, uint shaderBufferCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), resourceId, shaderBuffer, shaderBufferCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public Bool32 IsShaderLoaded(Guid* shaderId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), shaderId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateResourceTexture(Guid* resourceId, ResourceTextureProperties* resourceTextureProperties, byte* data, uint* strides, uint dataSize, ID2D1ResourceTexture** resourceTexture) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), resourceId, resourceTextureProperties, data, strides, dataSize, resourceTexture); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult FindResourceTexture(Guid* resourceId, ID2D1ResourceTexture** resourceTexture) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), resourceId, resourceTexture); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateVertexBuffer(VertexBufferProperties* vertexBufferProperties, Guid* resourceId, CustomVertexBufferProperties* customVertexBufferProperties, ID2D1VertexBuffer** buffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), vertexBufferProperties, resourceId, customVertexBufferProperties, buffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult FindVertexBuffer(Guid* resourceId, ID2D1VertexBuffer** buffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), resourceId, buffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), filename, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CheckFeatureSupport(Feature feature, void* featureSupportData, uint featureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), feature, featureSupportData, featureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1EffectContext*)Unsafe.AsPointer(ref this), bufferPrecision); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectContext1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectContext1.cs new file mode 100644 index 0000000..04fa593 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectContext1.cs @@ -0,0 +1,259 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1EffectContext1 +[Guid("84ab595a-fc81-4546-bacd-e8ef4d8abe7a")] +[NativeTypeName("struct ID2D1EffectContext1 : ID2D1EffectContext")] +[NativeInheritance("ID2D1EffectContext")] +public unsafe partial struct ID2D1EffectContext1 +{ + public static ref readonly Guid IID_ID2D1EffectContext1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5A, 0x59, 0xAB, 0x84, + 0x81, 0xFC, + 0x46, 0x45, + 0xBA, + 0xCD, + 0xE8, + 0xEF, + 0x4D, + 0x8A, + 0xBE, + 0x7A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EffectContext1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), effectId, effect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetMaximumSupportedFeatureLevel(Graphics.Direct3D.FeatureLevel* featureLevels, uint featureLevelsCount, Graphics.Direct3D.FeatureLevel* maximumSupportedFeatureLevel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), featureLevels, featureLevelsCount, maximumSupportedFeatureLevel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateTransformNodeFromEffect(ID2D1Effect* effect, ID2D1TransformNode** transformNode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), effect, transformNode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBlendTransform(uint numInputs, BlendDescription* blendDescription, ID2D1BlendTransform** transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), numInputs, blendDescription, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateBorderTransform(ExtendMode extendModeX, ExtendMode extendModeY, ID2D1BorderTransform** transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), extendModeX, extendModeY, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateOffsetTransform(System.Drawing.Point* offset, ID2D1OffsetTransform** transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), offset, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateBoundsAdjustmentTransform(RawRect* outputRectangle, ID2D1BoundsAdjustmentTransform** transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), outputRectangle, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult LoadPixelShader(Guid* shaderId, byte* shaderBuffer, uint shaderBufferCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), shaderId, shaderBuffer, shaderBufferCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult LoadVertexShader(Guid* resourceId, byte* shaderBuffer, uint shaderBufferCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), resourceId, shaderBuffer, shaderBufferCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult LoadComputeShader(Guid* resourceId, byte* shaderBuffer, uint shaderBufferCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), resourceId, shaderBuffer, shaderBufferCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public Bool32 IsShaderLoaded(Guid* shaderId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), shaderId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateResourceTexture(Guid* resourceId, ResourceTextureProperties* resourceTextureProperties, byte* data, uint* strides, uint dataSize, ID2D1ResourceTexture** resourceTexture) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), resourceId, resourceTextureProperties, data, strides, dataSize, resourceTexture); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult FindResourceTexture(Guid* resourceId, ID2D1ResourceTexture** resourceTexture) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), resourceId, resourceTexture); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateVertexBuffer(VertexBufferProperties* vertexBufferProperties, Guid* resourceId, CustomVertexBufferProperties* customVertexBufferProperties, ID2D1VertexBuffer** buffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), vertexBufferProperties, resourceId, customVertexBufferProperties, buffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult FindVertexBuffer(Guid* resourceId, ID2D1VertexBuffer** buffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), resourceId, buffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), filename, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CheckFeatureSupport(Feature feature, void* featureSupportData, uint featureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), feature, featureSupportData, featureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), bufferPrecision); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1EffectContext1*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectContext2.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectContext2.cs new file mode 100644 index 0000000..26aa075 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectContext2.cs @@ -0,0 +1,275 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1EffectContext2 +[Guid("577ad2a0-9fc7-4dda-8b18-dab810140052")] +[NativeTypeName("struct ID2D1EffectContext2 : ID2D1EffectContext1")] +[NativeInheritance("ID2D1EffectContext1")] +public unsafe partial struct ID2D1EffectContext2 +{ + public static ref readonly Guid IID_ID2D1EffectContext2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA0, 0xD2, 0x7A, 0x57, + 0xC7, 0x9F, + 0xDA, 0x4D, + 0x8B, + 0x18, + 0xDA, + 0xB8, + 0x10, + 0x14, + 0x00, + 0x52 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EffectContext2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), effectId, effect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetMaximumSupportedFeatureLevel(Graphics.Direct3D.FeatureLevel* featureLevels, uint featureLevelsCount, Graphics.Direct3D.FeatureLevel* maximumSupportedFeatureLevel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), featureLevels, featureLevelsCount, maximumSupportedFeatureLevel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateTransformNodeFromEffect(ID2D1Effect* effect, ID2D1TransformNode** transformNode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), effect, transformNode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBlendTransform(uint numInputs, BlendDescription* blendDescription, ID2D1BlendTransform** transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), numInputs, blendDescription, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateBorderTransform(ExtendMode extendModeX, ExtendMode extendModeY, ID2D1BorderTransform** transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), extendModeX, extendModeY, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateOffsetTransform(System.Drawing.Point* offset, ID2D1OffsetTransform** transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), offset, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateBoundsAdjustmentTransform(RawRect* outputRectangle, ID2D1BoundsAdjustmentTransform** transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), outputRectangle, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult LoadPixelShader(Guid* shaderId, byte* shaderBuffer, uint shaderBufferCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), shaderId, shaderBuffer, shaderBufferCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult LoadVertexShader(Guid* resourceId, byte* shaderBuffer, uint shaderBufferCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), resourceId, shaderBuffer, shaderBufferCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult LoadComputeShader(Guid* resourceId, byte* shaderBuffer, uint shaderBufferCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), resourceId, shaderBuffer, shaderBufferCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public Bool32 IsShaderLoaded(Guid* shaderId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), shaderId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateResourceTexture(Guid* resourceId, ResourceTextureProperties* resourceTextureProperties, byte* data, uint* strides, uint dataSize, ID2D1ResourceTexture** resourceTexture) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), resourceId, resourceTextureProperties, data, strides, dataSize, resourceTexture); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult FindResourceTexture(Guid* resourceId, ID2D1ResourceTexture** resourceTexture) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), resourceId, resourceTexture); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateVertexBuffer(VertexBufferProperties* vertexBufferProperties, Guid* resourceId, CustomVertexBufferProperties* customVertexBufferProperties, ID2D1VertexBuffer** buffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), vertexBufferProperties, resourceId, customVertexBufferProperties, buffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult FindVertexBuffer(Guid* resourceId, ID2D1VertexBuffer** buffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), resourceId, buffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateColorContext(ColorSpace space, byte* profile, uint profileSize, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), filename, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), wicColorContext, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CheckFeatureSupport(Feature feature, void* featureSupportData, uint featureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), feature, featureSupportData, featureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), bufferPrecision); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateLookupTable3D(BufferPrecision precision, uint* extents, byte* data, uint dataCount, uint* strides, ID2D1LookupTable3D** lookupTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateColorContextFromDxgiColorSpace(Graphics.Dxgi.Common.ColorSpaceType colorSpace, ID2D1ColorContext1** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), colorSpace, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult CreateColorContextFromSimpleColorProfile(SimpleColorProfile* simpleProfile, ID2D1ColorContext1** colorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1EffectContext2*)Unsafe.AsPointer(ref this), simpleProfile, colorContext); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectImpl.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectImpl.cs new file mode 100644 index 0000000..1c28a71 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EffectImpl.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1EffectImpl +[Guid("a248fd3f-3e6c-4e63-9f03-7f68ecc91db9")] +[NativeTypeName("struct ID2D1EffectImpl : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1EffectImpl +{ + public static ref readonly Guid IID_ID2D1EffectImpl + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3F, 0xFD, 0x48, 0xA2, + 0x6C, 0x3E, + 0x63, 0x4E, + 0x9F, + 0x03, + 0x7F, + 0x68, + 0xEC, + 0xC9, + 0x1D, + 0xB9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EffectImpl)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Initialize(ID2D1EffectContext* effectContext, ID2D1TransformGraph* transformGraph) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1EffectImpl*)Unsafe.AsPointer(ref this), effectContext, transformGraph); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult PrepareForRender(ChangeType changeType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1EffectImpl*)Unsafe.AsPointer(ref this), changeType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetGraph(ID2D1TransformGraph* transformGraph) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1EffectImpl*)Unsafe.AsPointer(ref this), transformGraph); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EllipseGeometry.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EllipseGeometry.cs new file mode 100644 index 0000000..8fd3a0f --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1EllipseGeometry.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1EllipseGeometry +[Guid("2cd906a4-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1EllipseGeometry : ID2D1Geometry")] +[NativeInheritance("ID2D1Geometry")] +public unsafe partial struct ID2D1EllipseGeometry +{ + public static ref readonly Guid IID_ID2D1EllipseGeometry + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA4, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1EllipseGeometry)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), worldTransform, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void GetEllipse(Ellipse* ellipse) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1EllipseGeometry*)Unsafe.AsPointer(ref this), ellipse); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory.cs new file mode 100644 index 0000000..cab6564 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory.cs @@ -0,0 +1,195 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Factory +[Guid("06152247-6f50-465a-9245-118bfd3b6007")] +[NativeTypeName("struct ID2D1Factory : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1Factory +{ + public static ref readonly Guid IID_ID2D1Factory + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x47, 0x22, 0x15, 0x06, + 0x50, 0x6F, + 0x5A, 0x46, + 0x92, + 0x45, + 0x11, + 0x8B, + 0xFD, + 0x3B, + 0x60, + 0x07 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReloadSystemMetrics() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetDesktopDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory1.cs new file mode 100644 index 0000000..0458e54 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory1.cs @@ -0,0 +1,275 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Factory1 +[Guid("bb12d362-daee-4b9a-aa1d-14ba401cfa1f")] +[NativeTypeName("struct ID2D1Factory1 : ID2D1Factory")] +[NativeInheritance("ID2D1Factory")] +public unsafe partial struct ID2D1Factory1 +{ + public static ref readonly Guid IID_ID2D1Factory1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x62, 0xD3, 0x12, 0xBB, + 0xEE, 0xDA, + 0x9A, 0x4B, + 0xAA, + 0x1D, + 0x14, + 0xBA, + 0x40, + 0x1C, + 0xFA, + 0x1F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReloadSystemMetrics() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetDesktopDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), metafileStream, metafile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[22]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[23]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult UnregisterEffect(Guid* classId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), classId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), effectId, properties); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory2.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory2.cs new file mode 100644 index 0000000..1da99da --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory2.cs @@ -0,0 +1,283 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Factory2 +[Guid("94f81a73-9212-4376-9c58-b16a3a0d3992")] +[NativeTypeName("struct ID2D1Factory2 : ID2D1Factory1")] +[NativeInheritance("ID2D1Factory1")] +public unsafe partial struct ID2D1Factory2 +{ + public static ref readonly Guid IID_ID2D1Factory2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x73, 0x1A, 0xF8, 0x94, + 0x12, 0x92, + 0x76, 0x43, + 0x9C, + 0x58, + 0xB1, + 0x6A, + 0x3A, + 0x0D, + 0x39, + 0x92 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReloadSystemMetrics() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetDesktopDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), metafileStream, metafile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[22]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[23]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult UnregisterEffect(Guid* classId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), classId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), effectId, properties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1Factory2*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory3.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory3.cs new file mode 100644 index 0000000..ea77f6c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory3.cs @@ -0,0 +1,291 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Factory3 +[Guid("0869759f-4f00-413f-b03e-2bda45404d0f")] +[NativeTypeName("struct ID2D1Factory3 : ID2D1Factory2")] +[NativeInheritance("ID2D1Factory2")] +public unsafe partial struct ID2D1Factory3 +{ + public static ref readonly Guid IID_ID2D1Factory3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9F, 0x75, 0x69, 0x08, + 0x00, 0x4F, + 0x3F, 0x41, + 0xB0, + 0x3E, + 0x2B, + 0xDA, + 0x45, + 0x40, + 0x4D, + 0x0F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReloadSystemMetrics() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetDesktopDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), metafileStream, metafile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[22]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[23]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult UnregisterEffect(Guid* classId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), classId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), effectId, properties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device2** d2dDevice2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1Factory3*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice2); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory4.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory4.cs new file mode 100644 index 0000000..de51c6f --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory4.cs @@ -0,0 +1,299 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Factory4 +[Guid("bd4ec2d2-0662-4bee-ba8e-6f29f032e096")] +[NativeTypeName("struct ID2D1Factory4 : ID2D1Factory3")] +[NativeInheritance("ID2D1Factory3")] +public unsafe partial struct ID2D1Factory4 +{ + public static ref readonly Guid IID_ID2D1Factory4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD2, 0xC2, 0x4E, 0xBD, + 0x62, 0x06, + 0xEE, 0x4B, + 0xBA, + 0x8E, + 0x6F, + 0x29, + 0xF0, + 0x32, + 0xE0, + 0x96 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReloadSystemMetrics() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetDesktopDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), metafileStream, metafile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[22]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[23]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult UnregisterEffect(Guid* classId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), classId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), effectId, properties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device2** d2dDevice2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device3** d2dDevice3) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1Factory4*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice3); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory5.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory5.cs new file mode 100644 index 0000000..dea4311 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory5.cs @@ -0,0 +1,307 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Factory5 +[Guid("c4349994-838e-4b0f-8cab-44997d9eeacc")] +[NativeTypeName("struct ID2D1Factory5 : ID2D1Factory4")] +[NativeInheritance("ID2D1Factory4")] +public unsafe partial struct ID2D1Factory5 +{ + public static ref readonly Guid IID_ID2D1Factory5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x94, 0x99, 0x34, 0xC4, + 0x8E, 0x83, + 0x0F, 0x4B, + 0x8C, + 0xAB, + 0x44, + 0x99, + 0x7D, + 0x9E, + 0xEA, + 0xCC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory5)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReloadSystemMetrics() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetDesktopDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), metafileStream, metafile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[22]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[23]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult UnregisterEffect(Guid* classId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), classId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), effectId, properties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device2** d2dDevice2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device3** d2dDevice3) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice3); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device4** d2dDevice4) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1Factory5*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice4); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory6.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory6.cs new file mode 100644 index 0000000..2525029 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory6.cs @@ -0,0 +1,315 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Factory6 +[Guid("f9976f46-f642-44c1-97ca-da32ea2a2635")] +[NativeTypeName("struct ID2D1Factory6 : ID2D1Factory5")] +[NativeInheritance("ID2D1Factory5")] +public unsafe partial struct ID2D1Factory6 +{ + public static ref readonly Guid IID_ID2D1Factory6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x46, 0x6F, 0x97, 0xF9, + 0x42, 0xF6, + 0xC1, 0x44, + 0x97, + 0xCA, + 0xDA, + 0x32, + 0xEA, + 0x2A, + 0x26, + 0x35 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory6)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReloadSystemMetrics() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetDesktopDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), metafileStream, metafile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[22]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[23]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult UnregisterEffect(Guid* classId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), classId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), effectId, properties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device2** d2dDevice2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device3** d2dDevice3) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice3); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device4** d2dDevice4) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice4); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device5** d2dDevice5) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1Factory6*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice5); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory7.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory7.cs new file mode 100644 index 0000000..fd5385d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Factory7.cs @@ -0,0 +1,323 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Factory7 +[Guid("bdc2bdd3-b96c-4de6-bdf7-99d4745454de")] +[NativeTypeName("struct ID2D1Factory7 : ID2D1Factory6")] +[NativeInheritance("ID2D1Factory6")] +public unsafe partial struct ID2D1Factory7 +{ + public static ref readonly Guid IID_ID2D1Factory7 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD3, 0xBD, 0xC2, 0xBD, + 0x6C, 0xB9, + 0xE6, 0x4D, + 0xBD, + 0xF7, + 0x99, + 0xD4, + 0x74, + 0x54, + 0x54, + 0xDE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory7)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReloadSystemMetrics() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Factory7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetDesktopDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateRectangleGeometry(Common.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), ellipse, ellipseGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateGeometryGroup(Common.FillMode fillMode, ID2D1Geometry** geometries, uint geometriesCount, ID2D1GeometryGroup** geometryGroup) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), fillMode, geometries, geometriesCount, geometryGroup); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateTransformedGeometry(ID2D1Geometry* sourceGeometry, Matrix3x2* transform, ID2D1TransformedGeometry** transformedGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateDrawingStateBlock(DrawingStateDescription* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateWicBitmapRenderTarget(Graphics.Imaging.IWICBitmap* target, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), renderTargetProperties, hwndRenderTargetProperties, hwndRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateDxgiSurfaceRenderTarget(Graphics.Dxgi.IDXGISurface* dxgiSurface, RenderTargetProperties* renderTargetProperties, ID2D1RenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateStrokeStyle(StrokeStyleProperties1* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle1** strokeStyle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), metafileStream, metafile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterEffectFromStream(Guid* classId, Com.IStream* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[22]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult RegisterEffectFromString(Guid* classId, ushort* propertyXml, PropertyBinding* bindings, uint bindingsCount, delegate* unmanaged[Stdcall] effectFactory) + { + return ((delegate* unmanaged[Stdcall], int>)(lpVtbl[23]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult UnregisterEffect(Guid* classId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), classId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), effectId, properties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device2** d2dDevice2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device3** d2dDevice3) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice3); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device4** d2dDevice4) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice4); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device5** d2dDevice5) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice5); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device6** d2dDevice6) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1Factory7*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice6); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiInteropRenderTarget.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiInteropRenderTarget.cs new file mode 100644 index 0000000..b9c0c00 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiInteropRenderTarget.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1GdiInteropRenderTarget +[Guid("e0db51c3-6f77-4bae-b3d5-e47509b35838")] +[NativeTypeName("struct ID2D1GdiInteropRenderTarget : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1GdiInteropRenderTarget +{ + public static ref readonly Guid IID_ID2D1GdiInteropRenderTarget + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC3, 0x51, 0xDB, 0xE0, + 0x77, 0x6F, + 0xAE, 0x4B, + 0xB3, + 0xD5, + 0xE4, + 0x75, + 0x09, + 0xB3, + 0x58, + 0x38 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiInteropRenderTarget)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetDC(DcInitializeMode mode, IntPtr* hdc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GdiInteropRenderTarget*)Unsafe.AsPointer(ref this), mode, hdc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult ReleaseDC(RawRect* update) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GdiInteropRenderTarget*)Unsafe.AsPointer(ref this), update); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafile.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafile.cs new file mode 100644 index 0000000..2350a86 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafile.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1GdiMetafile +[Guid("2f543dc3-cfc1-4211-864f-cfd91c6f3395")] +[NativeTypeName("struct ID2D1GdiMetafile : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1GdiMetafile +{ + public static ref readonly Guid IID_ID2D1GdiMetafile + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC3, 0x3D, 0x54, 0x2F, + 0xC1, 0xCF, + 0x11, 0x42, + 0x86, + 0x4F, + 0xCF, + 0xD9, + 0x1C, + 0x6F, + 0x33, + 0x95 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiMetafile)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GdiMetafile*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Stream(ID2D1GdiMetafileSink* sink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GdiMetafile*)Unsafe.AsPointer(ref this), sink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetBounds(Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GdiMetafile*)Unsafe.AsPointer(ref this), bounds); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafile1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafile1.cs new file mode 100644 index 0000000..8880d40 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafile1.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1GdiMetafile1 +[Guid("2e69f9e8-dd3f-4bf9-95ba-c04f49d788df")] +[NativeTypeName("struct ID2D1GdiMetafile1 : ID2D1GdiMetafile")] +[NativeInheritance("ID2D1GdiMetafile")] +public unsafe partial struct ID2D1GdiMetafile1 +{ + public static ref readonly Guid IID_ID2D1GdiMetafile1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE8, 0xF9, 0x69, 0x2E, + 0x3F, 0xDD, + 0xF9, 0x4B, + 0x95, + 0xBA, + 0xC0, + 0x4F, + 0x49, + 0xD7, + 0x88, + 0xDF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiMetafile1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GdiMetafile1*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Stream(ID2D1GdiMetafileSink* sink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GdiMetafile1*)Unsafe.AsPointer(ref this), sink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetBounds(Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GdiMetafile1*)Unsafe.AsPointer(ref this), bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetDpi(float* dpiX, float* dpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1GdiMetafile1*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetSourceBounds(Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1GdiMetafile1*)Unsafe.AsPointer(ref this), bounds); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafileSink.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafileSink.cs new file mode 100644 index 0000000..dba1e90 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafileSink.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1GdiMetafileSink +[Guid("82237326-8111-4f7c-bcf4-b5c1175564fe")] +[NativeTypeName("struct ID2D1GdiMetafileSink : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1GdiMetafileSink +{ + public static ref readonly Guid IID_ID2D1GdiMetafileSink + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x26, 0x73, 0x23, 0x82, + 0x11, 0x81, + 0x7C, 0x4F, + 0xBC, + 0xF4, + 0xB5, + 0xC1, + 0x17, + 0x55, + 0x64, + 0xFE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiMetafileSink)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ProcessRecord(uint recordType, void* recordData, uint recordDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GdiMetafileSink*)Unsafe.AsPointer(ref this), recordType, recordData, recordDataSize); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafileSink1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafileSink1.cs new file mode 100644 index 0000000..2a4fe95 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GdiMetafileSink1.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1GdiMetafileSink1 +[Guid("fd0ecb6b-91e6-411e-8655-395e760f91b4")] +[NativeTypeName("struct ID2D1GdiMetafileSink1 : ID2D1GdiMetafileSink")] +[NativeInheritance("ID2D1GdiMetafileSink")] +public unsafe partial struct ID2D1GdiMetafileSink1 +{ + public static ref readonly Guid IID_ID2D1GdiMetafileSink1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6B, 0xCB, 0x0E, 0xFD, + 0xE6, 0x91, + 0x1E, 0x41, + 0x86, + 0x55, + 0x39, + 0x5E, + 0x76, + 0x0F, + 0x91, + 0xB4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GdiMetafileSink1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ProcessRecord(uint recordType, void* recordData, uint recordDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GdiMetafileSink1*)Unsafe.AsPointer(ref this), recordType, recordData, recordDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult ProcessRecord(uint recordType, void* recordData, uint recordDataSize, uint flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GdiMetafileSink1*)Unsafe.AsPointer(ref this), recordType, recordData, recordDataSize, flags); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Geometry.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Geometry.cs new file mode 100644 index 0000000..da65b71 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Geometry.cs @@ -0,0 +1,195 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Geometry +[Guid("2cd906a1-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1Geometry : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1Geometry +{ + public static ref readonly Guid IID_ID2D1Geometry + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA1, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Geometry)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), worldTransform, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1Geometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GeometryGroup.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GeometryGroup.cs new file mode 100644 index 0000000..55e7848 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GeometryGroup.cs @@ -0,0 +1,219 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1GeometryGroup +[Guid("2cd906a6-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1GeometryGroup : ID2D1Geometry")] +[NativeInheritance("ID2D1Geometry")] +public unsafe partial struct ID2D1GeometryGroup +{ + public static ref readonly Guid IID_ID2D1GeometryGroup + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA6, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GeometryGroup)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), worldTransform, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public Common.FillMode GetFillMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public uint GetSourceGeometryCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void GetSourceGeometries(ID2D1Geometry** geometries, uint geometriesCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1GeometryGroup*)Unsafe.AsPointer(ref this), geometries, geometriesCount); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GeometryRealization.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GeometryRealization.cs new file mode 100644 index 0000000..5a6c9cd --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GeometryRealization.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1GeometryRealization +[Guid("a16907d7-bc02-4801-99e8-8cf7f485f774")] +[NativeTypeName("struct ID2D1GeometryRealization : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1GeometryRealization +{ + public static ref readonly Guid IID_ID2D1GeometryRealization + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD7, 0x07, 0x69, 0xA1, + 0x02, 0xBC, + 0x01, 0x48, + 0x99, + 0xE8, + 0x8C, + 0xF7, + 0xF4, + 0x85, + 0xF7, + 0x74 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GeometryRealization)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GeometryRealization*)Unsafe.AsPointer(ref this), factory); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GeometrySink.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GeometrySink.cs new file mode 100644 index 0000000..ee7d69d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GeometrySink.cs @@ -0,0 +1,153 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1GeometrySink +[Guid("2cd9069f-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1GeometrySink : ID2D1SimplifiedGeometrySink")] +[NativeInheritance("ID2D1SimplifiedGeometrySink")] +public unsafe partial struct ID2D1GeometrySink +{ + public static ref readonly Guid IID_ID2D1GeometrySink + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9F, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GeometrySink)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public void SetFillMode(Common.FillMode fillMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), fillMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public void SetSegmentFlags(Common.PathSegment vertexFlags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), vertexFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public void BeginFigure(System.Drawing.PointF* startPoint, Common.FigureBegin figureBegin) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), startPoint, figureBegin); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void AddLines(System.Drawing.PointF** points, uint pointsCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), points, pointsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void AddBeziers(Common.BezierSegment* beziers, uint beziersCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), beziers, beziersCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void EndFigure(Common.FigureEnd figureEnd) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), figureEnd); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult Close() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void AddLine(System.Drawing.PointF* point) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), point); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void AddBezier(Common.BezierSegment* bezier) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), bezier); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void AddQuadraticBezier(QuadraticBezierSegment* bezier) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), bezier); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void AddQuadraticBeziers(QuadraticBezierSegment* beziers, uint beziersCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), beziers, beziersCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void AddArc(ArcSegment* arc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1GeometrySink*)Unsafe.AsPointer(ref this), arc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GradientMesh.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GradientMesh.cs new file mode 100644 index 0000000..320270b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GradientMesh.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1GradientMesh +[Guid("f292e401-c050-4cde-83d7-04962d3b23c2")] +[NativeTypeName("struct ID2D1GradientMesh : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1GradientMesh +{ + public static ref readonly Guid IID_ID2D1GradientMesh + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x01, 0xE4, 0x92, 0xF2, + 0x50, 0xC0, + 0xDE, 0x4C, + 0x83, + 0xD7, + 0x04, + 0x96, + 0x2D, + 0x3B, + 0x23, + 0xC2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GradientMesh)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GradientMesh*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetPatchCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GradientMesh*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPatches(uint startIndex, GradientMeshPatch* patches, uint patchesCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GradientMesh*)Unsafe.AsPointer(ref this), startIndex, patches, patchesCount); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GradientStopCollection.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GradientStopCollection.cs new file mode 100644 index 0000000..a850395 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GradientStopCollection.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1GradientStopCollection +[Guid("2cd906a7-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1GradientStopCollection : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1GradientStopCollection +{ + public static ref readonly Guid IID_ID2D1GradientStopCollection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA7, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GradientStopCollection)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GradientStopCollection*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetGradientStopCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GradientStopCollection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void GetGradientStops(GradientStop* gradientStops, uint gradientStopsCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GradientStopCollection*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public Gamma GetColorInterpolationGamma() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1GradientStopCollection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public ExtendMode GetExtendMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1GradientStopCollection*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GradientStopCollection1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GradientStopCollection1.cs new file mode 100644 index 0000000..ad56f47 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1GradientStopCollection1.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1GradientStopCollection1 +[Guid("ae1572f4-5dd0-4777-998b-9279472ae63b")] +[NativeTypeName("struct ID2D1GradientStopCollection1 : ID2D1GradientStopCollection")] +[NativeInheritance("ID2D1GradientStopCollection")] +public unsafe partial struct ID2D1GradientStopCollection1 +{ + public static ref readonly Guid IID_ID2D1GradientStopCollection1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF4, 0x72, 0x15, 0xAE, + 0xD0, 0x5D, + 0x77, 0x47, + 0x99, + 0x8B, + 0x92, + 0x79, + 0x47, + 0x2A, + 0xE6, + 0x3B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1GradientStopCollection1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetGradientStopCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void GetGradientStops(GradientStop* gradientStops, uint gradientStopsCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public Gamma GetColorInterpolationGamma() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public ExtendMode GetExtendMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetGradientStops1(GradientStop* gradientStops, uint gradientStopsCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ColorSpace GetPreInterpolationSpace() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ColorSpace GetPostInterpolationSpace() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public BufferPrecision GetBufferPrecision() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public ColorInterpolationMode GetColorInterpolationMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1HwndRenderTarget.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1HwndRenderTarget.cs new file mode 100644 index 0000000..90f661d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1HwndRenderTarget.cs @@ -0,0 +1,540 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1HwndRenderTarget +[Guid("2cd90698-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1HwndRenderTarget : ID2D1RenderTarget")] +[NativeInheritance("ID2D1RenderTarget")] +public unsafe partial struct ID2D1HwndRenderTarget +{ + public static ref readonly Guid IID_ID2D1HwndRenderTarget + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x98, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1HwndRenderTarget)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), size, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMesh(ID2D1Mesh** mesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), mesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetAntialiasMode(AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public AntialiasMode GetAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetTags(ulong tag1, ulong tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void GetTags(ulong* tag1, ulong* tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void PopLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult Flush(ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void PopAxisAlignedClip() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void Clear(Common.ColorF* clearColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), clearColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void BeginDraw() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void SetDpi(float dpiX, float dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public uint GetMaximumBitmapSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), renderTargetProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public WindowState CheckWindowState() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult Resize(System.Drawing.Size* pixelSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), pixelSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public IntPtr GetHwnd() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Image.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Image.cs new file mode 100644 index 0000000..36010e5 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Image.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Image +[Guid("65019f75-8da2-497c-b32c-dfa34e48ede6")] +[NativeTypeName("struct ID2D1Image : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1Image +{ + public static ref readonly Guid IID_ID2D1Image + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x75, 0x9F, 0x01, 0x65, + 0xA2, 0x8D, + 0x7C, 0x49, + 0xB3, + 0x2C, + 0xDF, + 0xA3, + 0x4E, + 0x48, + 0xED, + 0xE6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Image)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Image*)Unsafe.AsPointer(ref this), factory); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ImageBrush.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ImageBrush.cs new file mode 100644 index 0000000..93a1bb2 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ImageBrush.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1ImageBrush +[Guid("fe9e984d-3f95-407c-b5db-cb94d4e8f87c")] +[NativeTypeName("struct ID2D1ImageBrush : ID2D1Brush")] +[NativeInheritance("ID2D1Brush")] +public unsafe partial struct ID2D1ImageBrush +{ + public static ref readonly Guid IID_ID2D1ImageBrush + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x98, 0x9E, 0xFE, + 0x95, 0x3F, + 0x7C, 0x40, + 0xB5, + 0xDB, + 0xCB, + 0x94, + 0xD4, + 0xE8, + 0xF8, + 0x7C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ImageBrush)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetOpacity(float opacity) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), opacity); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public float GetOpacity() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetImage(ID2D1Image* image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetExtendModeX(ExtendMode extendModeX) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), extendModeX); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void SetExtendModeY(ExtendMode extendModeY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), extendModeY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void SetInterpolationMode(InterpolationMode interpolationMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), interpolationMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void SetSourceRectangle(Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void GetImage(ID2D1Image** image) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public ExtendMode GetExtendModeX() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public ExtendMode GetExtendModeY() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public InterpolationMode GetInterpolationMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void GetSourceRectangle(Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1ImageBrush*)Unsafe.AsPointer(ref this), sourceRectangle); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ImageSource.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ImageSource.cs new file mode 100644 index 0000000..74f3ce9 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ImageSource.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1ImageSource +[Guid("c9b664e5-74a1-4378-9ac2-eefc37a3f4d8")] +[NativeTypeName("struct ID2D1ImageSource : ID2D1Image")] +[NativeInheritance("ID2D1Image")] +public unsafe partial struct ID2D1ImageSource +{ + public static ref readonly Guid IID_ID2D1ImageSource + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE5, 0x64, 0xB6, 0xC9, + 0xA1, 0x74, + 0x78, 0x43, + 0x9A, + 0xC2, + 0xEE, + 0xFC, + 0x37, + 0xA3, + 0xF4, + 0xD8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ImageSource)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ImageSource*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult OfferResources() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ImageSource*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult TryReclaimResources(Bool32* resourcesDiscarded) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ImageSource*)Unsafe.AsPointer(ref this), resourcesDiscarded); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ImageSourceFromWic.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ImageSourceFromWic.cs new file mode 100644 index 0000000..9bcf705 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ImageSourceFromWic.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1ImageSourceFromWic +[Guid("77395441-1c8f-4555-8683-f50dab0fe792")] +[NativeTypeName("struct ID2D1ImageSourceFromWic : ID2D1ImageSource")] +[NativeInheritance("ID2D1ImageSource")] +public unsafe partial struct ID2D1ImageSourceFromWic +{ + public static ref readonly Guid IID_ID2D1ImageSourceFromWic + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x54, 0x39, 0x77, + 0x8F, 0x1C, + 0x55, 0x45, + 0x86, + 0x83, + 0xF5, + 0x0D, + 0xAB, + 0x0F, + 0xE7, + 0x92 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ImageSourceFromWic)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ImageSourceFromWic*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult OfferResources() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ImageSourceFromWic*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult TryReclaimResources(Bool32* resourcesDiscarded) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ImageSourceFromWic*)Unsafe.AsPointer(ref this), resourcesDiscarded); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult EnsureCached(Common.RectU* rectangleToFill) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ImageSourceFromWic*)Unsafe.AsPointer(ref this), rectangleToFill); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult TrimCache(Common.RectU* rectangleToPreserve) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1ImageSourceFromWic*)Unsafe.AsPointer(ref this), rectangleToPreserve); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetSource(Graphics.Imaging.IWICBitmapSource** wicBitmapSource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1ImageSourceFromWic*)Unsafe.AsPointer(ref this), wicBitmapSource); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Ink.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Ink.cs new file mode 100644 index 0000000..8c290d0 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Ink.cs @@ -0,0 +1,172 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Ink +[Guid("b499923b-7029-478f-a8b3-432c7c5f5312")] +[NativeTypeName("struct ID2D1Ink : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1Ink +{ + public static ref readonly Guid IID_ID2D1Ink + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3B, 0x92, 0x99, 0xB4, + 0x29, 0x70, + 0x8F, 0x47, + 0xA8, + 0xB3, + 0x43, + 0x2C, + 0x7C, + 0x5F, + 0x53, + 0x12 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Ink)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Ink*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetStartPoint(InkPoint* startPoint) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Ink*)Unsafe.AsPointer(ref this), startPoint); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public InkPoint GetStartPoint() + { + InkPoint result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Ink*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult AddSegments(InkBezierSegment* segments, uint segmentsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Ink*)Unsafe.AsPointer(ref this), segments, segmentsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult RemoveSegmentsAtEnd(uint segmentsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Ink*)Unsafe.AsPointer(ref this), segmentsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetSegments(uint startSegment, InkBezierSegment* segments, uint segmentsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Ink*)Unsafe.AsPointer(ref this), startSegment, segments, segmentsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetSegmentAtEnd(InkBezierSegment* segment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Ink*)Unsafe.AsPointer(ref this), segment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public uint GetSegmentCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Ink*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetSegments(uint startSegment, InkBezierSegment* segments, uint segmentsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Ink*)Unsafe.AsPointer(ref this), startSegment, segments, segmentsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult StreamAsGeometry(ID2D1InkStyle* inkStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Ink*)Unsafe.AsPointer(ref this), inkStyle, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetBounds(ID2D1InkStyle* inkStyle, Matrix3x2* worldTransform, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Ink*)Unsafe.AsPointer(ref this), inkStyle, worldTransform, bounds); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1InkStyle.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1InkStyle.cs new file mode 100644 index 0000000..962be82 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1InkStyle.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1InkStyle +[Guid("bae8b344-23fc-4071-8cb5-d05d6f073848")] +[NativeTypeName("struct ID2D1InkStyle : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1InkStyle +{ + public static ref readonly Guid IID_ID2D1InkStyle + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x44, 0xB3, 0xE8, 0xBA, + 0xFC, 0x23, + 0x71, 0x40, + 0x8C, + 0xB5, + 0xD0, + 0x5D, + 0x6F, + 0x07, + 0x38, + 0x48 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1InkStyle)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1InkStyle*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetNibTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1InkStyle*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void GetNibTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1InkStyle*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetNibShape(InkNibShape nibShape) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1InkStyle*)Unsafe.AsPointer(ref this), nibShape); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public InkNibShape GetNibShape() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1InkStyle*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Layer.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Layer.cs new file mode 100644 index 0000000..ea1c568 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Layer.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Layer +[Guid("2cd9069b-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1Layer : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1Layer +{ + public static ref readonly Guid IID_ID2D1Layer + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9B, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Layer)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Layer*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Layer*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1LinearGradientBrush.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1LinearGradientBrush.cs new file mode 100644 index 0000000..f8765d6 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1LinearGradientBrush.cs @@ -0,0 +1,165 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1LinearGradientBrush +[Guid("2cd906ab-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1LinearGradientBrush : ID2D1Brush")] +[NativeInheritance("ID2D1Brush")] +public unsafe partial struct ID2D1LinearGradientBrush +{ + public static ref readonly Guid IID_ID2D1LinearGradientBrush + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAB, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1LinearGradientBrush)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetOpacity(float opacity) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), opacity); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public float GetOpacity() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetStartPoint(System.Drawing.PointF* startPoint) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), startPoint); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetEndPoint(System.Drawing.PointF* endPoint) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), endPoint); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public System.Drawing.PointF GetStartPoint() + { + System.Drawing.PointF result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public System.Drawing.PointF GetEndPoint() + { + System.Drawing.PointF result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void GetGradientStopCollection(ID2D1GradientStopCollection** gradientStopCollection) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1LinearGradientBrush*)Unsafe.AsPointer(ref this), gradientStopCollection); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1LookupTable3D.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1LookupTable3D.cs new file mode 100644 index 0000000..447827a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1LookupTable3D.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1LookupTable3D +[Guid("53dd9855-a3b0-4d5b-82e1-26e25c5e5797")] +[NativeTypeName("struct ID2D1LookupTable3D : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1LookupTable3D +{ + public static ref readonly Guid IID_ID2D1LookupTable3D + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x55, 0x98, 0xDD, 0x53, + 0xB0, 0xA3, + 0x5B, 0x4D, + 0x82, + 0xE1, + 0x26, + 0xE2, + 0x5C, + 0x5E, + 0x57, + 0x97 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1LookupTable3D)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1LookupTable3D*)Unsafe.AsPointer(ref this), factory); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Mesh.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Mesh.cs new file mode 100644 index 0000000..704a7b7 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Mesh.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Mesh +[Guid("2cd906c2-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1Mesh : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1Mesh +{ + public static ref readonly Guid IID_ID2D1Mesh + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC2, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Mesh)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Mesh*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Open(ID2D1TessellationSink** tessellationSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Mesh*)Unsafe.AsPointer(ref this), tessellationSink); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Multithread.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Multithread.cs new file mode 100644 index 0000000..3f57d53 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Multithread.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Multithread +[Guid("31e6e7bc-e0ff-4d46-8c64-a0a8c41c15d3")] +[NativeTypeName("struct ID2D1Multithread : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1Multithread +{ + public static ref readonly Guid IID_ID2D1Multithread + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBC, 0xE7, 0xE6, 0x31, + 0xFF, 0xE0, + 0x46, 0x4D, + 0x8C, + 0x64, + 0xA0, + 0xA8, + 0xC4, + 0x1C, + 0x15, + 0xD3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Multithread)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public Bool32 GetMultithreadProtected() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Multithread*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void Enter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Multithread*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void Leave() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Multithread*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1OffsetTransform.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1OffsetTransform.cs new file mode 100644 index 0000000..54b5fe3 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1OffsetTransform.cs @@ -0,0 +1,108 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1OffsetTransform +[Guid("3fe6adea-7643-4f53-bd14-a0ce63f24042")] +[NativeTypeName("struct ID2D1OffsetTransform : ID2D1TransformNode")] +[NativeInheritance("ID2D1TransformNode")] +public unsafe partial struct ID2D1OffsetTransform +{ + public static ref readonly Guid IID_ID2D1OffsetTransform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEA, 0xAD, 0xE6, 0x3F, + 0x43, 0x76, + 0x53, 0x4F, + 0xBD, + 0x14, + 0xA0, + 0xCE, + 0x63, + 0xF2, + 0x40, + 0x42 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1OffsetTransform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1OffsetTransform*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetOffset(System.Drawing.Point* offset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1OffsetTransform*)Unsafe.AsPointer(ref this), offset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public System.Drawing.Point GetOffset() + { + System.Drawing.Point result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1OffsetTransform*)Unsafe.AsPointer(ref this), &result); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1PathGeometry.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1PathGeometry.cs new file mode 100644 index 0000000..b0cc7e0 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1PathGeometry.cs @@ -0,0 +1,227 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1PathGeometry +[Guid("2cd906a5-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1PathGeometry : ID2D1Geometry")] +[NativeInheritance("ID2D1Geometry")] +public unsafe partial struct ID2D1PathGeometry +{ + public static ref readonly Guid IID_ID2D1PathGeometry + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA5, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1PathGeometry)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), worldTransform, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult Open(ID2D1GeometrySink** geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult Stream(ID2D1GeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetSegmentCount(uint* count) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), count); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult GetFigureCount(uint* count) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1PathGeometry*)Unsafe.AsPointer(ref this), count); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1PathGeometry1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1PathGeometry1.cs new file mode 100644 index 0000000..09fc5ae --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1PathGeometry1.cs @@ -0,0 +1,235 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1PathGeometry1 +[Guid("62baa2d2-ab54-41b7-b872-787e0106a421")] +[NativeTypeName("struct ID2D1PathGeometry1 : ID2D1PathGeometry")] +[NativeInheritance("ID2D1PathGeometry")] +public unsafe partial struct ID2D1PathGeometry1 +{ + public static ref readonly Guid IID_ID2D1PathGeometry1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD2, 0xA2, 0xBA, 0x62, + 0x54, 0xAB, + 0xB7, 0x41, + 0xB8, + 0x72, + 0x78, + 0x7E, + 0x01, + 0x06, + 0xA4, + 0x21 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1PathGeometry1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), worldTransform, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult Open(ID2D1GeometrySink** geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult Stream(ID2D1GeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetSegmentCount(uint* count) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), count); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult GetFigureCount(uint* count) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), count); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult ComputePointAndSegmentAtLength(float length, uint startSegment, Matrix3x2* worldTransform, float flatteningTolerance, PointDescription* pointDescription) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1PathGeometry1*)Unsafe.AsPointer(ref this), length, startSegment, worldTransform, flatteningTolerance, pointDescription); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1PrintControl.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1PrintControl.cs new file mode 100644 index 0000000..bad74c5 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1PrintControl.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1PrintControl +[Guid("2c1d867d-c290-41c8-ae7e-34a98702e9a5")] +[NativeTypeName("struct ID2D1PrintControl : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1PrintControl +{ + public static ref readonly Guid IID_ID2D1PrintControl + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7D, 0x86, 0x1D, 0x2C, + 0x90, 0xC2, + 0xC8, 0x41, + 0xAE, + 0x7E, + 0x34, + 0xA9, + 0x87, + 0x02, + 0xE9, + 0xA5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1PrintControl)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult AddPage(ID2D1CommandList* commandList, System.Drawing.SizeF pageSize, Com.IStream* pagePrintTicketStream, ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1PrintControl*)Unsafe.AsPointer(ref this), commandList, pageSize, pagePrintTicketStream, tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Close() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1PrintControl*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Properties.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Properties.cs new file mode 100644 index 0000000..314532b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Properties.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Properties +[Guid("483473d7-cd46-4f9d-9d3a-3112aa80159d")] +[NativeTypeName("struct ID2D1Properties : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1Properties +{ + public static ref readonly Guid IID_ID2D1Properties + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD7, 0x73, 0x34, 0x48, + 0x46, 0xCD, + 0x9D, 0x4F, + 0x9D, + 0x3A, + 0x31, + 0x12, + 0xAA, + 0x80, + 0x15, + 0x9D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Properties)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetPropertyCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Properties*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPropertyName(uint index, ushort* name, uint nameCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index, name, nameCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetPropertyNameLength(uint index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public PropertyType GetType(uint index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetPropertyIndex(ushort* name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1Properties*)Unsafe.AsPointer(ref this), name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1Properties*)Unsafe.AsPointer(ref this), name, type, data, dataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetValue(uint index, PropertyType type, byte* data, uint dataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index, type, data, dataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetValueByName(ushort* name, PropertyType type, byte* data, uint dataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1Properties*)Unsafe.AsPointer(ref this), name, type, data, dataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetValue(uint index, PropertyType type, byte* data, uint dataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index, type, data, dataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public uint GetValueSize(uint index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetSubProperties(uint index, ID2D1Properties** subProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index, subProperties); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RadialGradientBrush.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RadialGradientBrush.cs new file mode 100644 index 0000000..96d2946 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RadialGradientBrush.cs @@ -0,0 +1,197 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1RadialGradientBrush +[Guid("2cd906ac-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1RadialGradientBrush : ID2D1Brush")] +[NativeInheritance("ID2D1Brush")] +public unsafe partial struct ID2D1RadialGradientBrush +{ + public static ref readonly Guid IID_ID2D1RadialGradientBrush + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAC, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RadialGradientBrush)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetOpacity(float opacity) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), opacity); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public float GetOpacity() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetCenter(System.Drawing.PointF* center) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), center); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetGradientOriginOffset(System.Drawing.PointF* gradientOriginOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), gradientOriginOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void SetRadiusX(float radiusX) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), radiusX); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void SetRadiusY(float radiusY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), radiusY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public System.Drawing.PointF GetCenter() + { + System.Drawing.PointF result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public System.Drawing.PointF GetGradientOriginOffset() + { + System.Drawing.PointF result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public float GetRadiusX() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public float GetRadiusY() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void GetGradientStopCollection(ID2D1GradientStopCollection** gradientStopCollection) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1RadialGradientBrush*)Unsafe.AsPointer(ref this), gradientStopCollection); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RectangleGeometry.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RectangleGeometry.cs new file mode 100644 index 0000000..234ef83 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RectangleGeometry.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1RectangleGeometry +[Guid("2cd906a2-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1RectangleGeometry : ID2D1Geometry")] +[NativeInheritance("ID2D1Geometry")] +public unsafe partial struct ID2D1RectangleGeometry +{ + public static ref readonly Guid IID_ID2D1RectangleGeometry + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA2, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RectangleGeometry)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void GetRect(Common.RectF* rect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1RectangleGeometry*)Unsafe.AsPointer(ref this), rect); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RenderInfo.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RenderInfo.cs new file mode 100644 index 0000000..c6eb0f7 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RenderInfo.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1RenderInfo +[Guid("519ae1bd-d19a-420d-b849-364f594776b7")] +[NativeTypeName("struct ID2D1RenderInfo : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1RenderInfo +{ + public static ref readonly Guid IID_ID2D1RenderInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBD, 0xE1, 0x9A, 0x51, + 0x9A, 0xD1, + 0x0D, 0x42, + 0xB8, + 0x49, + 0x36, + 0x4F, + 0x59, + 0x47, + 0x76, + 0xB7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RenderInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetInputDescription(uint inputIndex, InputDescription* inputDescription) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1RenderInfo*)Unsafe.AsPointer(ref this), inputIndex, inputDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1RenderInfo*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetCached(Bool32 isCached) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1RenderInfo*)Unsafe.AsPointer(ref this), isCached); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetInstructionCountHint(uint instructionCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1RenderInfo*)Unsafe.AsPointer(ref this), instructionCount); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RenderTarget.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RenderTarget.cs new file mode 100644 index 0000000..73698c1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RenderTarget.cs @@ -0,0 +1,516 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1RenderTarget +[Guid("2cd90694-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1RenderTarget : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1RenderTarget +{ + public static ref readonly Guid IID_ID2D1RenderTarget + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x94, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RenderTarget)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBitmap(System.Drawing.Size size, void* srcData, uint pitch, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), size, srcData, pitch, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateBitmapFromWicBitmap(Graphics.Imaging.IWICBitmapSource* wicBitmapSource, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), wicBitmapSource, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateSharedBitmap(Guid* riid, void* data, BitmapProperties* bitmapProperties, ID2D1Bitmap** bitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), riid, data, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapBrush(ID2D1Bitmap* bitmap, BitmapBrushProperties* bitmapBrushProperties, BrushProperties* brushProperties, ID2D1BitmapBrush** bitmapBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSolidColorBrush(Common.ColorF* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), linearGradientBrushProperties, brushProperties, gradientStopCollection, linearGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateRadialGradientBrush(RadialGradientBrushProperties* radialGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1RadialGradientBrush** radialGradientBrush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), radialGradientBrushProperties, brushProperties, gradientStopCollection, radialGradientBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCompatibleRenderTarget(System.Drawing.SizeF* desiredSize, System.Drawing.Size* desiredPixelSize, Common.PixelFormat* desiredFormat, CompatibleRenderTargetOptions options, ID2D1BitmapRenderTarget** bitmapRenderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), desiredSize, desiredPixelSize, desiredFormat, options, bitmapRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateLayer(System.Drawing.SizeF* size, ID2D1Layer** layer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), size, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMesh(ID2D1Mesh** mesh) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), mesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void DrawLine(System.Drawing.PointF* point0, System.Drawing.PointF* point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DrawRectangle(Common.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void FillRectangle(Common.RectF* rect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), roundedRect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), ellipse, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Common.RectF* destinationRectangle, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Common.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Common.RectF* sourceRectangle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Common.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void DrawTextLayout(System.Drawing.PointF* origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void DrawGlyphRun(System.Drawing.PointF* baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetAntialiasMode(AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public AntialiasMode GetAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetTags(ulong tag1, ulong tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void GetTags(ulong* tag1, ulong* tag2) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void PopLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult Flush(ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void PushAxisAlignedClip(Common.RectF* clipRect, AntialiasMode antialiasMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void PopAxisAlignedClip() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void Clear(Common.ColorF* clearColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), clearColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void BeginDraw() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void SetDpi(float dpiX, float dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public System.Drawing.SizeF GetSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public System.Drawing.Size GetPixelSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public uint GetMaximumBitmapSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), renderTargetProperties); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Resource.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Resource.cs new file mode 100644 index 0000000..214d573 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Resource.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Resource +[Guid("2cd90691-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1Resource : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1Resource +{ + public static ref readonly Guid IID_ID2D1Resource + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x91, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Resource)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Resource*)Unsafe.AsPointer(ref this), factory); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ResourceTexture.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ResourceTexture.cs new file mode 100644 index 0000000..dd0d1f9 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1ResourceTexture.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1ResourceTexture +[Guid("688d15c3-02b0-438d-b13a-d1b44c32c39a")] +[NativeTypeName("struct ID2D1ResourceTexture : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1ResourceTexture +{ + public static ref readonly Guid IID_ID2D1ResourceTexture + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC3, 0x15, 0x8D, 0x68, + 0xB0, 0x02, + 0x8D, 0x43, + 0xB1, + 0x3A, + 0xD1, + 0xB4, + 0x4C, + 0x32, + 0xC3, + 0x9A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ResourceTexture)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Update(uint* minimumExtents, uint* maximimumExtents, uint* strides, uint dimensions, byte* data, uint dataCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ResourceTexture*)Unsafe.AsPointer(ref this), minimumExtents, maximimumExtents, strides, dimensions, data, dataCount); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RoundedRectangleGeometry.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RoundedRectangleGeometry.cs new file mode 100644 index 0000000..767c22a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1RoundedRectangleGeometry.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1RoundedRectangleGeometry +[Guid("2cd906a3-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1RoundedRectangleGeometry : ID2D1Geometry")] +[NativeInheritance("ID2D1Geometry")] +public unsafe partial struct ID2D1RoundedRectangleGeometry +{ + public static ref readonly Guid IID_ID2D1RoundedRectangleGeometry + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA3, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1RoundedRectangleGeometry)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void GetRoundedRect(RoundedRect* roundedRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1RoundedRectangleGeometry*)Unsafe.AsPointer(ref this), roundedRect); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SimplifiedGeometrySink.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SimplifiedGeometrySink.cs new file mode 100644 index 0000000..edc3e4b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SimplifiedGeometrySink.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D.Common; + +/// +/// ID2D1SimplifiedGeometrySink +[Guid("2cd9069e-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1SimplifiedGeometrySink : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1SimplifiedGeometrySink +{ + public static ref readonly Guid IID_ID2D1SimplifiedGeometrySink + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9E, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SimplifiedGeometrySink)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void SetFillMode(FillMode fillMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this), fillMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetSegmentFlags(PathSegment vertexFlags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this), vertexFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void BeginFigure(System.Drawing.PointF* startPoint, FigureBegin figureBegin) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this), startPoint, figureBegin); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void AddLines(System.Drawing.PointF** points, uint pointsCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this), points, pointsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void AddBeziers(BezierSegment* beziers, uint beziersCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this), beziers, beziersCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void EndFigure(FigureEnd figureEnd) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this), figureEnd); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Close() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SimplifiedGeometrySink*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SolidColorBrush.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SolidColorBrush.cs new file mode 100644 index 0000000..faddfff --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SolidColorBrush.cs @@ -0,0 +1,140 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1SolidColorBrush +[Guid("2cd906a9-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1SolidColorBrush : ID2D1Brush")] +[NativeInheritance("ID2D1Brush")] +public unsafe partial struct ID2D1SolidColorBrush +{ + public static ref readonly Guid IID_ID2D1SolidColorBrush + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA9, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SolidColorBrush)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetOpacity(float opacity) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this), opacity); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public float GetOpacity() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetColor(Common.ColorF* color) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this), color); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public Common.ColorF GetColor() + { + Common.ColorF result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SolidColorBrush*)Unsafe.AsPointer(ref this), &result); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SourceTransform.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SourceTransform.cs new file mode 100644 index 0000000..d02b244 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SourceTransform.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1SourceTransform +[Guid("db1800dd-0c34-4cf9-be90-31cc0a5653e1")] +[NativeTypeName("struct ID2D1SourceTransform : ID2D1Transform")] +[NativeInheritance("ID2D1Transform")] +public unsafe partial struct ID2D1SourceTransform +{ + public static ref readonly Guid IID_ID2D1SourceTransform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDD, 0x00, 0x18, 0xDB, + 0x34, 0x0C, + 0xF9, 0x4C, + 0xBE, + 0x90, + 0x31, + 0xCC, + 0x0A, + 0x56, + 0x53, + 0xE1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SourceTransform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SourceTransform*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult MapOutputRectToInputRects(RawRect* outputRect, RawRect* inputRects, uint inputRectsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SourceTransform*)Unsafe.AsPointer(ref this), outputRect, inputRects, inputRectsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult MapInputRectsToOutputRect(RawRect* inputRects, RawRect* inputOpaqueSubRects, uint inputRectCount, RawRect* outputRect, RawRect* outputOpaqueSubRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SourceTransform*)Unsafe.AsPointer(ref this), inputRects, inputOpaqueSubRects, inputRectCount, outputRect, outputOpaqueSubRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult MapInvalidRect(uint inputIndex, RawRect* invalidInputRect, RawRect* invalidOutputRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SourceTransform*)Unsafe.AsPointer(ref this), inputIndex, invalidInputRect, invalidOutputRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetRenderInfo(ID2D1RenderInfo* renderInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SourceTransform*)Unsafe.AsPointer(ref this), renderInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Draw(ID2D1Bitmap1* target, RawRect* drawRect, System.Drawing.Point* targetOrigin) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SourceTransform*)Unsafe.AsPointer(ref this), target, drawRect, targetOrigin); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SpriteBatch.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SpriteBatch.cs new file mode 100644 index 0000000..ab52394 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SpriteBatch.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1SpriteBatch +[Guid("4dc583bf-3a10-438a-8722-e9765224f1f1")] +[NativeTypeName("struct ID2D1SpriteBatch : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1SpriteBatch +{ + public static ref readonly Guid IID_ID2D1SpriteBatch + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBF, 0x83, 0xC5, 0x4D, + 0x10, 0x3A, + 0x8A, 0x43, + 0x87, + 0x22, + 0xE9, + 0x76, + 0x52, + 0x24, + 0xF1, + 0xF1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SpriteBatch)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SpriteBatch*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult AddSprites(uint spriteCount, Common.RectF* destinationRectangles, Common.RectU* sourceRectangles, Common.ColorF* colors, Matrix3x2* transforms, uint destinationRectanglesStride, uint sourceRectanglesStride, uint colorsStride, uint transformsStride) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SpriteBatch*)Unsafe.AsPointer(ref this), spriteCount, destinationRectangles, sourceRectangles, colors, transforms, destinationRectanglesStride, sourceRectanglesStride, colorsStride, transformsStride); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetSprites(uint startIndex, uint spriteCount, Common.RectF* destinationRectangles, Common.RectU* sourceRectangles, Common.ColorF* colors, Matrix3x2* transforms, uint destinationRectanglesStride, uint sourceRectanglesStride, uint colorsStride, uint transformsStride) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SpriteBatch*)Unsafe.AsPointer(ref this), startIndex, spriteCount, destinationRectangles, sourceRectangles, colors, transforms, destinationRectanglesStride, sourceRectanglesStride, colorsStride, transformsStride); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetSprites(uint startIndex, uint spriteCount, Common.RectF* destinationRectangles, Common.RectU* sourceRectangles, Common.ColorF* colors, Matrix3x2** transforms) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SpriteBatch*)Unsafe.AsPointer(ref this), startIndex, spriteCount, destinationRectangles, sourceRectangles, colors, transforms); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetSpriteCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SpriteBatch*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void Clear() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SpriteBatch*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1StrokeStyle.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1StrokeStyle.cs new file mode 100644 index 0000000..4308fe2 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1StrokeStyle.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1StrokeStyle +[Guid("2cd9069d-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1StrokeStyle : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1StrokeStyle +{ + public static ref readonly Guid IID_ID2D1StrokeStyle + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9D, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1StrokeStyle)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public CapStyle GetStartCap() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public CapStyle GetEndCap() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public CapStyle GetDashCap() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public float GetMiterLimit() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public LineJoin GetLineJoin() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public float GetDashOffset() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public DashStyle GetDashStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public uint GetDashesCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void GetDashes(float* dashes, uint dashesCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this), dashes, dashesCount); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1StrokeStyle1.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1StrokeStyle1.cs new file mode 100644 index 0000000..6f7d457 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1StrokeStyle1.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1StrokeStyle1 +[Guid("10a72a66-e91c-43f4-993f-ddf4b82b0b4a")] +[NativeTypeName("struct ID2D1StrokeStyle1 : ID2D1StrokeStyle")] +[NativeInheritance("ID2D1StrokeStyle")] +public unsafe partial struct ID2D1StrokeStyle1 +{ + public static ref readonly Guid IID_ID2D1StrokeStyle1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x66, 0x2A, 0xA7, 0x10, + 0x1C, 0xE9, + 0xF4, 0x43, + 0x99, + 0x3F, + 0xDD, + 0xF4, + 0xB8, + 0x2B, + 0x0B, + 0x4A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1StrokeStyle1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public CapStyle GetStartCap() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public CapStyle GetEndCap() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public CapStyle GetDashCap() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public float GetMiterLimit() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public LineJoin GetLineJoin() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public float GetDashOffset() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public DashStyle GetDashStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public uint GetDashesCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void GetDashes(float* dashes, uint dashesCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this), dashes, dashesCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public StrokeTransformType GetStrokeTransformType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1StrokeStyle1*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgAttribute.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgAttribute.cs new file mode 100644 index 0000000..d1c385a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgAttribute.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1SvgAttribute +[Guid("c9cdb0dd-f8c9-4e70-b7c2-301c80292c5e")] +[NativeTypeName("struct ID2D1SvgAttribute : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1SvgAttribute +{ + public static ref readonly Guid IID_ID2D1SvgAttribute + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDD, 0xB0, 0xCD, 0xC9, + 0xC9, 0xF8, + 0x70, 0x4E, + 0xB7, + 0xC2, + 0x30, + 0x1C, + 0x80, + 0x29, + 0x2C, + 0x5E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgAttribute)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgAttribute*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetElement(ID2D1SvgElement** element) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgAttribute*)Unsafe.AsPointer(ref this), element); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult Clone(ID2D1SvgAttribute** attribute) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgAttribute*)Unsafe.AsPointer(ref this), attribute); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgDocument.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgDocument.cs new file mode 100644 index 0000000..d64829e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgDocument.cs @@ -0,0 +1,179 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1SvgDocument +[Guid("86b88e4d-afa4-4d7b-88e4-68a51c4a0aec")] +[NativeTypeName("struct ID2D1SvgDocument : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1SvgDocument +{ + public static ref readonly Guid IID_ID2D1SvgDocument + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x8E, 0xB8, 0x86, + 0xA4, 0xAF, + 0x7B, 0x4D, + 0x88, + 0xE4, + 0x68, + 0xA5, + 0x1C, + 0x4A, + 0x0A, + 0xEC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgDocument)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetViewportSize(System.Drawing.SizeF viewportSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), viewportSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public System.Drawing.SizeF GetViewportSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetRoot(ID2D1SvgElement* root) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), root); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetRoot(ID2D1SvgElement** root) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), root); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult FindElementById(ushort* id, ID2D1SvgElement** svgElement) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), id, svgElement); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Serialize(Com.IStream* outputXmlStream, ID2D1SvgElement* subtree) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), outputXmlStream, subtree); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Deserialize(Com.IStream* inputXmlStream, ID2D1SvgElement** subtree) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), inputXmlStream, subtree); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreatePaint(SvgPaintType paintType, Common.ColorF* color, ushort* id, ID2D1SvgPaint** paint) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), paintType, color, id, paint); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateStrokeDashArray(SvgLength* dashes, uint dashesCount, ID2D1SvgStrokeDashArray** strokeDashArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), dashes, dashesCount, strokeDashArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreatePointCollection(System.Drawing.PointF** points, uint pointsCount, ID2D1SvgPointCollection** pointCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), points, pointsCount, pointCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreatePathData(float* segmentData, uint segmentDataCount, SvgPathCommand* commands, uint commandsCount, ID2D1SvgPathData** pathData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1SvgDocument*)Unsafe.AsPointer(ref this), segmentData, segmentDataCount, commands, commandsCount, pathData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgElement.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgElement.cs new file mode 100644 index 0000000..cd72336 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgElement.cs @@ -0,0 +1,331 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1SvgElement +[Guid("ac7b67a6-183e-49c1-a823-0ebe40b0db29")] +[NativeTypeName("struct ID2D1SvgElement : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1SvgElement +{ + public static ref readonly Guid IID_ID2D1SvgElement + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA6, 0x67, 0x7B, 0xAC, + 0x3E, 0x18, + 0xC1, 0x49, + 0xA8, + 0x23, + 0x0E, + 0xBE, + 0x40, + 0xB0, + 0xDB, + 0x29 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgElement)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetDocument(ID2D1SvgDocument** document) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), document); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetTagName(ushort* name, uint nameCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public uint GetTagNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsTextContent() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetParent(ID2D1SvgElement** parent) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), parent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public Bool32 HasChildren() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void GetFirstChild(ID2D1SvgElement** child) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), child); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void GetLastChild(ID2D1SvgElement** child) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), child); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetPreviousChild(ID2D1SvgElement* referenceChild, ID2D1SvgElement** previousChild) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), referenceChild, previousChild); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetNextChild(ID2D1SvgElement* referenceChild, ID2D1SvgElement** nextChild) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), referenceChild, nextChild); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult InsertChildBefore(ID2D1SvgElement* newChild, ID2D1SvgElement* referenceChild) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), newChild, referenceChild); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult AppendChild(ID2D1SvgElement* newChild) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), newChild); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult ReplaceChild(ID2D1SvgElement* newChild, ID2D1SvgElement* oldChild) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), newChild, oldChild); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult RemoveChild(ID2D1SvgElement* oldChild) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), oldChild); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateChild(ushort* tagName, ID2D1SvgElement** newChild) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), tagName, newChild); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public Bool32 IsAttributeSpecified(ushort* name, Bool32* inherited) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, inherited); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetSpecifiedAttributeCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetSpecifiedAttributeName(uint index, ushort* name, uint nameCount, Bool32* inherited) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), index, name, nameCount, inherited); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult GetSpecifiedAttributeNameLength(uint index, uint* nameLength, Bool32* inherited) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), index, nameLength, inherited); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult RemoveAttribute(ushort* name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult SetTextValue(ushort* name, uint nameCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetTextValue(ushort* name, uint nameCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public uint GetTextValueLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult SetAttributeValue(ushort* name, ID2D1SvgAttribute* value) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, value); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetAttributeValue(ushort* name, SvgAttributePodType type, void* value, uint valueSizeInBytes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult SetAttributeValue(ushort* name, SvgAttributeStringType type, ushort* value) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult GetAttributeValue(ushort* name, Guid* riid, void** value) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, riid, value); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult GetAttributeValue(ushort* name, SvgAttributePodType type, void* value, uint valueSizeInBytes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult GetAttributeValue(ushort* name, SvgAttributeStringType type, ushort* value, uint valueCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult GetAttributeValueLength(ushort* name, SvgAttributeStringType type, uint* valueLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, valueLength); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgGlyphStyle.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgGlyphStyle.cs new file mode 100644 index 0000000..4be3c18 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgGlyphStyle.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1SvgGlyphStyle +[Guid("af671749-d241-4db8-8e41-dcc2e5c1a438")] +[NativeTypeName("struct ID2D1SvgGlyphStyle : ID2D1Resource")] +[NativeInheritance("ID2D1Resource")] +public unsafe partial struct ID2D1SvgGlyphStyle +{ + public static ref readonly Guid IID_ID2D1SvgGlyphStyle + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x17, 0x67, 0xAF, + 0x41, 0xD2, + 0xB8, 0x4D, + 0x8E, + 0x41, + 0xDC, + 0xC2, + 0xE5, + 0xC1, + 0xA4, + 0x38 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgGlyphStyle)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgGlyphStyle*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetFill(ID2D1Brush* brush) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgGlyphStyle*)Unsafe.AsPointer(ref this), brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void GetFill(ID2D1Brush** brush) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgGlyphStyle*)Unsafe.AsPointer(ref this), brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetStroke(ID2D1Brush* brush, float strokeWidth, float* dashes, uint dashesCount, float dashOffset) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgGlyphStyle*)Unsafe.AsPointer(ref this), brush, strokeWidth, dashes, dashesCount, dashOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetStrokeDashesCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgGlyphStyle*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetStroke(ID2D1Brush** brush, float* strokeWidth, float* dashes, uint dashesCount, float* dashOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgGlyphStyle*)Unsafe.AsPointer(ref this), brush, strokeWidth, dashes, dashesCount, dashOffset); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgPaint.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgPaint.cs new file mode 100644 index 0000000..cde014a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgPaint.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1SvgPaint +[Guid("d59bab0a-68a2-455b-a5dc-9eb2854e2490")] +[NativeTypeName("struct ID2D1SvgPaint : ID2D1SvgAttribute")] +[NativeInheritance("ID2D1SvgAttribute")] +public unsafe partial struct ID2D1SvgPaint +{ + public static ref readonly Guid IID_ID2D1SvgPaint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0A, 0xAB, 0x9B, 0xD5, + 0xA2, 0x68, + 0x5B, 0x45, + 0xA5, + 0xDC, + 0x9E, + 0xB2, + 0x85, + 0x4E, + 0x24, + 0x90 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgPaint)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetElement(ID2D1SvgElement** element) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), element); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult Clone(ID2D1SvgAttribute** attribute) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), attribute); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPaintType(SvgPaintType paintType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), paintType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public SvgPaintType GetPaintType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetColor(Common.ColorF* color) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), color); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void GetColor(Common.ColorF* color) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), color); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetId(ushort* id) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), id); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetId(ushort* id, uint idCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), id, idCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public uint GetIdLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgPathData.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgPathData.cs new file mode 100644 index 0000000..0e04cfa --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgPathData.cs @@ -0,0 +1,179 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1SvgPathData +[Guid("c095e4f4-bb98-43d6-9745-4d1b84ec9888")] +[NativeTypeName("struct ID2D1SvgPathData : ID2D1SvgAttribute")] +[NativeInheritance("ID2D1SvgAttribute")] +public unsafe partial struct ID2D1SvgPathData +{ + public static ref readonly Guid IID_ID2D1SvgPathData + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF4, 0xE4, 0x95, 0xC0, + 0x98, 0xBB, + 0xD6, 0x43, + 0x97, + 0x45, + 0x4D, + 0x1B, + 0x84, + 0xEC, + 0x98, + 0x88 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgPathData)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetElement(ID2D1SvgElement** element) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), element); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult Clone(ID2D1SvgAttribute** attribute) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), attribute); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult RemoveSegmentDataAtEnd(uint dataCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), dataCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult UpdateSegmentData(float* data, uint dataCount, uint startIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), data, dataCount, startIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetSegmentData(float* data, uint dataCount, uint startIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), data, dataCount, startIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public uint GetSegmentDataCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult RemoveCommandsAtEnd(uint commandsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), commandsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult UpdateCommands(SvgPathCommand* commands, uint commandsCount, uint startIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), commands, commandsCount, startIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetCommands(SvgPathCommand* commands, uint commandsCount, uint startIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), commands, commandsCount, startIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public uint GetCommandsCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreatePathGeometry(Common.FillMode fillMode, ID2D1PathGeometry1** pathGeometry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1SvgPathData*)Unsafe.AsPointer(ref this), fillMode, pathGeometry); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgPointCollection.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgPointCollection.cs new file mode 100644 index 0000000..9ebb5f2 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgPointCollection.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1SvgPointCollection +[Guid("9dbe4c0d-3572-4dd9-9825-5530813bb712")] +[NativeTypeName("struct ID2D1SvgPointCollection : ID2D1SvgAttribute")] +[NativeInheritance("ID2D1SvgAttribute")] +public unsafe partial struct ID2D1SvgPointCollection +{ + public static ref readonly Guid IID_ID2D1SvgPointCollection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0D, 0x4C, 0xBE, 0x9D, + 0x72, 0x35, + 0xD9, 0x4D, + 0x98, + 0x25, + 0x55, + 0x30, + 0x81, + 0x3B, + 0xB7, + 0x12 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgPointCollection)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetElement(ID2D1SvgElement** element) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this), element); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult Clone(ID2D1SvgAttribute** attribute) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this), attribute); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult RemovePointsAtEnd(uint pointsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this), pointsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult UpdatePoints(System.Drawing.PointF** points, uint pointsCount, uint startIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this), points, pointsCount, startIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetPoints(System.Drawing.PointF** points, uint pointsCount, uint startIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this), points, pointsCount, startIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public uint GetPointsCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SvgPointCollection*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgStrokeDashArray.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgStrokeDashArray.cs new file mode 100644 index 0000000..4f278aa --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1SvgStrokeDashArray.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1SvgStrokeDashArray +[Guid("f1c0ca52-92a3-4f00-b4ce-f35691efd9d9")] +[NativeTypeName("struct ID2D1SvgStrokeDashArray : ID2D1SvgAttribute")] +[NativeInheritance("ID2D1SvgAttribute")] +public unsafe partial struct ID2D1SvgStrokeDashArray +{ + public static ref readonly Guid IID_ID2D1SvgStrokeDashArray + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x52, 0xCA, 0xC0, 0xF1, + 0xA3, 0x92, + 0x00, 0x4F, + 0xB4, + 0xCE, + 0xF3, + 0x56, + 0x91, + 0xEF, + 0xD9, + 0xD9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1SvgStrokeDashArray)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetElement(ID2D1SvgElement** element) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), element); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult Clone(ID2D1SvgAttribute** attribute) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), attribute); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult RemoveDashesAtEnd(uint dashesCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), dashesCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult UpdateDashes(SvgLength* dashes, uint dashesCount, uint startIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), dashes, dashesCount, startIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult UpdateDashes(float* dashes, uint dashesCount, uint startIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), dashes, dashesCount, startIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetDashes(SvgLength* dashes, uint dashesCount, uint startIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), dashes, dashesCount, startIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDashes(float* dashes, uint dashesCount, uint startIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this), dashes, dashesCount, startIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public uint GetDashesCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1SvgStrokeDashArray*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TessellationSink.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TessellationSink.cs new file mode 100644 index 0000000..b9e164b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TessellationSink.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1TessellationSink +[Guid("2cd906c1-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1TessellationSink : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1TessellationSink +{ + public static ref readonly Guid IID_ID2D1TessellationSink + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC1, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TessellationSink)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void AddTriangles(Triangle* triangles, uint trianglesCount) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1TessellationSink*)Unsafe.AsPointer(ref this), triangles, trianglesCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Close() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1TessellationSink*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Transform.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Transform.cs new file mode 100644 index 0000000..fcdf95f --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1Transform.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Transform +[Guid("ef1a287d-342a-4f76-8fdb-da0d6ea9f92b")] +[NativeTypeName("struct ID2D1Transform : ID2D1TransformNode")] +[NativeInheritance("ID2D1TransformNode")] +public unsafe partial struct ID2D1Transform +{ + public static ref readonly Guid IID_ID2D1Transform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7D, 0x28, 0x1A, 0xEF, + 0x2A, 0x34, + 0x76, 0x4F, + 0x8F, + 0xDB, + 0xDA, + 0x0D, + 0x6E, + 0xA9, + 0xF9, + 0x2B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Transform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1Transform*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult MapOutputRectToInputRects(RawRect* outputRect, RawRect* inputRects, uint inputRectsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1Transform*)Unsafe.AsPointer(ref this), outputRect, inputRects, inputRectsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult MapInputRectsToOutputRect(RawRect* inputRects, RawRect* inputOpaqueSubRects, uint inputRectCount, RawRect* outputRect, RawRect* outputOpaqueSubRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1Transform*)Unsafe.AsPointer(ref this), inputRects, inputOpaqueSubRects, inputRectCount, outputRect, outputOpaqueSubRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult MapInvalidRect(uint inputIndex, RawRect* invalidInputRect, RawRect* invalidOutputRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1Transform*)Unsafe.AsPointer(ref this), inputIndex, invalidInputRect, invalidOutputRect); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformGraph.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformGraph.cs new file mode 100644 index 0000000..ac5e4f8 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformGraph.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1TransformGraph +[Guid("13d29038-c3e6-4034-9081-13b53a417992")] +[NativeTypeName("struct ID2D1TransformGraph : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1TransformGraph +{ + public static ref readonly Guid IID_ID2D1TransformGraph + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x38, 0x90, 0xD2, 0x13, + 0xE6, 0xC3, + 0x34, 0x40, + 0x90, + 0x81, + 0x13, + 0xB5, + 0x3A, + 0x41, + 0x79, + 0x92 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TransformGraph)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetSingleTransformNode(ID2D1TransformNode* node) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), node); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult AddNode(ID2D1TransformNode* node) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), node); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult RemoveNode(ID2D1TransformNode* node) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), node); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetOutputNode(ID2D1TransformNode* node) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), node); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult ConnectNode(ID2D1TransformNode* fromNode, ID2D1TransformNode* toNode, uint toNodeInputIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), fromNode, toNode, toNodeInputIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult ConnectToEffectInput(uint toEffectInputIndex, ID2D1TransformNode* node, uint toNodeInputIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), toEffectInputIndex, node, toNodeInputIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void Clear() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult SetPassthroughGraph(uint effectInputIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1TransformGraph*)Unsafe.AsPointer(ref this), effectInputIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformNode.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformNode.cs new file mode 100644 index 0000000..2a47746 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformNode.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1TransformNode +[Guid("b2efe1e7-729f-4102-949f-505fa21bf666")] +[NativeTypeName("struct ID2D1TransformNode : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1TransformNode +{ + public static ref readonly Guid IID_ID2D1TransformNode + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE7, 0xE1, 0xEF, 0xB2, + 0x9F, 0x72, + 0x02, 0x41, + 0x94, + 0x9F, + 0x50, + 0x5F, + 0xA2, + 0x1B, + 0xF6, + 0x66 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TransformNode)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1TransformNode*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformedGeometry.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformedGeometry.cs new file mode 100644 index 0000000..b88fa96 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformedGeometry.cs @@ -0,0 +1,211 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1TransformedGeometry +[Guid("2cd906bb-12e2-11dc-9fed-001143a055f9")] +[NativeTypeName("struct ID2D1TransformedGeometry : ID2D1Geometry")] +[NativeInheritance("ID2D1Geometry")] +public unsafe partial struct ID2D1TransformedGeometry +{ + public static ref readonly Guid IID_ID2D1TransformedGeometry + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBB, 0x06, 0xD9, 0x2C, + 0xE2, 0x12, + 0xDC, 0x11, + 0x9F, + 0xED, + 0x00, + 0x11, + 0x43, + 0xA0, + 0x55, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TransformedGeometry)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetBounds(Matrix3x2* worldTransform, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), worldTransform, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetWidenedBounds(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.RectF* bounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult StrokeContainsPoint(System.Drawing.PointF* point, float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult FillContainsPoint(System.Drawing.PointF* point, Matrix3x2* worldTransform, float flatteningTolerance, Bool32* contains) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CompareWithGeometry(ID2D1Geometry* inputGeometry, Matrix3x2* inputGeometryTransform, float flatteningTolerance, GeometryRelation* relation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), inputGeometry, inputGeometryTransform, flatteningTolerance, relation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Simplify(GeometrySimplificationOption simplificationOption, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), simplificationOption, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Tessellate(Matrix3x2* worldTransform, float flatteningTolerance, ID2D1TessellationSink* tessellationSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, tessellationSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CombineWithGeometry(ID2D1Geometry* inputGeometry, CombineMode combineMode, Matrix3x2* inputGeometryTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), inputGeometry, combineMode, inputGeometryTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Outline(Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ComputeArea(Matrix3x2* worldTransform, float flatteningTolerance, float* area) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, area); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ComputeLength(Matrix3x2* worldTransform, float flatteningTolerance, float* length) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), worldTransform, flatteningTolerance, length); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult ComputePointAtLength(float length, Matrix3x2* worldTransform, float flatteningTolerance, System.Drawing.PointF** point, System.Drawing.PointF** unitTangentVector) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), length, worldTransform, flatteningTolerance, point, unitTangentVector); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult Widen(float strokeWidth, ID2D1StrokeStyle* strokeStyle, Matrix3x2* worldTransform, float flatteningTolerance, Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void GetSourceGeometry(ID2D1Geometry** sourceGeometry) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), sourceGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void GetTransform(Matrix3x2** transform) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID2D1TransformedGeometry*)Unsafe.AsPointer(ref this), transform); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformedImageSource.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformedImageSource.cs new file mode 100644 index 0000000..a2f0dc4 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1TransformedImageSource.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1TransformedImageSource +[Guid("7f1f79e5-2796-416c-8f55-700f911445e5")] +[NativeTypeName("struct ID2D1TransformedImageSource : ID2D1Image")] +[NativeInheritance("ID2D1Image")] +public unsafe partial struct ID2D1TransformedImageSource +{ + public static ref readonly Guid IID_ID2D1TransformedImageSource + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE5, 0x79, 0x1F, 0x7F, + 0x96, 0x27, + 0x6C, 0x41, + 0x8F, + 0x55, + 0x70, + 0x0F, + 0x91, + 0x14, + 0x45, + 0xE5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1TransformedImageSource)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1TransformedImageSource*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetSource(ID2D1ImageSource** imageSource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1TransformedImageSource*)Unsafe.AsPointer(ref this), imageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void GetProperties(TransformedImageSourceProperties* properties) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1TransformedImageSource*)Unsafe.AsPointer(ref this), properties); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1VertexBuffer.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1VertexBuffer.cs new file mode 100644 index 0000000..43aa49e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D/ID2D1VertexBuffer.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1VertexBuffer +[Guid("9b8b1336-00a5-4668-92b7-ced5d8bf9b7b")] +[NativeTypeName("struct ID2D1VertexBuffer : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID2D1VertexBuffer +{ + public static ref readonly Guid IID_ID2D1VertexBuffer + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x36, 0x13, 0x8B, 0x9B, + 0xA5, 0x00, + 0x68, 0x46, + 0x92, + 0xB7, + 0xCE, + 0xD5, + 0xD8, + 0xBF, + 0x9B, + 0x7B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1VertexBuffer)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Map(byte** data, uint bufferSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1VertexBuffer*)Unsafe.AsPointer(ref this), data, bufferSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Unmap() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1VertexBuffer*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Dxc.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D.Dxc.cs index 2c36e62..753ce7f 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D.Dxc.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D.Dxc.cs @@ -436,2578 +436,6 @@ public partial struct DxcArgPair #endregion Structs #region COM Types -/// -/// IDxcBlob -[Guid("8ba5fb08-5195-40e2-ac58-0d989c3a0102")] -[NativeTypeName("struct IDxcBlob : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcBlob -{ - public static ref readonly Guid IID_IDxcBlob - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x08, 0xFB, 0xA5, 0x8B, - 0x95, 0x51, - 0xE2, 0x40, - 0xAC, - 0x58, - 0x0D, - 0x98, - 0x9C, - 0x3A, - 0x01, - 0x02 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlob)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void* GetBufferPointer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcBlob*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public nuint GetBufferSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcBlob*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDxcBlobEncoding -[Guid("7241d424-2646-4191-97c0-98e96e42fc68")] -[NativeTypeName("struct IDxcBlobEncoding : IDxcBlob")] -[NativeInheritance("IDxcBlob")] -public unsafe partial struct IDxcBlobEncoding -{ - public static ref readonly Guid IID_IDxcBlobEncoding - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xD4, 0x41, 0x72, - 0x46, 0x26, - 0x91, 0x41, - 0x97, - 0xC0, - 0x98, - 0xE9, - 0x6E, - 0x42, - 0xFC, - 0x68 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlobEncoding)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void* GetBufferPointer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcBlobEncoding*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public nuint GetBufferSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcBlobEncoding*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetEncoding(Bool32* pKnown, DxcCp* pCodePage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcBlobEncoding*)Unsafe.AsPointer(ref this), pKnown, pCodePage); - } -} - -/// -/// IDxcBlobUtf16 -[Guid("a3f84eab-0faa-497e-a39c-ee6ed60b2d84")] -[NativeTypeName("struct IDxcBlobUtf16 : IDxcBlobEncoding")] -[NativeInheritance("IDxcBlobEncoding")] -public unsafe partial struct IDxcBlobUtf16 -{ - public static ref readonly Guid IID_IDxcBlobUtf16 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAB, 0x4E, 0xF8, 0xA3, - 0xAA, 0x0F, - 0x7E, 0x49, - 0xA3, - 0x9C, - 0xEE, - 0x6E, - 0xD6, - 0x0B, - 0x2D, - 0x84 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlobUtf16)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetEncoding(Bool32* pKnown, DxcCp* pCodePage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this), pKnown, pCodePage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void* GetBufferPointer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public nuint GetBufferSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ushort* GetStringPointer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public nuint GetStringLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDxcBlobUtf8 -[Guid("3da636c9-ba71-4024-a301-30cbf125305b")] -[NativeTypeName("struct IDxcBlobUtf8 : IDxcBlobEncoding")] -[NativeInheritance("IDxcBlobEncoding")] -public unsafe partial struct IDxcBlobUtf8 -{ - public static ref readonly Guid IID_IDxcBlobUtf8 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC9, 0x36, 0xA6, 0x3D, - 0x71, 0xBA, - 0x24, 0x40, - 0xA3, - 0x01, - 0x30, - 0xCB, - 0xF1, - 0x25, - 0x30, - 0x5B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlobUtf8)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetEncoding(Bool32* pKnown, DxcCp* pCodePage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcBlobUtf8*)Unsafe.AsPointer(ref this), pKnown, pCodePage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void* GetBufferPointer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcBlobUtf8*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public nuint GetBufferSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcBlobUtf8*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public sbyte* GetStringPointer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcBlobUtf8*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public nuint GetStringLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcBlobUtf8*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDxcIncludeHandler -[Guid("7f61fc7d-950d-467f-b3e3-3c02fb49187c")] -[NativeTypeName("struct IDxcIncludeHandler : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcIncludeHandler -{ - public static ref readonly Guid IID_IDxcIncludeHandler - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7D, 0xFC, 0x61, 0x7F, - 0x0D, 0x95, - 0x7F, 0x46, - 0xB3, - 0xE3, - 0x3C, - 0x02, - 0xFB, - 0x49, - 0x18, - 0x7C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcIncludeHandler)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult LoadSource(ushort* pFilename, IDxcBlob** ppIncludeSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcIncludeHandler*)Unsafe.AsPointer(ref this), pFilename, ppIncludeSource); - } -} - -/// -/// IDxcCompilerArgs -[Guid("73effe2a-70dc-45f8-9690-eff64c02429d")] -[NativeTypeName("struct IDxcCompilerArgs : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcCompilerArgs -{ - public static ref readonly Guid IID_IDxcCompilerArgs - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2A, 0xFE, 0xEF, 0x73, - 0xDC, 0x70, - 0xF8, 0x45, - 0x96, - 0x90, - 0xEF, - 0xF6, - 0x4C, - 0x02, - 0x42, - 0x9D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcCompilerArgs)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public ushort** GetArguments() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult AddArguments(ushort** pArguments, uint argCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this), pArguments, argCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult AddArgumentsUTF8(sbyte** pArguments, uint argCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this), pArguments, argCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult AddDefines(DxcDefine* pDefines, uint defineCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this), pDefines, defineCount); - } -} - -/// -/// IDxcLibrary -[Guid("e5204dc7-d18c-4c3c-bdfb-851673980fe7")] -[NativeTypeName("struct IDxcLibrary : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcLibrary -{ - public static ref readonly Guid IID_IDxcLibrary - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC7, 0x4D, 0x20, 0xE5, - 0x8C, 0xD1, - 0x3C, 0x4C, - 0xBD, - 0xFB, - 0x85, - 0x16, - 0x73, - 0x98, - 0x0F, - 0xE7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcLibrary)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetMalloc(Com.IMalloc* pMalloc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pMalloc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateBlobFromBlob(IDxcBlob* pBlob, uint offset, uint length, IDxcBlob** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pBlob, offset, length, ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateBlobFromFile(ushort* pFileName, DxcCp* codePage, IDxcBlobEncoding** pBlobEncoding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pFileName, codePage, pBlobEncoding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateBlobWithEncodingFromPinned(void* pText, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pText, size, codePage, pBlobEncoding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateBlobWithEncodingOnHeapCopy(void* pText, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pText, size, codePage, pBlobEncoding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateBlobWithEncodingOnMalloc(void* pText, Com.IMalloc* pIMalloc, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pText, pIMalloc, size, codePage, pBlobEncoding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateIncludeHandler(IDxcIncludeHandler** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDxcLibrary*)Unsafe.AsPointer(ref this), ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateStreamFromBlobReadOnly(IDxcBlob* pBlob, Com.IStream** ppStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pBlob, ppStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetBlobAsUtf8(IDxcBlob* pBlob, IDxcBlobEncoding** pBlobEncoding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pBlob, pBlobEncoding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetBlobAsUtf16(IDxcBlob* pBlob, IDxcBlobEncoding** pBlobEncoding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pBlob, pBlobEncoding); - } -} - -/// -/// IDxcOperationResult -[Guid("cedb484a-d4e9-445a-b991-ca21ca157dc2")] -[NativeTypeName("struct IDxcOperationResult : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcOperationResult -{ - public static ref readonly Guid IID_IDxcOperationResult - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4A, 0x48, 0xDB, 0xCE, - 0xE9, 0xD4, - 0x5A, 0x44, - 0xB9, - 0x91, - 0xCA, - 0x21, - 0xCA, - 0x15, - 0x7D, - 0xC2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcOperationResult)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetStatus(HResult* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcOperationResult*)Unsafe.AsPointer(ref this), pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetResult(IDxcBlob** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcOperationResult*)Unsafe.AsPointer(ref this), ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetErrorBuffer(IDxcBlobEncoding** ppErrors) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcOperationResult*)Unsafe.AsPointer(ref this), ppErrors); - } -} - -/// -/// IDxcCompiler -[Guid("8c210bf3-011f-4422-8d70-6f9acb8db617")] -[NativeTypeName("struct IDxcCompiler : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcCompiler -{ - public static ref readonly Guid IID_IDxcCompiler - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF3, 0x0B, 0x21, 0x8C, - 0x1F, 0x01, - 0x22, 0x44, - 0x8D, - 0x70, - 0x6F, - 0x9A, - 0xCB, - 0x8D, - 0xB6, - 0x17 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcCompiler)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Compile(IDxcBlob* pSource, ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcCompiler*)Unsafe.AsPointer(ref this), pSource, pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Preprocess(IDxcBlob* pSource, ushort* pSourceName, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcCompiler*)Unsafe.AsPointer(ref this), pSource, pSourceName, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult Disassemble(IDxcBlob* pSource, IDxcBlobEncoding** ppDisassembly) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcCompiler*)Unsafe.AsPointer(ref this), pSource, ppDisassembly); - } -} - -/// -/// IDxcCompiler2 -[Guid("a005a9d9-b8bb-4594-b5c9-0e633bec4d37")] -[NativeTypeName("struct IDxcCompiler2 : IDxcCompiler")] -[NativeInheritance("IDxcCompiler")] -public unsafe partial struct IDxcCompiler2 -{ - public static ref readonly Guid IID_IDxcCompiler2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD9, 0xA9, 0x05, 0xA0, - 0xBB, 0xB8, - 0x94, 0x45, - 0xB5, - 0xC9, - 0x0E, - 0x63, - 0x3B, - 0xEC, - 0x4D, - 0x37 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcCompiler2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Compile(IDxcBlob* pSource, ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Preprocess(IDxcBlob* pSource, ushort* pSourceName, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, pSourceName, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult Disassemble(IDxcBlob* pSource, IDxcBlobEncoding** ppDisassembly) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, ppDisassembly); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CompileWithDebug(IDxcBlob* pSource, ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult, ushort** ppDebugBlobName, IDxcBlob** ppDebugBlob) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult, ppDebugBlobName, ppDebugBlob); - } -} - -/// -/// IDxcLinker -[Guid("f1b5be2a-62dd-4327-a1c2-42ac1e1e78e6")] -[NativeTypeName("struct IDxcLinker : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcLinker -{ - public static ref readonly Guid IID_IDxcLinker - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2A, 0xBE, 0xB5, 0xF1, - 0xDD, 0x62, - 0x27, 0x43, - 0xA1, - 0xC2, - 0x42, - 0xAC, - 0x1E, - 0x1E, - 0x78, - 0xE6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcLinker)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult RegisterLibrary(ushort* pLibName, IDxcBlob* pLib) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcLinker*)Unsafe.AsPointer(ref this), pLibName, pLib); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Link(ushort* pEntryName, ushort* pTargetProfile, ushort** pLibNames, uint libCount, ushort** pArguments, uint argCount, IDxcOperationResult** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcLinker*)Unsafe.AsPointer(ref this), pEntryName, pTargetProfile, pLibNames, libCount, pArguments, argCount, ppResult); - } -} - -/// -/// IDxcUtils -[Guid("4605c4cb-2019-492a-ada4-65f20bb7d67f")] -[NativeTypeName("struct IDxcUtils : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcUtils -{ - public static ref readonly Guid IID_IDxcUtils - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCB, 0xC4, 0x05, 0x46, - 0x19, 0x20, - 0x2A, 0x49, - 0xAD, - 0xA4, - 0x65, - 0xF2, - 0x0B, - 0xB7, - 0xD6, - 0x7F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcUtils)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateBlobFromBlob(IDxcBlob* pBlob, uint offset, uint length, IDxcBlob** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcUtils*)Unsafe.AsPointer(ref this), pBlob, offset, length, ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateBlobFromPinned(void* pData, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcUtils*)Unsafe.AsPointer(ref this), pData, size, codePage, pBlobEncoding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult MoveToBlob(void* pData, Com.IMalloc* pIMalloc, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcUtils*)Unsafe.AsPointer(ref this), pData, pIMalloc, size, codePage, pBlobEncoding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateBlob(void* pData, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcUtils*)Unsafe.AsPointer(ref this), pData, size, codePage, pBlobEncoding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult LoadFile(ushort* pFileName, DxcCp* pCodePage, IDxcBlobEncoding** pBlobEncoding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcUtils*)Unsafe.AsPointer(ref this), pFileName, pCodePage, pBlobEncoding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateReadOnlyStreamFromBlob(IDxcBlob* pBlob, Com.IStream** ppStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDxcUtils*)Unsafe.AsPointer(ref this), pBlob, ppStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateDefaultIncludeHandler(IDxcIncludeHandler** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDxcUtils*)Unsafe.AsPointer(ref this), ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetBlobAsUtf8(IDxcBlob* pBlob, IDxcBlobUtf8** pBlobEncoding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDxcUtils*)Unsafe.AsPointer(ref this), pBlob, pBlobEncoding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetBlobAsUtf16(IDxcBlob* pBlob, IDxcBlobUtf16** pBlobEncoding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDxcUtils*)Unsafe.AsPointer(ref this), pBlob, pBlobEncoding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetDxilContainerPart(DxcBuffer* pShader, uint DxcPart, void** ppPartData, uint* pPartSizeInBytes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDxcUtils*)Unsafe.AsPointer(ref this), pShader, DxcPart, ppPartData, pPartSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateReflection(DxcBuffer* pData, Guid* iid, void** ppvReflection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDxcUtils*)Unsafe.AsPointer(ref this), pData, iid, ppvReflection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult BuildArguments(ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcCompilerArgs** ppArgs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDxcUtils*)Unsafe.AsPointer(ref this), pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, ppArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetPDBContents(IDxcBlob* pPDBBlob, IDxcBlob** ppHash, IDxcBlob** ppContainer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDxcUtils*)Unsafe.AsPointer(ref this), pPDBBlob, ppHash, ppContainer); - } -} - -/// -/// IDxcResult -[Guid("58346cda-dde7-4497-9461-6f87af5e0659")] -[NativeTypeName("struct IDxcResult : IDxcOperationResult")] -[NativeInheritance("IDxcOperationResult")] -public unsafe partial struct IDxcResult -{ - public static ref readonly Guid IID_IDxcResult - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDA, 0x6C, 0x34, 0x58, - 0xE7, 0xDD, - 0x97, 0x44, - 0x94, - 0x61, - 0x6F, - 0x87, - 0xAF, - 0x5E, - 0x06, - 0x59 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcResult)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetStatus(HResult* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcResult*)Unsafe.AsPointer(ref this), pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetResult(IDxcBlob** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcResult*)Unsafe.AsPointer(ref this), ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetErrorBuffer(IDxcBlobEncoding** ppErrors) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcResult*)Unsafe.AsPointer(ref this), ppErrors); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public Bool32 HasOutput(DxcOutKind dxcOutKind) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcResult*)Unsafe.AsPointer(ref this), dxcOutKind); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetOutput(DxcOutKind dxcOutKind, Guid* iid, void** ppvObject, IDxcBlobUtf16** ppOutputName) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcResult*)Unsafe.AsPointer(ref this), dxcOutKind, iid, ppvObject, ppOutputName); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public uint GetNumOutputs() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDxcResult*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public DxcOutKind GetOutputByIndex(uint Index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDxcResult*)Unsafe.AsPointer(ref this), Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public DxcOutKind PrimaryOutput() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDxcResult*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDxcExtraOutputs -[Guid("319b37a2-a5c2-494a-a5de-4801b2faf989")] -[NativeTypeName("struct IDxcExtraOutputs : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcExtraOutputs -{ - public static ref readonly Guid IID_IDxcExtraOutputs - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA2, 0x37, 0x9B, 0x31, - 0xC2, 0xA5, - 0x4A, 0x49, - 0xA5, - 0xDE, - 0x48, - 0x01, - 0xB2, - 0xFA, - 0xF9, - 0x89 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcExtraOutputs)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetOutputCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcExtraOutputs*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetOutput(uint uIndex, Guid* iid, void** ppvObject, IDxcBlobUtf16** ppOutputType, IDxcBlobUtf16** ppOutputName) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcExtraOutputs*)Unsafe.AsPointer(ref this), uIndex, iid, ppvObject, ppOutputType, ppOutputName); - } -} - -/// -/// IDxcCompiler3 -[Guid("228b4687-5a6a-4730-900c-9702b2203f54")] -[NativeTypeName("struct IDxcCompiler3 : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcCompiler3 -{ - public static ref readonly Guid IID_IDxcCompiler3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x87, 0x46, 0x8B, 0x22, - 0x6A, 0x5A, - 0x30, 0x47, - 0x90, - 0x0C, - 0x97, - 0x02, - 0xB2, - 0x20, - 0x3F, - 0x54 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcCompiler3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Compile(DxcBuffer* pSource, ushort** pArguments, uint argCount, IDxcIncludeHandler* pIncludeHandler, Guid* riid, void** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcCompiler3*)Unsafe.AsPointer(ref this), pSource, pArguments, argCount, pIncludeHandler, riid, ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Disassemble(DxcBuffer* pObject, Guid* riid, void** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcCompiler3*)Unsafe.AsPointer(ref this), pObject, riid, ppResult); - } -} - -/// -/// IDxcValidator -[Guid("a6e82bd2-1fd7-4826-9811-2857e797f49a")] -[NativeTypeName("struct IDxcValidator : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcValidator -{ - public static ref readonly Guid IID_IDxcValidator - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD2, 0x2B, 0xE8, 0xA6, - 0xD7, 0x1F, - 0x26, 0x48, - 0x98, - 0x11, - 0x28, - 0x57, - 0xE7, - 0x97, - 0xF4, - 0x9A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcValidator)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Validate(IDxcBlob* pShader, DxcValidatorFlags Flags, IDxcOperationResult** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcValidator*)Unsafe.AsPointer(ref this), pShader, Flags, ppResult); - } -} - -/// -/// IDxcValidator2 -[Guid("458e1fd1-b1b2-4750-a6e1-9c10f03bed92")] -[NativeTypeName("struct IDxcValidator2 : IDxcValidator")] -[NativeInheritance("IDxcValidator")] -public unsafe partial struct IDxcValidator2 -{ - public static ref readonly Guid IID_IDxcValidator2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD1, 0x1F, 0x8E, 0x45, - 0xB2, 0xB1, - 0x50, 0x47, - 0xA6, - 0xE1, - 0x9C, - 0x10, - 0xF0, - 0x3B, - 0xED, - 0x92 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcValidator2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Validate(IDxcBlob* pShader, DxcValidatorFlags Flags, IDxcOperationResult** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcValidator2*)Unsafe.AsPointer(ref this), pShader, Flags, ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult ValidateWithDebug(IDxcBlob* pShader, DxcValidatorFlags Flags, DxcBuffer* pOptDebugBitcode, IDxcOperationResult** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcValidator2*)Unsafe.AsPointer(ref this), pShader, Flags, pOptDebugBitcode, ppResult); - } -} - -/// -/// IDxcContainerBuilder -[Guid("334b1f50-2292-4b35-99a1-25588d8c17fe")] -[NativeTypeName("struct IDxcContainerBuilder : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcContainerBuilder -{ - public static ref readonly Guid IID_IDxcContainerBuilder - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x1F, 0x4B, 0x33, - 0x92, 0x22, - 0x35, 0x4B, - 0x99, - 0xA1, - 0x25, - 0x58, - 0x8D, - 0x8C, - 0x17, - 0xFE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcContainerBuilder)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Load(IDxcBlob* pDxilContainerHeader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcContainerBuilder*)Unsafe.AsPointer(ref this), pDxilContainerHeader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult AddPart(uint fourCC, IDxcBlob* pSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcContainerBuilder*)Unsafe.AsPointer(ref this), fourCC, pSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult RemovePart(uint fourCC) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcContainerBuilder*)Unsafe.AsPointer(ref this), fourCC); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SerializeContainer(IDxcOperationResult** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcContainerBuilder*)Unsafe.AsPointer(ref this), ppResult); - } -} - -/// -/// IDxcAssembler -[Guid("091f7a26-1c1f-4948-904b-e6e3a8a771d5")] -[NativeTypeName("struct IDxcAssembler : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcAssembler -{ - public static ref readonly Guid IID_IDxcAssembler - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x26, 0x7A, 0x1F, 0x09, - 0x1F, 0x1C, - 0x48, 0x49, - 0x90, - 0x4B, - 0xE6, - 0xE3, - 0xA8, - 0xA7, - 0x71, - 0xD5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcAssembler)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult AssembleToContainer(IDxcBlob* pShader, IDxcOperationResult** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcAssembler*)Unsafe.AsPointer(ref this), pShader, ppResult); - } -} - -/// -/// IDxcContainerReflection -[Guid("d2c21b26-8350-4bdc-976a-331ce6f4c54c")] -[NativeTypeName("struct IDxcContainerReflection : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcContainerReflection -{ - public static ref readonly Guid IID_IDxcContainerReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x26, 0x1B, 0xC2, 0xD2, - 0x50, 0x83, - 0xDC, 0x4B, - 0x97, - 0x6A, - 0x33, - 0x1C, - 0xE6, - 0xF4, - 0xC5, - 0x4C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcContainerReflection)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Load(IDxcBlob* pContainer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcContainerReflection*)Unsafe.AsPointer(ref this), pContainer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPartCount(uint* pResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcContainerReflection*)Unsafe.AsPointer(ref this), pResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPartKind(uint idx, uint* pResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcContainerReflection*)Unsafe.AsPointer(ref this), idx, pResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPartContent(uint idx, IDxcBlob** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcContainerReflection*)Unsafe.AsPointer(ref this), idx, ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult FindFirstPartKind(uint kind, uint* pResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcContainerReflection*)Unsafe.AsPointer(ref this), kind, pResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetPartReflection(uint idx, Guid* iid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDxcContainerReflection*)Unsafe.AsPointer(ref this), idx, iid, ppvObject); - } -} - -/// -/// IDxcOptimizerPass -[Guid("ae2cd79f-cc22-453f-9b6b-b124e7a5204c")] -[NativeTypeName("struct IDxcOptimizerPass : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcOptimizerPass -{ - public static ref readonly Guid IID_IDxcOptimizerPass - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9F, 0xD7, 0x2C, 0xAE, - 0x22, 0xCC, - 0x3F, 0x45, - 0x9B, - 0x6B, - 0xB1, - 0x24, - 0xE7, - 0xA5, - 0x20, - 0x4C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcOptimizerPass)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetOptionName(ushort** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetDescription(ushort** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetOptionArgCount(uint* pCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), pCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetOptionArgName(uint argIndex, ushort** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), argIndex, ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetOptionArgDescription(uint argIndex, ushort** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), argIndex, ppResult); - } -} - -/// -/// IDxcOptimizer -[Guid("25740e2e-9cba-401b-9119-4fb42f39f270")] -[NativeTypeName("struct IDxcOptimizer : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcOptimizer -{ - public static ref readonly Guid IID_IDxcOptimizer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2E, 0x0E, 0x74, 0x25, - 0xBA, 0x9C, - 0x1B, 0x40, - 0x91, - 0x19, - 0x4F, - 0xB4, - 0x2F, - 0x39, - 0xF2, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcOptimizer)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetAvailablePassCount(uint* pCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcOptimizer*)Unsafe.AsPointer(ref this), pCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetAvailablePass(uint index, IDxcOptimizerPass** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcOptimizer*)Unsafe.AsPointer(ref this), index, ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult RunOptimizer(IDxcBlob* pBlob, ushort** ppOptions, uint optionCount, IDxcBlob** pOutputModule, IDxcBlobEncoding** ppOutputText) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcOptimizer*)Unsafe.AsPointer(ref this), pBlob, ppOptions, optionCount, pOutputModule, ppOutputText); - } -} - -/// -/// IDxcVersionInfo -[Guid("b04f5b50-2059-4f12-a8ff-a1e0cde1cc7e")] -[NativeTypeName("struct IDxcVersionInfo : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcVersionInfo -{ - public static ref readonly Guid IID_IDxcVersionInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x5B, 0x4F, 0xB0, - 0x59, 0x20, - 0x12, 0x4F, - 0xA8, - 0xFF, - 0xA1, - 0xE0, - 0xCD, - 0xE1, - 0xCC, - 0x7E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcVersionInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetVersion(uint* pMajor, uint* pMinor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcVersionInfo*)Unsafe.AsPointer(ref this), pMajor, pMinor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFlags(DxcVersionInfoFlags* pFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcVersionInfo*)Unsafe.AsPointer(ref this), pFlags); - } -} - -/// -/// IDxcVersionInfo2 -[Guid("fb6904c4-42f0-4b62-9c46-983af7da7c83")] -[NativeTypeName("struct IDxcVersionInfo2 : IDxcVersionInfo")] -[NativeInheritance("IDxcVersionInfo")] -public unsafe partial struct IDxcVersionInfo2 -{ - public static ref readonly Guid IID_IDxcVersionInfo2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC4, 0x04, 0x69, 0xFB, - 0xF0, 0x42, - 0x62, 0x4B, - 0x9C, - 0x46, - 0x98, - 0x3A, - 0xF7, - 0xDA, - 0x7C, - 0x83 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcVersionInfo2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetVersion(uint* pMajor, uint* pMinor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcVersionInfo2*)Unsafe.AsPointer(ref this), pMajor, pMinor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFlags(DxcVersionInfoFlags* pFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcVersionInfo2*)Unsafe.AsPointer(ref this), pFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetCommitInfo(uint* pCommitCount, sbyte** pCommitHash) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcVersionInfo2*)Unsafe.AsPointer(ref this), pCommitCount, pCommitHash); - } -} - -/// -/// IDxcVersionInfo3 -[Guid("5e13e843-9d25-473c-9ad2-03b2d0b44b1e")] -[NativeTypeName("struct IDxcVersionInfo3 : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcVersionInfo3 -{ - public static ref readonly Guid IID_IDxcVersionInfo3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x43, 0xE8, 0x13, 0x5E, - 0x25, 0x9D, - 0x3C, 0x47, - 0x9A, - 0xD2, - 0x03, - 0xB2, - 0xD0, - 0xB4, - 0x4B, - 0x1E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcVersionInfo3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetCustomVersionString(sbyte** pVersionString) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcVersionInfo3*)Unsafe.AsPointer(ref this), pVersionString); - } -} - -/// -/// IDxcPdbUtils -[Guid("e6c9647e-9d6a-4c3b-b94c-524b5a6c343d")] -[NativeTypeName("struct IDxcPdbUtils : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDxcPdbUtils -{ - public static ref readonly Guid IID_IDxcPdbUtils - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7E, 0x64, 0xC9, 0xE6, - 0x6A, 0x9D, - 0x3B, 0x4C, - 0xB9, - 0x4C, - 0x52, - 0x4B, - 0x5A, - 0x6C, - 0x34, - 0x3D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcPdbUtils)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Load(IDxcBlob* pPdbOrDxil) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pPdbOrDxil); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetSourceCount(uint* pCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetSource(uint uIndex, IDxcBlobEncoding** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), uIndex, ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetSourceName(uint uIndex, char** pResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), uIndex, pResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetFlagCount(uint* pCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFlag(uint uIndex, char** pResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), uIndex, pResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetArgCount(uint* pCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetArg(uint uIndex, char** pResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), uIndex, pResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetArgPairCount(uint* pCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetArgPair(uint uIndex, char** pName, char** pValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), uIndex, pName, pValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetDefineCount(uint* pCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetDefine(uint uIndex, char** pResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), uIndex, pResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetTargetProfile(char** pResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetEntryPoint(char** pResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetMainFileName(char** pResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetHash(IDxcBlob** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetName(char** pResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public Bool32 IsFullPDB() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetFullPDB(IDxcBlob** ppFullPDB) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), ppFullPDB); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetVersionInfo(IDxcVersionInfo** ppVersionInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), ppVersionInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult SetCompiler(IDxcCompiler3* pCompiler) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pCompiler); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CompileForFullPDB(IDxcResult** ppResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), ppResult); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult OverrideArgs(DxcArgPair* pArgPairs, uint uNumArgPairs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pArgPairs, uNumArgPairs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult OverrideRootSignature(ushort* pRootSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pRootSignature); - } -} - #endregion Com Types #region Functions diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D.cs index d0aa418..547fd31 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D.cs @@ -1221,184 +1221,5 @@ public partial struct ShaderMacro #endregion Structs #region COM Types -/// -/// ID3DBlob -[Guid("8ba5fb08-5195-40e2-ac58-0d989c3a0102")] -[NativeTypeName("struct ID3DBlob : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3DBlob -{ - public static ref readonly Guid IID_ID3DBlob - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x08, 0xFB, 0xA5, 0x8B, - 0x95, 0x51, - 0xE2, 0x40, - 0xAC, - 0x58, - 0x0D, - 0x98, - 0x9C, - 0x3A, - 0x01, - 0x02 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DBlob)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void* GetBufferPointer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3DBlob*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public nuint GetBufferSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3DBlob*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3DDestructionNotifier -[Guid("a06eb39a-50da-425b-8c31-4eecd6c270f3")] -[NativeTypeName("struct ID3DDestructionNotifier : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3DDestructionNotifier -{ - public static ref readonly Guid IID_ID3DDestructionNotifier - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9A, 0xB3, 0x6E, 0xA0, - 0xDA, 0x50, - 0x5B, 0x42, - 0x8C, - 0x31, - 0x4E, - 0xEC, - 0xD6, - 0xC2, - 0x70, - 0xF3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DDestructionNotifier)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult RegisterDestructionCallback(delegate* unmanaged[Stdcall] callbackFn, void* pData, uint* pCallbackID) - { - return ((delegate* unmanaged[Stdcall], void*, uint*, int>)(lpVtbl[3]))((ID3DDestructionNotifier*)Unsafe.AsPointer(ref this), callbackFn, pData, pCallbackID); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult UnregisterDestructionCallback(uint callbackID) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3DDestructionNotifier*)Unsafe.AsPointer(ref this), callbackID); - } -} - -/// -/// ID3DInclude -public unsafe partial struct ID3DInclude -{ - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult Open(IncludeType IncludeType, sbyte* pFileName, void* pParentData, void** ppData, uint* pBytes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3DInclude*)Unsafe.AsPointer(ref this), IncludeType, pFileName, pParentData, ppData, pBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public HResult Close(void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3DInclude*)Unsafe.AsPointer(ref this), pData); - } -} - #endregion Com Types diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/ID3DBlob.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/ID3DBlob.cs new file mode 100644 index 0000000..c0c41b9 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/ID3DBlob.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D; + +/// +/// ID3DBlob +[Guid("8ba5fb08-5195-40e2-ac58-0d989c3a0102")] +[NativeTypeName("struct ID3DBlob : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3DBlob +{ + public static ref readonly Guid IID_ID3DBlob + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x08, 0xFB, 0xA5, 0x8B, + 0x95, 0x51, + 0xE2, 0x40, + 0xAC, + 0x58, + 0x0D, + 0x98, + 0x9C, + 0x3A, + 0x01, + 0x02 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DBlob)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void* GetBufferPointer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3DBlob*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public nuint GetBufferSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3DBlob*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/ID3DDestructionNotifier.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/ID3DDestructionNotifier.cs new file mode 100644 index 0000000..bd1b172 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/ID3DDestructionNotifier.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D; + +/// +/// ID3DDestructionNotifier +[Guid("a06eb39a-50da-425b-8c31-4eecd6c270f3")] +[NativeTypeName("struct ID3DDestructionNotifier : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3DDestructionNotifier +{ + public static ref readonly Guid IID_ID3DDestructionNotifier + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9A, 0xB3, 0x6E, 0xA0, + 0xDA, 0x50, + 0x5B, 0x42, + 0x8C, + 0x31, + 0x4E, + 0xEC, + 0xD6, + 0xC2, + 0x70, + 0xF3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DDestructionNotifier)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult RegisterDestructionCallback(delegate* unmanaged[Stdcall] callbackFn, void* pData, uint* pCallbackID) + { + return ((delegate* unmanaged[Stdcall], void*, uint*, int>)(lpVtbl[3]))((ID3DDestructionNotifier*)Unsafe.AsPointer(ref this), callbackFn, pData, pCallbackID); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult UnregisterDestructionCallback(uint callbackID) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3DDestructionNotifier*)Unsafe.AsPointer(ref this), callbackID); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/ID3DInclude.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/ID3DInclude.cs new file mode 100644 index 0000000..cf78352 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/ID3DInclude.cs @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D; + +/// +/// ID3DInclude +public unsafe partial struct ID3DInclude +{ + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult Open(IncludeType IncludeType, sbyte* pFileName, void* pParentData, void** ppData, uint* pBytes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3DInclude*)Unsafe.AsPointer(ref this), IncludeType, pFileName, pParentData, ppData, pBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public HResult Close(void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3DInclude*)Unsafe.AsPointer(ref this), pData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcAssembler.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcAssembler.cs new file mode 100644 index 0000000..b91c3d6 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcAssembler.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcAssembler +[Guid("091f7a26-1c1f-4948-904b-e6e3a8a771d5")] +[NativeTypeName("struct IDxcAssembler : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcAssembler +{ + public static ref readonly Guid IID_IDxcAssembler + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x26, 0x7A, 0x1F, 0x09, + 0x1F, 0x1C, + 0x48, 0x49, + 0x90, + 0x4B, + 0xE6, + 0xE3, + 0xA8, + 0xA7, + 0x71, + 0xD5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcAssembler)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult AssembleToContainer(IDxcBlob* pShader, IDxcOperationResult** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcAssembler*)Unsafe.AsPointer(ref this), pShader, ppResult); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlob.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlob.cs new file mode 100644 index 0000000..3fda4ee --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlob.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcBlob +[Guid("8ba5fb08-5195-40e2-ac58-0d989c3a0102")] +[NativeTypeName("struct IDxcBlob : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcBlob +{ + public static ref readonly Guid IID_IDxcBlob + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x08, 0xFB, 0xA5, 0x8B, + 0x95, 0x51, + 0xE2, 0x40, + 0xAC, + 0x58, + 0x0D, + 0x98, + 0x9C, + 0x3A, + 0x01, + 0x02 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlob)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void* GetBufferPointer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcBlob*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public nuint GetBufferSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcBlob*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlobEncoding.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlobEncoding.cs new file mode 100644 index 0000000..df7e004 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlobEncoding.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcBlobEncoding +[Guid("7241d424-2646-4191-97c0-98e96e42fc68")] +[NativeTypeName("struct IDxcBlobEncoding : IDxcBlob")] +[NativeInheritance("IDxcBlob")] +public unsafe partial struct IDxcBlobEncoding +{ + public static ref readonly Guid IID_IDxcBlobEncoding + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xD4, 0x41, 0x72, + 0x46, 0x26, + 0x91, 0x41, + 0x97, + 0xC0, + 0x98, + 0xE9, + 0x6E, + 0x42, + 0xFC, + 0x68 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlobEncoding)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void* GetBufferPointer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcBlobEncoding*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public nuint GetBufferSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcBlobEncoding*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetEncoding(Bool32* pKnown, DxcCp* pCodePage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcBlobEncoding*)Unsafe.AsPointer(ref this), pKnown, pCodePage); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlobUtf16.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlobUtf16.cs new file mode 100644 index 0000000..845d2fb --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlobUtf16.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcBlobUtf16 +[Guid("a3f84eab-0faa-497e-a39c-ee6ed60b2d84")] +[NativeTypeName("struct IDxcBlobUtf16 : IDxcBlobEncoding")] +[NativeInheritance("IDxcBlobEncoding")] +public unsafe partial struct IDxcBlobUtf16 +{ + public static ref readonly Guid IID_IDxcBlobUtf16 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAB, 0x4E, 0xF8, 0xA3, + 0xAA, 0x0F, + 0x7E, 0x49, + 0xA3, + 0x9C, + 0xEE, + 0x6E, + 0xD6, + 0x0B, + 0x2D, + 0x84 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlobUtf16)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void* GetBufferPointer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public nuint GetBufferSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetEncoding(Bool32* pKnown, DxcCp* pCodePage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this), pKnown, pCodePage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ushort* GetStringPointer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public nuint GetStringLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcBlobUtf16*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlobUtf8.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlobUtf8.cs new file mode 100644 index 0000000..a42f17b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcBlobUtf8.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcBlobUtf8 +[Guid("3da636c9-ba71-4024-a301-30cbf125305b")] +[NativeTypeName("struct IDxcBlobUtf8 : IDxcBlobEncoding")] +[NativeInheritance("IDxcBlobEncoding")] +public unsafe partial struct IDxcBlobUtf8 +{ + public static ref readonly Guid IID_IDxcBlobUtf8 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC9, 0x36, 0xA6, 0x3D, + 0x71, 0xBA, + 0x24, 0x40, + 0xA3, + 0x01, + 0x30, + 0xCB, + 0xF1, + 0x25, + 0x30, + 0x5B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcBlobUtf8)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void* GetBufferPointer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcBlobUtf8*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public nuint GetBufferSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcBlobUtf8*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetEncoding(Bool32* pKnown, DxcCp* pCodePage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcBlobUtf8*)Unsafe.AsPointer(ref this), pKnown, pCodePage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public sbyte* GetStringPointer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcBlobUtf8*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public nuint GetStringLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcBlobUtf8*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompiler.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompiler.cs new file mode 100644 index 0000000..109344c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompiler.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcCompiler +[Guid("8c210bf3-011f-4422-8d70-6f9acb8db617")] +[NativeTypeName("struct IDxcCompiler : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcCompiler +{ + public static ref readonly Guid IID_IDxcCompiler + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF3, 0x0B, 0x21, 0x8C, + 0x1F, 0x01, + 0x22, 0x44, + 0x8D, + 0x70, + 0x6F, + 0x9A, + 0xCB, + 0x8D, + 0xB6, + 0x17 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcCompiler)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Compile(IDxcBlob* pSource, ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcCompiler*)Unsafe.AsPointer(ref this), pSource, pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Preprocess(IDxcBlob* pSource, ushort* pSourceName, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcCompiler*)Unsafe.AsPointer(ref this), pSource, pSourceName, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult Disassemble(IDxcBlob* pSource, IDxcBlobEncoding** ppDisassembly) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcCompiler*)Unsafe.AsPointer(ref this), pSource, ppDisassembly); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompiler2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompiler2.cs new file mode 100644 index 0000000..e1c3823 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompiler2.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcCompiler2 +[Guid("a005a9d9-b8bb-4594-b5c9-0e633bec4d37")] +[NativeTypeName("struct IDxcCompiler2 : IDxcCompiler")] +[NativeInheritance("IDxcCompiler")] +public unsafe partial struct IDxcCompiler2 +{ + public static ref readonly Guid IID_IDxcCompiler2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD9, 0xA9, 0x05, 0xA0, + 0xBB, 0xB8, + 0x94, 0x45, + 0xB5, + 0xC9, + 0x0E, + 0x63, + 0x3B, + 0xEC, + 0x4D, + 0x37 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcCompiler2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Compile(IDxcBlob* pSource, ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Preprocess(IDxcBlob* pSource, ushort* pSourceName, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, pSourceName, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult Disassemble(IDxcBlob* pSource, IDxcBlobEncoding** ppDisassembly) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, ppDisassembly); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CompileWithDebug(IDxcBlob* pSource, ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcIncludeHandler* pIncludeHandler, IDxcOperationResult** ppResult, ushort** ppDebugBlobName, IDxcBlob** ppDebugBlob) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcCompiler2*)Unsafe.AsPointer(ref this), pSource, pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, pIncludeHandler, ppResult, ppDebugBlobName, ppDebugBlob); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompiler3.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompiler3.cs new file mode 100644 index 0000000..901945b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompiler3.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcCompiler3 +[Guid("228b4687-5a6a-4730-900c-9702b2203f54")] +[NativeTypeName("struct IDxcCompiler3 : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcCompiler3 +{ + public static ref readonly Guid IID_IDxcCompiler3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x87, 0x46, 0x8B, 0x22, + 0x6A, 0x5A, + 0x30, 0x47, + 0x90, + 0x0C, + 0x97, + 0x02, + 0xB2, + 0x20, + 0x3F, + 0x54 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcCompiler3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Compile(DxcBuffer* pSource, ushort** pArguments, uint argCount, IDxcIncludeHandler* pIncludeHandler, Guid* riid, void** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcCompiler3*)Unsafe.AsPointer(ref this), pSource, pArguments, argCount, pIncludeHandler, riid, ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Disassemble(DxcBuffer* pObject, Guid* riid, void** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcCompiler3*)Unsafe.AsPointer(ref this), pObject, riid, ppResult); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompilerArgs.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompilerArgs.cs new file mode 100644 index 0000000..eb82c88 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcCompilerArgs.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcCompilerArgs +[Guid("73effe2a-70dc-45f8-9690-eff64c02429d")] +[NativeTypeName("struct IDxcCompilerArgs : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcCompilerArgs +{ + public static ref readonly Guid IID_IDxcCompilerArgs + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2A, 0xFE, 0xEF, 0x73, + 0xDC, 0x70, + 0xF8, 0x45, + 0x96, + 0x90, + 0xEF, + 0xF6, + 0x4C, + 0x02, + 0x42, + 0x9D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcCompilerArgs)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public ushort** GetArguments() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult AddArguments(ushort** pArguments, uint argCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this), pArguments, argCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult AddArgumentsUTF8(sbyte** pArguments, uint argCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this), pArguments, argCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult AddDefines(DxcDefine* pDefines, uint defineCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcCompilerArgs*)Unsafe.AsPointer(ref this), pDefines, defineCount); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcContainerBuilder.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcContainerBuilder.cs new file mode 100644 index 0000000..d47331c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcContainerBuilder.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcContainerBuilder +[Guid("334b1f50-2292-4b35-99a1-25588d8c17fe")] +[NativeTypeName("struct IDxcContainerBuilder : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcContainerBuilder +{ + public static ref readonly Guid IID_IDxcContainerBuilder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x1F, 0x4B, 0x33, + 0x92, 0x22, + 0x35, 0x4B, + 0x99, + 0xA1, + 0x25, + 0x58, + 0x8D, + 0x8C, + 0x17, + 0xFE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcContainerBuilder)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Load(IDxcBlob* pDxilContainerHeader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcContainerBuilder*)Unsafe.AsPointer(ref this), pDxilContainerHeader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult AddPart(uint fourCC, IDxcBlob* pSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcContainerBuilder*)Unsafe.AsPointer(ref this), fourCC, pSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult RemovePart(uint fourCC) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcContainerBuilder*)Unsafe.AsPointer(ref this), fourCC); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SerializeContainer(IDxcOperationResult** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcContainerBuilder*)Unsafe.AsPointer(ref this), ppResult); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcContainerReflection.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcContainerReflection.cs new file mode 100644 index 0000000..1bbfb4c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcContainerReflection.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcContainerReflection +[Guid("d2c21b26-8350-4bdc-976a-331ce6f4c54c")] +[NativeTypeName("struct IDxcContainerReflection : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcContainerReflection +{ + public static ref readonly Guid IID_IDxcContainerReflection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x26, 0x1B, 0xC2, 0xD2, + 0x50, 0x83, + 0xDC, 0x4B, + 0x97, + 0x6A, + 0x33, + 0x1C, + 0xE6, + 0xF4, + 0xC5, + 0x4C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcContainerReflection)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Load(IDxcBlob* pContainer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcContainerReflection*)Unsafe.AsPointer(ref this), pContainer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPartCount(uint* pResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcContainerReflection*)Unsafe.AsPointer(ref this), pResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPartKind(uint idx, uint* pResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcContainerReflection*)Unsafe.AsPointer(ref this), idx, pResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetPartContent(uint idx, IDxcBlob** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcContainerReflection*)Unsafe.AsPointer(ref this), idx, ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult FindFirstPartKind(uint kind, uint* pResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcContainerReflection*)Unsafe.AsPointer(ref this), kind, pResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetPartReflection(uint idx, Guid* iid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDxcContainerReflection*)Unsafe.AsPointer(ref this), idx, iid, ppvObject); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcExtraOutputs.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcExtraOutputs.cs new file mode 100644 index 0000000..4ddb8ad --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcExtraOutputs.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcExtraOutputs +[Guid("319b37a2-a5c2-494a-a5de-4801b2faf989")] +[NativeTypeName("struct IDxcExtraOutputs : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcExtraOutputs +{ + public static ref readonly Guid IID_IDxcExtraOutputs + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA2, 0x37, 0x9B, 0x31, + 0xC2, 0xA5, + 0x4A, 0x49, + 0xA5, + 0xDE, + 0x48, + 0x01, + 0xB2, + 0xFA, + 0xF9, + 0x89 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcExtraOutputs)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetOutputCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcExtraOutputs*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetOutput(uint uIndex, Guid* iid, void** ppvObject, IDxcBlobUtf16** ppOutputType, IDxcBlobUtf16** ppOutputName) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcExtraOutputs*)Unsafe.AsPointer(ref this), uIndex, iid, ppvObject, ppOutputType, ppOutputName); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcIncludeHandler.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcIncludeHandler.cs new file mode 100644 index 0000000..38fb0a5 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcIncludeHandler.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcIncludeHandler +[Guid("7f61fc7d-950d-467f-b3e3-3c02fb49187c")] +[NativeTypeName("struct IDxcIncludeHandler : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcIncludeHandler +{ + public static ref readonly Guid IID_IDxcIncludeHandler + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7D, 0xFC, 0x61, 0x7F, + 0x0D, 0x95, + 0x7F, 0x46, + 0xB3, + 0xE3, + 0x3C, + 0x02, + 0xFB, + 0x49, + 0x18, + 0x7C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcIncludeHandler)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult LoadSource(ushort* pFilename, IDxcBlob** ppIncludeSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcIncludeHandler*)Unsafe.AsPointer(ref this), pFilename, ppIncludeSource); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcLibrary.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcLibrary.cs new file mode 100644 index 0000000..851de41 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcLibrary.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcLibrary +[Guid("e5204dc7-d18c-4c3c-bdfb-851673980fe7")] +[NativeTypeName("struct IDxcLibrary : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcLibrary +{ + public static ref readonly Guid IID_IDxcLibrary + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC7, 0x4D, 0x20, 0xE5, + 0x8C, 0xD1, + 0x3C, 0x4C, + 0xBD, + 0xFB, + 0x85, + 0x16, + 0x73, + 0x98, + 0x0F, + 0xE7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcLibrary)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetMalloc(Com.IMalloc* pMalloc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pMalloc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBlobFromBlob(IDxcBlob* pBlob, uint offset, uint length, IDxcBlob** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pBlob, offset, length, ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateBlobFromFile(ushort* pFileName, DxcCp* codePage, IDxcBlobEncoding** pBlobEncoding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pFileName, codePage, pBlobEncoding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateBlobWithEncodingFromPinned(void* pText, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pText, size, codePage, pBlobEncoding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBlobWithEncodingOnHeapCopy(void* pText, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pText, size, codePage, pBlobEncoding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateBlobWithEncodingOnMalloc(void* pText, Com.IMalloc* pIMalloc, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pText, pIMalloc, size, codePage, pBlobEncoding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateIncludeHandler(IDxcIncludeHandler** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDxcLibrary*)Unsafe.AsPointer(ref this), ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateStreamFromBlobReadOnly(IDxcBlob* pBlob, Com.IStream** ppStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pBlob, ppStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetBlobAsUtf8(IDxcBlob* pBlob, IDxcBlobEncoding** pBlobEncoding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pBlob, pBlobEncoding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetBlobAsUtf16(IDxcBlob* pBlob, IDxcBlobEncoding** pBlobEncoding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDxcLibrary*)Unsafe.AsPointer(ref this), pBlob, pBlobEncoding); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcLinker.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcLinker.cs new file mode 100644 index 0000000..b3f44bf --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcLinker.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcLinker +[Guid("f1b5be2a-62dd-4327-a1c2-42ac1e1e78e6")] +[NativeTypeName("struct IDxcLinker : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcLinker +{ + public static ref readonly Guid IID_IDxcLinker + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2A, 0xBE, 0xB5, 0xF1, + 0xDD, 0x62, + 0x27, 0x43, + 0xA1, + 0xC2, + 0x42, + 0xAC, + 0x1E, + 0x1E, + 0x78, + 0xE6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcLinker)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult RegisterLibrary(ushort* pLibName, IDxcBlob* pLib) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcLinker*)Unsafe.AsPointer(ref this), pLibName, pLib); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Link(ushort* pEntryName, ushort* pTargetProfile, ushort** pLibNames, uint libCount, ushort** pArguments, uint argCount, IDxcOperationResult** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcLinker*)Unsafe.AsPointer(ref this), pEntryName, pTargetProfile, pLibNames, libCount, pArguments, argCount, ppResult); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcOperationResult.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcOperationResult.cs new file mode 100644 index 0000000..299d679 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcOperationResult.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcOperationResult +[Guid("cedb484a-d4e9-445a-b991-ca21ca157dc2")] +[NativeTypeName("struct IDxcOperationResult : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcOperationResult +{ + public static ref readonly Guid IID_IDxcOperationResult + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4A, 0x48, 0xDB, 0xCE, + 0xE9, 0xD4, + 0x5A, 0x44, + 0xB9, + 0x91, + 0xCA, + 0x21, + 0xCA, + 0x15, + 0x7D, + 0xC2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcOperationResult)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetStatus(HResult* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcOperationResult*)Unsafe.AsPointer(ref this), pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetResult(IDxcBlob** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcOperationResult*)Unsafe.AsPointer(ref this), ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetErrorBuffer(IDxcBlobEncoding** ppErrors) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcOperationResult*)Unsafe.AsPointer(ref this), ppErrors); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcOptimizer.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcOptimizer.cs new file mode 100644 index 0000000..08a457b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcOptimizer.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcOptimizer +[Guid("25740e2e-9cba-401b-9119-4fb42f39f270")] +[NativeTypeName("struct IDxcOptimizer : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcOptimizer +{ + public static ref readonly Guid IID_IDxcOptimizer + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2E, 0x0E, 0x74, 0x25, + 0xBA, 0x9C, + 0x1B, 0x40, + 0x91, + 0x19, + 0x4F, + 0xB4, + 0x2F, + 0x39, + 0xF2, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcOptimizer)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetAvailablePassCount(uint* pCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcOptimizer*)Unsafe.AsPointer(ref this), pCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetAvailablePass(uint index, IDxcOptimizerPass** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcOptimizer*)Unsafe.AsPointer(ref this), index, ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult RunOptimizer(IDxcBlob* pBlob, ushort** ppOptions, uint optionCount, IDxcBlob** pOutputModule, IDxcBlobEncoding** ppOutputText) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcOptimizer*)Unsafe.AsPointer(ref this), pBlob, ppOptions, optionCount, pOutputModule, ppOutputText); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcOptimizerPass.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcOptimizerPass.cs new file mode 100644 index 0000000..c03ff89 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcOptimizerPass.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcOptimizerPass +[Guid("ae2cd79f-cc22-453f-9b6b-b124e7a5204c")] +[NativeTypeName("struct IDxcOptimizerPass : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcOptimizerPass +{ + public static ref readonly Guid IID_IDxcOptimizerPass + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9F, 0xD7, 0x2C, 0xAE, + 0x22, 0xCC, + 0x3F, 0x45, + 0x9B, + 0x6B, + 0xB1, + 0x24, + 0xE7, + 0xA5, + 0x20, + 0x4C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcOptimizerPass)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetOptionName(ushort** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetDescription(ushort** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetOptionArgCount(uint* pCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), pCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetOptionArgName(uint argIndex, ushort** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), argIndex, ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetOptionArgDescription(uint argIndex, ushort** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcOptimizerPass*)Unsafe.AsPointer(ref this), argIndex, ppResult); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcPdbUtils.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcPdbUtils.cs new file mode 100644 index 0000000..9985da9 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcPdbUtils.cs @@ -0,0 +1,275 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcPdbUtils +[Guid("e6c9647e-9d6a-4c3b-b94c-524b5a6c343d")] +[NativeTypeName("struct IDxcPdbUtils : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcPdbUtils +{ + public static ref readonly Guid IID_IDxcPdbUtils + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7E, 0x64, 0xC9, 0xE6, + 0x6A, 0x9D, + 0x3B, 0x4C, + 0xB9, + 0x4C, + 0x52, + 0x4B, + 0x5A, + 0x6C, + 0x34, + 0x3D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcPdbUtils)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Load(IDxcBlob* pPdbOrDxil) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pPdbOrDxil); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetSourceCount(uint* pCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetSource(uint uIndex, IDxcBlobEncoding** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), uIndex, ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetSourceName(uint uIndex, char** pResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), uIndex, pResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetFlagCount(uint* pCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFlag(uint uIndex, char** pResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), uIndex, pResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetArgCount(uint* pCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetArg(uint uIndex, char** pResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), uIndex, pResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetArgPairCount(uint* pCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetArgPair(uint uIndex, char** pName, char** pValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), uIndex, pName, pValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetDefineCount(uint* pCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetDefine(uint uIndex, char** pResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), uIndex, pResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetTargetProfile(char** pResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetEntryPoint(char** pResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetMainFileName(char** pResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetHash(IDxcBlob** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetName(char** pResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public Bool32 IsFullPDB() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFullPDB(IDxcBlob** ppFullPDB) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), ppFullPDB); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult GetVersionInfo(IDxcVersionInfo** ppVersionInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), ppVersionInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult SetCompiler(IDxcCompiler3* pCompiler) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pCompiler); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CompileForFullPDB(IDxcResult** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult OverrideArgs(DxcArgPair* pArgPairs, uint uNumArgPairs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pArgPairs, uNumArgPairs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult OverrideRootSignature(ushort* pRootSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDxcPdbUtils*)Unsafe.AsPointer(ref this), pRootSignature); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcResult.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcResult.cs new file mode 100644 index 0000000..36cfbe3 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcResult.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcResult +[Guid("58346cda-dde7-4497-9461-6f87af5e0659")] +[NativeTypeName("struct IDxcResult : IDxcOperationResult")] +[NativeInheritance("IDxcOperationResult")] +public unsafe partial struct IDxcResult +{ + public static ref readonly Guid IID_IDxcResult + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDA, 0x6C, 0x34, 0x58, + 0xE7, 0xDD, + 0x97, 0x44, + 0x94, + 0x61, + 0x6F, + 0x87, + 0xAF, + 0x5E, + 0x06, + 0x59 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcResult)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetStatus(HResult* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcResult*)Unsafe.AsPointer(ref this), pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetResult(IDxcBlob** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcResult*)Unsafe.AsPointer(ref this), ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetErrorBuffer(IDxcBlobEncoding** ppErrors) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcResult*)Unsafe.AsPointer(ref this), ppErrors); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public Bool32 HasOutput(DxcOutKind dxcOutKind) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcResult*)Unsafe.AsPointer(ref this), dxcOutKind); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetOutput(DxcOutKind dxcOutKind, Guid* iid, void** ppvObject, IDxcBlobUtf16** ppOutputName) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcResult*)Unsafe.AsPointer(ref this), dxcOutKind, iid, ppvObject, ppOutputName); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public uint GetNumOutputs() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDxcResult*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public DxcOutKind GetOutputByIndex(uint Index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDxcResult*)Unsafe.AsPointer(ref this), Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public DxcOutKind PrimaryOutput() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDxcResult*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcUtils.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcUtils.cs new file mode 100644 index 0000000..4eb8ea7 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcUtils.cs @@ -0,0 +1,187 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcUtils +[Guid("4605c4cb-2019-492a-ada4-65f20bb7d67f")] +[NativeTypeName("struct IDxcUtils : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcUtils +{ + public static ref readonly Guid IID_IDxcUtils + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCB, 0xC4, 0x05, 0x46, + 0x19, 0x20, + 0x2A, 0x49, + 0xAD, + 0xA4, + 0x65, + 0xF2, + 0x0B, + 0xB7, + 0xD6, + 0x7F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcUtils)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateBlobFromBlob(IDxcBlob* pBlob, uint offset, uint length, IDxcBlob** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcUtils*)Unsafe.AsPointer(ref this), pBlob, offset, length, ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateBlobFromPinned(void* pData, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcUtils*)Unsafe.AsPointer(ref this), pData, size, codePage, pBlobEncoding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult MoveToBlob(void* pData, Com.IMalloc* pIMalloc, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcUtils*)Unsafe.AsPointer(ref this), pData, pIMalloc, size, codePage, pBlobEncoding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateBlob(void* pData, uint size, DxcCp codePage, IDxcBlobEncoding** pBlobEncoding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDxcUtils*)Unsafe.AsPointer(ref this), pData, size, codePage, pBlobEncoding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult LoadFile(ushort* pFileName, DxcCp* pCodePage, IDxcBlobEncoding** pBlobEncoding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDxcUtils*)Unsafe.AsPointer(ref this), pFileName, pCodePage, pBlobEncoding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateReadOnlyStreamFromBlob(IDxcBlob* pBlob, Com.IStream** ppStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDxcUtils*)Unsafe.AsPointer(ref this), pBlob, ppStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateDefaultIncludeHandler(IDxcIncludeHandler** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDxcUtils*)Unsafe.AsPointer(ref this), ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetBlobAsUtf8(IDxcBlob* pBlob, IDxcBlobUtf8** pBlobEncoding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDxcUtils*)Unsafe.AsPointer(ref this), pBlob, pBlobEncoding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetBlobAsUtf16(IDxcBlob* pBlob, IDxcBlobUtf16** pBlobEncoding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDxcUtils*)Unsafe.AsPointer(ref this), pBlob, pBlobEncoding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetDxilContainerPart(DxcBuffer* pShader, uint DxcPart, void** ppPartData, uint* pPartSizeInBytes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDxcUtils*)Unsafe.AsPointer(ref this), pShader, DxcPart, ppPartData, pPartSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateReflection(DxcBuffer* pData, Guid* iid, void** ppvReflection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDxcUtils*)Unsafe.AsPointer(ref this), pData, iid, ppvReflection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult BuildArguments(ushort* pSourceName, ushort* pEntryPoint, ushort* pTargetProfile, ushort** pArguments, uint argCount, DxcDefine* pDefines, uint defineCount, IDxcCompilerArgs** ppArgs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDxcUtils*)Unsafe.AsPointer(ref this), pSourceName, pEntryPoint, pTargetProfile, pArguments, argCount, pDefines, defineCount, ppArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetPDBContents(IDxcBlob* pPDBBlob, IDxcBlob** ppHash, IDxcBlob** ppContainer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDxcUtils*)Unsafe.AsPointer(ref this), pPDBBlob, ppHash, ppContainer); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcValidator.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcValidator.cs new file mode 100644 index 0000000..25dbf90 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcValidator.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcValidator +[Guid("a6e82bd2-1fd7-4826-9811-2857e797f49a")] +[NativeTypeName("struct IDxcValidator : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcValidator +{ + public static ref readonly Guid IID_IDxcValidator + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD2, 0x2B, 0xE8, 0xA6, + 0xD7, 0x1F, + 0x26, 0x48, + 0x98, + 0x11, + 0x28, + 0x57, + 0xE7, + 0x97, + 0xF4, + 0x9A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcValidator)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Validate(IDxcBlob* pShader, DxcValidatorFlags Flags, IDxcOperationResult** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcValidator*)Unsafe.AsPointer(ref this), pShader, Flags, ppResult); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcValidator2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcValidator2.cs new file mode 100644 index 0000000..0aa77bd --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcValidator2.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcValidator2 +[Guid("458e1fd1-b1b2-4750-a6e1-9c10f03bed92")] +[NativeTypeName("struct IDxcValidator2 : IDxcValidator")] +[NativeInheritance("IDxcValidator")] +public unsafe partial struct IDxcValidator2 +{ + public static ref readonly Guid IID_IDxcValidator2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD1, 0x1F, 0x8E, 0x45, + 0xB2, 0xB1, + 0x50, 0x47, + 0xA6, + 0xE1, + 0x9C, + 0x10, + 0xF0, + 0x3B, + 0xED, + 0x92 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcValidator2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Validate(IDxcBlob* pShader, DxcValidatorFlags Flags, IDxcOperationResult** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcValidator2*)Unsafe.AsPointer(ref this), pShader, Flags, ppResult); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult ValidateWithDebug(IDxcBlob* pShader, DxcValidatorFlags Flags, DxcBuffer* pOptDebugBitcode, IDxcOperationResult** ppResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcValidator2*)Unsafe.AsPointer(ref this), pShader, Flags, pOptDebugBitcode, ppResult); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcVersionInfo.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcVersionInfo.cs new file mode 100644 index 0000000..232c646 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcVersionInfo.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcVersionInfo +[Guid("b04f5b50-2059-4f12-a8ff-a1e0cde1cc7e")] +[NativeTypeName("struct IDxcVersionInfo : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcVersionInfo +{ + public static ref readonly Guid IID_IDxcVersionInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x5B, 0x4F, 0xB0, + 0x59, 0x20, + 0x12, 0x4F, + 0xA8, + 0xFF, + 0xA1, + 0xE0, + 0xCD, + 0xE1, + 0xCC, + 0x7E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcVersionInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetVersion(uint* pMajor, uint* pMinor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcVersionInfo*)Unsafe.AsPointer(ref this), pMajor, pMinor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFlags(DxcVersionInfoFlags* pFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcVersionInfo*)Unsafe.AsPointer(ref this), pFlags); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcVersionInfo2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcVersionInfo2.cs new file mode 100644 index 0000000..d6c819d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcVersionInfo2.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcVersionInfo2 +[Guid("fb6904c4-42f0-4b62-9c46-983af7da7c83")] +[NativeTypeName("struct IDxcVersionInfo2 : IDxcVersionInfo")] +[NativeInheritance("IDxcVersionInfo")] +public unsafe partial struct IDxcVersionInfo2 +{ + public static ref readonly Guid IID_IDxcVersionInfo2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC4, 0x04, 0x69, 0xFB, + 0xF0, 0x42, + 0x62, 0x4B, + 0x9C, + 0x46, + 0x98, + 0x3A, + 0xF7, + 0xDA, + 0x7C, + 0x83 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcVersionInfo2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetVersion(uint* pMajor, uint* pMinor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcVersionInfo2*)Unsafe.AsPointer(ref this), pMajor, pMinor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFlags(DxcVersionInfoFlags* pFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDxcVersionInfo2*)Unsafe.AsPointer(ref this), pFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetCommitInfo(uint* pCommitCount, sbyte** pCommitHash) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDxcVersionInfo2*)Unsafe.AsPointer(ref this), pCommitCount, pCommitHash); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcVersionInfo3.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcVersionInfo3.cs new file mode 100644 index 0000000..d2fa713 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/IDxcVersionInfo3.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D.Dxc; + +/// +/// IDxcVersionInfo3 +[Guid("5e13e843-9d25-473c-9ad2-03b2d0b44b1e")] +[NativeTypeName("struct IDxcVersionInfo3 : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDxcVersionInfo3 +{ + public static ref readonly Guid IID_IDxcVersionInfo3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x43, 0xE8, 0x13, 0x5E, + 0x25, 0x9D, + 0x3C, 0x47, + 0x9A, + 0xD2, + 0x03, + 0xB2, + 0xD0, + 0xB4, + 0x4B, + 0x1E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDxcVersionInfo3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetCustomVersionString(sbyte** pVersionString) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDxcVersionInfo3*)Unsafe.AsPointer(ref this), pVersionString); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11.cs index 2a34e83..995f2f1 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D11.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11.cs @@ -13401,19833 +13401,6 @@ public partial struct TraceStep #endregion Structs #region COM Types -/// -/// ID3D11DeviceChild -[Guid("1841e5c8-16b0-489b-bcc8-44cfb0d5deae")] -[NativeTypeName("struct ID3D11DeviceChild : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11DeviceChild -{ - public static ref readonly Guid IID_ID3D11DeviceChild - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC8, 0xE5, 0x41, 0x18, - 0xB0, 0x16, - 0x9B, 0x48, - 0xBC, - 0xC8, - 0x44, - 0xCF, - 0xB0, - 0xD5, - 0xDE, - 0xAE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceChild)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, pData); - } -} - -/// -/// ID3D11DepthStencilState -[Guid("03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1")] -[NativeTypeName("struct ID3D11DepthStencilState : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11DepthStencilState -{ - public static ref readonly Guid IID_ID3D11DepthStencilState - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFB, 0x3E, 0x82, 0x03, - 0x8F, 0x8D, - 0x1C, 0x4E, - 0x9A, - 0xA2, - 0xF6, - 0x4B, - 0xB2, - 0xCB, - 0xFD, - 0xF1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DepthStencilState)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetDesc(DepthStencilDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11BlendState -[Guid("75b68faa-347d-4159-8f45-a0640f01cd9a")] -[NativeTypeName("struct ID3D11BlendState : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11BlendState -{ - public static ref readonly Guid IID_ID3D11BlendState - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAA, 0x8F, 0xB6, 0x75, - 0x7D, 0x34, - 0x59, 0x41, - 0x8F, - 0x45, - 0xA0, - 0x64, - 0x0F, - 0x01, - 0xCD, - 0x9A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11BlendState)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetDesc(BlendDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11RasterizerState -[Guid("9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7")] -[NativeTypeName("struct ID3D11RasterizerState : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11RasterizerState -{ - public static ref readonly Guid IID_ID3D11RasterizerState - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x81, 0xAB, 0xB4, 0x9B, - 0x1A, 0xAB, - 0x8F, 0x4D, - 0xB5, - 0x06, - 0xFC, - 0x04, - 0x20, - 0x0B, - 0x6E, - 0xE7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RasterizerState)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetDesc(RasterizerDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11Resource -[Guid("dc8e63f3-d12b-4952-b47b-5e45026a862d")] -[NativeTypeName("struct ID3D11Resource : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11Resource -{ - public static ref readonly Guid IID_ID3D11Resource - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF3, 0x63, 0x8E, 0xDC, - 0x2B, 0xD1, - 0x52, 0x49, - 0xB4, - 0x7B, - 0x5E, - 0x45, - 0x02, - 0x6A, - 0x86, - 0x2D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Resource)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Resource*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Resource*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Resource*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Resource*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetType(ResourceDimension* pResourceDimension) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Resource*)Unsafe.AsPointer(ref this), pResourceDimension); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void SetEvictionPriority(uint EvictionPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Resource*)Unsafe.AsPointer(ref this), EvictionPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public uint GetEvictionPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Resource*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D11Buffer -[Guid("48570b85-d1ee-4fcd-a250-eb350722b037")] -[NativeTypeName("struct ID3D11Buffer : ID3D11Resource")] -[NativeInheritance("ID3D11Resource")] -public unsafe partial struct ID3D11Buffer -{ - public static ref readonly Guid IID_ID3D11Buffer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x85, 0x0B, 0x57, 0x48, - 0xEE, 0xD1, - 0xCD, 0x4F, - 0xA2, - 0x50, - 0xEB, - 0x35, - 0x07, - 0x22, - 0xB0, - 0x37 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Buffer)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetType(ResourceDimension* pResourceDimension) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), pResourceDimension); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEvictionPriority(uint EvictionPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), EvictionPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetEvictionPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Buffer*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GetDesc(BufferDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11Texture1D -[Guid("f8fb5c27-c6b3-4f75-a4c8-439af2ef564c")] -[NativeTypeName("struct ID3D11Texture1D : ID3D11Resource")] -[NativeInheritance("ID3D11Resource")] -public unsafe partial struct ID3D11Texture1D -{ - public static ref readonly Guid IID_ID3D11Texture1D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x27, 0x5C, 0xFB, 0xF8, - 0xB3, 0xC6, - 0x75, 0x4F, - 0xA4, - 0xC8, - 0x43, - 0x9A, - 0xF2, - 0xEF, - 0x56, - 0x4C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture1D)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetType(ResourceDimension* pResourceDimension) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), pResourceDimension); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEvictionPriority(uint EvictionPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), EvictionPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetEvictionPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GetDesc(Texture1DDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11Texture2D -[Guid("6f15aaf2-d208-4e89-9ab4-489535d34f9c")] -[NativeTypeName("struct ID3D11Texture2D : ID3D11Resource")] -[NativeInheritance("ID3D11Resource")] -public unsafe partial struct ID3D11Texture2D -{ - public static ref readonly Guid IID_ID3D11Texture2D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF2, 0xAA, 0x15, 0x6F, - 0x08, 0xD2, - 0x89, 0x4E, - 0x9A, - 0xB4, - 0x48, - 0x95, - 0x35, - 0xD3, - 0x4F, - 0x9C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture2D)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetType(ResourceDimension* pResourceDimension) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), pResourceDimension); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEvictionPriority(uint EvictionPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), EvictionPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetEvictionPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GetDesc(Texture2DDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11Texture3D -[Guid("037e866e-f56d-4357-a8af-9dabbe6e250e")] -[NativeTypeName("struct ID3D11Texture3D : ID3D11Resource")] -[NativeInheritance("ID3D11Resource")] -public unsafe partial struct ID3D11Texture3D -{ - public static ref readonly Guid IID_ID3D11Texture3D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6E, 0x86, 0x7E, 0x03, - 0x6D, 0xF5, - 0x57, 0x43, - 0xA8, - 0xAF, - 0x9D, - 0xAB, - 0xBE, - 0x6E, - 0x25, - 0x0E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture3D)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetType(ResourceDimension* pResourceDimension) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), pResourceDimension); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEvictionPriority(uint EvictionPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), EvictionPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetEvictionPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GetDesc(Texture3DDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11View -[Guid("839d1216-bb2e-412b-b7f4-a9dbebe08ed1")] -[NativeTypeName("struct ID3D11View : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11View -{ - public static ref readonly Guid IID_ID3D11View - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x16, 0x12, 0x9D, 0x83, - 0x2E, 0xBB, - 0x2B, 0x41, - 0xB7, - 0xF4, - 0xA9, - 0xDB, - 0xEB, - 0xE0, - 0x8E, - 0xD1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11View)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11View*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11View*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11View*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11View*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetResource(ID3D11Resource** ppResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11View*)Unsafe.AsPointer(ref this), ppResource); - } -} - -/// -/// ID3D11ShaderResourceView -[Guid("b0e06fe0-8192-4e1a-b1ca-36d7414710b2")] -[NativeTypeName("struct ID3D11ShaderResourceView : ID3D11View")] -[NativeInheritance("ID3D11View")] -public unsafe partial struct ID3D11ShaderResourceView -{ - public static ref readonly Guid IID_ID3D11ShaderResourceView - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE0, 0x6F, 0xE0, 0xB0, - 0x92, 0x81, - 0x1A, 0x4E, - 0xB1, - 0xCA, - 0x36, - 0xD7, - 0x41, - 0x47, - 0x10, - 0xB2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderResourceView)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetResource(ID3D11Resource** ppResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDesc(ShaderResourceViewDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11RenderTargetView -[Guid("dfdba067-0b8d-4865-875b-d7b4516cc164")] -[NativeTypeName("struct ID3D11RenderTargetView : ID3D11View")] -[NativeInheritance("ID3D11View")] -public unsafe partial struct ID3D11RenderTargetView -{ - public static ref readonly Guid IID_ID3D11RenderTargetView - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x67, 0xA0, 0xDB, 0xDF, - 0x8D, 0x0B, - 0x65, 0x48, - 0x87, - 0x5B, - 0xD7, - 0xB4, - 0x51, - 0x6C, - 0xC1, - 0x64 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RenderTargetView)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetResource(ID3D11Resource** ppResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDesc(RenderTargetViewDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11DepthStencilView -[Guid("9fdac92a-1876-48c3-afad-25b94f84a9b6")] -[NativeTypeName("struct ID3D11DepthStencilView : ID3D11View")] -[NativeInheritance("ID3D11View")] -public unsafe partial struct ID3D11DepthStencilView -{ - public static ref readonly Guid IID_ID3D11DepthStencilView - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2A, 0xC9, 0xDA, 0x9F, - 0x76, 0x18, - 0xC3, 0x48, - 0xAF, - 0xAD, - 0x25, - 0xB9, - 0x4F, - 0x84, - 0xA9, - 0xB6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DepthStencilView)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetResource(ID3D11Resource** ppResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDesc(DepthStencilViewDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11UnorderedAccessView -[Guid("28acf509-7f5c-48f6-8611-f316010a6380")] -[NativeTypeName("struct ID3D11UnorderedAccessView : ID3D11View")] -[NativeInheritance("ID3D11View")] -public unsafe partial struct ID3D11UnorderedAccessView -{ - public static ref readonly Guid IID_ID3D11UnorderedAccessView - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x09, 0xF5, 0xAC, 0x28, - 0x5C, 0x7F, - 0xF6, 0x48, - 0x86, - 0x11, - 0xF3, - 0x16, - 0x01, - 0x0A, - 0x63, - 0x80 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11UnorderedAccessView)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetResource(ID3D11Resource** ppResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDesc(UnorderedAccessViewDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11VertexShader -[Guid("3b301d64-d678-4289-8897-22f8928b72f3")] -[NativeTypeName("struct ID3D11VertexShader : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11VertexShader -{ - public static ref readonly Guid IID_ID3D11VertexShader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x1D, 0x30, 0x3B, - 0x78, 0xD6, - 0x89, 0x42, - 0x88, - 0x97, - 0x22, - 0xF8, - 0x92, - 0x8B, - 0x72, - 0xF3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VertexShader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, pData); - } -} - -/// -/// ID3D11HullShader -[Guid("8e5c6061-628a-4c8e-8264-bbe45cb3d5dd")] -[NativeTypeName("struct ID3D11HullShader : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11HullShader -{ - public static ref readonly Guid IID_ID3D11HullShader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x61, 0x60, 0x5C, 0x8E, - 0x8A, 0x62, - 0x8E, 0x4C, - 0x82, - 0x64, - 0xBB, - 0xE4, - 0x5C, - 0xB3, - 0xD5, - 0xDD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11HullShader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, pData); - } -} - -/// -/// ID3D11DomainShader -[Guid("f582c508-0f36-490c-9977-31eece268cfa")] -[NativeTypeName("struct ID3D11DomainShader : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11DomainShader -{ - public static ref readonly Guid IID_ID3D11DomainShader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x08, 0xC5, 0x82, 0xF5, - 0x36, 0x0F, - 0x0C, 0x49, - 0x99, - 0x77, - 0x31, - 0xEE, - 0xCE, - 0x26, - 0x8C, - 0xFA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DomainShader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, pData); - } -} - -/// -/// ID3D11GeometryShader -[Guid("38325b96-effb-4022-ba02-2e795b70275c")] -[NativeTypeName("struct ID3D11GeometryShader : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11GeometryShader -{ - public static ref readonly Guid IID_ID3D11GeometryShader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x96, 0x5B, 0x32, 0x38, - 0xFB, 0xEF, - 0x22, 0x40, - 0xBA, - 0x02, - 0x2E, - 0x79, - 0x5B, - 0x70, - 0x27, - 0x5C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11GeometryShader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), guid, pData); - } -} - -/// -/// ID3D11PixelShader -[Guid("ea82e40d-51dc-4f33-93d4-db7c9125ae8c")] -[NativeTypeName("struct ID3D11PixelShader : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11PixelShader -{ - public static ref readonly Guid IID_ID3D11PixelShader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0D, 0xE4, 0x82, 0xEA, - 0xDC, 0x51, - 0x33, 0x4F, - 0x93, - 0xD4, - 0xDB, - 0x7C, - 0x91, - 0x25, - 0xAE, - 0x8C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11PixelShader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11PixelShader*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11PixelShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11PixelShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11PixelShader*)Unsafe.AsPointer(ref this), guid, pData); - } -} - -/// -/// ID3D11ComputeShader -[Guid("4f5b196e-c2bd-495e-bd01-1fded38e4969")] -[NativeTypeName("struct ID3D11ComputeShader : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11ComputeShader -{ - public static ref readonly Guid IID_ID3D11ComputeShader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6E, 0x19, 0x5B, 0x4F, - 0xBD, 0xC2, - 0x5E, 0x49, - 0xBD, - 0x01, - 0x1F, - 0xDE, - 0xD3, - 0x8E, - 0x49, - 0x69 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ComputeShader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ComputeShader*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ComputeShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ComputeShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ComputeShader*)Unsafe.AsPointer(ref this), guid, pData); - } -} - -/// -/// ID3D11InputLayout -[Guid("e4819ddc-4cf0-4025-bd26-5de82a3e07b7")] -[NativeTypeName("struct ID3D11InputLayout : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11InputLayout -{ - public static ref readonly Guid IID_ID3D11InputLayout - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDC, 0x9D, 0x81, 0xE4, - 0xF0, 0x4C, - 0x25, 0x40, - 0xBD, - 0x26, - 0x5D, - 0xE8, - 0x2A, - 0x3E, - 0x07, - 0xB7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11InputLayout)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11InputLayout*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11InputLayout*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11InputLayout*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11InputLayout*)Unsafe.AsPointer(ref this), guid, pData); - } -} - -/// -/// ID3D11SamplerState -[Guid("da6fea51-564c-4487-9810-f0d0f9b4e3a5")] -[NativeTypeName("struct ID3D11SamplerState : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11SamplerState -{ - public static ref readonly Guid IID_ID3D11SamplerState - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x51, 0xEA, 0x6F, 0xDA, - 0x4C, 0x56, - 0x87, 0x44, - 0x98, - 0x10, - 0xF0, - 0xD0, - 0xF9, - 0xB4, - 0xE3, - 0xA5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11SamplerState)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11SamplerState*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11SamplerState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11SamplerState*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11SamplerState*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetDesc(SamplerDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11SamplerState*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11Asynchronous -[Guid("4b35d0cd-1e15-4258-9c98-1b1333f6dd3b")] -[NativeTypeName("struct ID3D11Asynchronous : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11Asynchronous -{ - public static ref readonly Guid IID_ID3D11Asynchronous - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCD, 0xD0, 0x35, 0x4B, - 0x15, 0x1E, - 0x58, 0x42, - 0x9C, - 0x98, - 0x1B, - 0x13, - 0x33, - 0xF6, - 0xDD, - 0x3B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Asynchronous)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Asynchronous*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Asynchronous*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Asynchronous*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Asynchronous*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetDataSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Asynchronous*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D11Query -[Guid("d6c00747-87b7-425e-b84d-44d108560afd")] -[NativeTypeName("struct ID3D11Query : ID3D11Asynchronous")] -[NativeInheritance("ID3D11Asynchronous")] -public unsafe partial struct ID3D11Query -{ - public static ref readonly Guid IID_ID3D11Query - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x47, 0x07, 0xC0, 0xD6, - 0xB7, 0x87, - 0x5E, 0x42, - 0xB8, - 0x4D, - 0x44, - 0xD1, - 0x08, - 0x56, - 0x0A, - 0xFD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Query)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetDataSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Query*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Query*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Query*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Query*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Query*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDesc(QueryDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Query*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11Predicate -[Guid("9eb576dd-9f77-4d86-81aa-8bab5fe490e2")] -[NativeTypeName("struct ID3D11Predicate : ID3D11Query")] -[NativeInheritance("ID3D11Query")] -public unsafe partial struct ID3D11Predicate -{ - public static ref readonly Guid IID_ID3D11Predicate - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDD, 0x76, 0xB5, 0x9E, - 0x77, 0x9F, - 0x86, 0x4D, - 0x81, - 0xAA, - 0x8B, - 0xAB, - 0x5F, - 0xE4, - 0x90, - 0xE2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Predicate)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDesc(QueryDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Predicate*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetDataSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Predicate*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Predicate*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Predicate*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Predicate*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Predicate*)Unsafe.AsPointer(ref this), guid, pData); - } -} - -/// -/// ID3D11Counter -[Guid("6e8c49fb-a371-4770-b440-29086022b741")] -[NativeTypeName("struct ID3D11Counter : ID3D11Asynchronous")] -[NativeInheritance("ID3D11Asynchronous")] -public unsafe partial struct ID3D11Counter -{ - public static ref readonly Guid IID_ID3D11Counter - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFB, 0x49, 0x8C, 0x6E, - 0x71, 0xA3, - 0x70, 0x47, - 0xB4, - 0x40, - 0x29, - 0x08, - 0x60, - 0x22, - 0xB7, - 0x41 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Counter)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetDataSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Counter*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Counter*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Counter*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Counter*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Counter*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDesc(CounterDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Counter*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11ClassInstance -[Guid("a6cd7faa-b0b7-4a2f-9436-8662a65797cb")] -[NativeTypeName("struct ID3D11ClassInstance : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11ClassInstance -{ - public static ref readonly Guid IID_ID3D11ClassInstance - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAA, 0x7F, 0xCD, 0xA6, - 0xB7, 0xB0, - 0x2F, 0x4A, - 0x94, - 0x36, - 0x86, - 0x62, - 0xA6, - 0x57, - 0x97, - 0xCB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ClassInstance)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetClassLinkage(ID3D11ClassLinkage** ppLinkage) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), ppLinkage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDesc(ClassInstanceDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void GetInstanceName(byte* pInstanceName, nuint* pBufferLength) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), pInstanceName, pBufferLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GetTypeName(byte* pTypeName, nuint* pBufferLength) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), pTypeName, pBufferLength); - } -} - -/// -/// ID3D11ClassLinkage -[Guid("ddf57cba-9543-46e4-a12b-f207a0fe7fed")] -[NativeTypeName("struct ID3D11ClassLinkage : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11ClassLinkage -{ - public static ref readonly Guid IID_ID3D11ClassLinkage - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBA, 0x7C, 0xF5, 0xDD, - 0x43, 0x95, - 0xE4, 0x46, - 0xA1, - 0x2B, - 0xF2, - 0x07, - 0xA0, - 0xFE, - 0x7F, - 0xED - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ClassLinkage)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetClassInstance(sbyte* pClassInstanceName, uint InstanceIndex, ID3D11ClassInstance** ppInstance) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), pClassInstanceName, InstanceIndex, ppInstance); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateClassInstance(sbyte* pClassTypeName, uint ConstantBufferOffset, uint ConstantVectorOffset, uint TextureOffset, uint SamplerOffset, ID3D11ClassInstance** ppInstance) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), pClassTypeName, ConstantBufferOffset, ConstantVectorOffset, TextureOffset, SamplerOffset, ppInstance); - } -} - -/// -/// ID3D11CommandList -[Guid("a24bc4d1-769e-43f7-8013-98ff566c18e2")] -[NativeTypeName("struct ID3D11CommandList : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11CommandList -{ - public static ref readonly Guid IID_ID3D11CommandList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD1, 0xC4, 0x4B, 0xA2, - 0x9E, 0x76, - 0xF7, 0x43, - 0x80, - 0x13, - 0x98, - 0xFF, - 0x56, - 0x6C, - 0x18, - 0xE2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11CommandList)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11CommandList*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11CommandList*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11CommandList*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11CommandList*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetContextFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11CommandList*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D11DeviceContext -[Guid("c0bfa96c-e089-44fb-8eaf-26f8796190da")] -[NativeTypeName("struct ID3D11DeviceContext : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11DeviceContext -{ - public static ref readonly Guid IID_ID3D11DeviceContext - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6C, 0xA9, 0xBF, 0xC0, - 0x89, 0xE0, - 0xFB, 0x44, - 0x8E, - 0xAF, - 0x26, - 0xF8, - 0x79, - 0x61, - 0x90, - 0xDA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void VSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void PSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void PSSetShader(ID3D11PixelShader* pPixelShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pPixelShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void PSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void VSSetShader(ID3D11VertexShader* pVertexShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pVertexShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawIndexed(uint IndexCount, uint StartIndexLocation, int BaseVertexLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), IndexCount, StartIndexLocation, BaseVertexLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void Draw(uint VertexCount, uint StartVertexLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), VertexCount, StartVertexLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult Map(ID3D11Resource* pResource, uint Subresource, Map MapType, MapFlags MapFlags, MappedSubresource* pMappedResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void Unmap(ID3D11Resource* pResource, uint Subresource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pResource, Subresource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void PSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void IASetInputLayout(ID3D11InputLayout* pInputLayout) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void IASetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void IASetIndexBuffer(ID3D11Buffer* pIndexBuffer, Graphics.Dxgi.Common.Format Format, uint Offset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void GSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void GSSetShader(ID3D11GeometryShader* pShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology Topology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), Topology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void VSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void VSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void Begin(ID3D11Asynchronous* pAsync) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pAsync); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void End(ID3D11Asynchronous* pAsync) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pAsync); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetData(ID3D11Asynchronous* pAsync, void* pData, uint DataSize, uint GetDataFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pAsync, pData, DataSize, GetDataFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetPredication(ID3D11Predicate* pPredicate, Bool32 PredicateValue) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pPredicate, PredicateValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void GSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void GSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void OMSetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, pDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void OMSetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, pDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void OMSetBlendState(ID3D11BlendState* pBlendState, float* BlendFactor, uint SampleMask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pBlendState, BlendFactor, SampleMask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void OMSetDepthStencilState(ID3D11DepthStencilState* pDepthStencilState, uint StencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDepthStencilState, StencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SOSetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void DrawAuto() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void DrawIndexedInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void DrawInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void DispatchIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void RSSetState(ID3D11RasterizerState* pRasterizerState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void RSSetViewports(uint NumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void RSSetScissorRects(uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void CopySubresourceRegion(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void CopyResource(ID3D11Resource* pDstResource, ID3D11Resource* pSrcResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void UpdateSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void CopyStructureCount(ID3D11Buffer* pDstBuffer, uint DstAlignedByteOffset, ID3D11UnorderedAccessView* pSrcView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDstBuffer, DstAlignedByteOffset, pSrcView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearRenderTargetView(ID3D11RenderTargetView* pRenderTargetView, float* ColorRGBA) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pRenderTargetView, ColorRGBA); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void ClearUnorderedAccessViewUint(ID3D11UnorderedAccessView* pUnorderedAccessView, uint* Values) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void ClearUnorderedAccessViewFloat(ID3D11UnorderedAccessView* pUnorderedAccessView, float* Values) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, uint ClearFlags, float Depth, byte Stencil) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pShaderResourceView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetResourceMinLOD(ID3D11Resource* pResource, float MinLOD) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pResource, MinLOD); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public float GetResourceMinLOD(ID3D11Resource* pResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void ResolveSubresource(ID3D11Resource* pDstResource, uint DstSubresource, ID3D11Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void ExecuteCommandList(ID3D11CommandList* pCommandList, Bool32 RestoreContextState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pCommandList, RestoreContextState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void HSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void HSSetShader(ID3D11HullShader* pHullShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pHullShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void HSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void HSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void DSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void DSSetShader(ID3D11DomainShader* pDomainShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDomainShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void DSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void DSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void CSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void CSSetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void CSSetShader(ID3D11ComputeShader* pComputeShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pComputeShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void CSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void CSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void VSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void PSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void PSGetShader(ID3D11PixelShader** ppPixelShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppPixelShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void PSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void VSGetShader(ID3D11VertexShader** ppVertexShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppVertexShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void PSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void IAGetInputLayout(ID3D11InputLayout** ppInputLayout) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void IAGetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void IAGetIndexBuffer(ID3D11Buffer** pIndexBuffer, Graphics.Dxgi.Common.Format* Format, uint* Offset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public void GSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void GSGetShader(ID3D11GeometryShader** ppGeometryShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppGeometryShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public void IAGetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology* pTopology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pTopology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public void VSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public void VSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public void GetPredication(ID3D11Predicate** ppPredicate, Bool32* pPredicateValue) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppPredicate, pPredicateValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public void GSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public void GSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(89)] - public void OMGetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, ppDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(90)] - public void OMGetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, ppDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(91)] - public void OMGetBlendState(ID3D11BlendState** ppBlendState, float* BlendFactor, uint* pSampleMask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppBlendState, BlendFactor, pSampleMask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(92)] - public void OMGetDepthStencilState(ID3D11DepthStencilState** ppDepthStencilState, uint* pStencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppDepthStencilState, pStencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(93)] - public void SOGetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(94)] - public void RSGetState(ID3D11RasterizerState** ppRasterizerState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(95)] - public void RSGetViewports(uint* pNumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pNumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(96)] - public void RSGetScissorRects(uint* pNumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pNumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(97)] - public void HSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(98)] - public void HSGetShader(ID3D11HullShader** ppHullShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppHullShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(99)] - public void HSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(100)] - public void HSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(101)] - public void DSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(102)] - public void DSGetShader(ID3D11DomainShader** ppDomainShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppDomainShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(103)] - public void DSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(104)] - public void DSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(105)] - public void CSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(106)] - public void CSGetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(107)] - public void CSGetShader(ID3D11ComputeShader** ppComputeShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppComputeShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(108)] - public void CSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(109)] - public void CSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(110)] - public void ClearState() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(111)] - public void Flush() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(112)] - public new DeviceContextType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(113)] - public uint GetContextFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(114)] - public HResult FinishCommandList(Bool32 RestoreDeferredContextState, ID3D11CommandList** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), RestoreDeferredContextState, ppCommandList); - } -} - -/// -/// ID3D11VideoDecoder -[Guid("3c9c5b51-995d-48d1-9b8d-fa5caeded65c")] -[NativeTypeName("struct ID3D11VideoDecoder : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11VideoDecoder -{ - public static ref readonly Guid IID_ID3D11VideoDecoder - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x51, 0x5B, 0x9C, 0x3C, - 0x5D, 0x99, - 0xD1, 0x48, - 0x9B, - 0x8D, - 0xFA, - 0x5C, - 0xAE, - 0xDE, - 0xD6, - 0x5C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDecoder)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetCreationParameters(VideoDecoderDescription* pVideoDesc, VideoDecoderConfig* pConfig) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), pVideoDesc, pConfig); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetDriverHandle(IntPtr* pDriverHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), pDriverHandle); - } -} - -/// -/// ID3D11VideoProcessorEnumerator -[Guid("31627037-53ab-4200-9061-05faa9ab45f9")] -[NativeTypeName("struct ID3D11VideoProcessorEnumerator : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11VideoProcessorEnumerator -{ - public static ref readonly Guid IID_ID3D11VideoProcessorEnumerator - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x37, 0x70, 0x62, 0x31, - 0xAB, 0x53, - 0x00, 0x42, - 0x90, - 0x61, - 0x05, - 0xFA, - 0xA9, - 0xAB, - 0x45, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessorEnumerator)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetVideoProcessorContentDesc(VideoProcessorContentDescription* pContentDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), pContentDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CheckVideoProcessorFormat(Graphics.Dxgi.Common.Format Format, uint* pFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), Format, pFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetVideoProcessorCaps(VideoProcessorCaps* pCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), pCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetVideoProcessorRateConversionCaps(uint TypeIndex, VideoProcessorRateConversionCaps* pCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), TypeIndex, pCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetVideoProcessorCustomRate(uint TypeIndex, uint CustomRateIndex, VideoProcessorCustomRate* pRate) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), TypeIndex, CustomRateIndex, pRate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetVideoProcessorFilterRange(VideoProcessorFilter Filter, VideoProcessorFilterRange* pRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), Filter, pRange); - } -} - -/// -/// ID3D11VideoProcessor -[Guid("1d7b0652-185f-41c6-85ce-0c5be3d4ae6c")] -[NativeTypeName("struct ID3D11VideoProcessor : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11VideoProcessor -{ - public static ref readonly Guid IID_ID3D11VideoProcessor - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x52, 0x06, 0x7B, 0x1D, - 0x5F, 0x18, - 0xC6, 0x41, - 0x85, - 0xCE, - 0x0C, - 0x5B, - 0xE3, - 0xD4, - 0xAE, - 0x6C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessor)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetContentDesc(VideoProcessorContentDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetRateConversionCaps(VideoProcessorRateConversionCaps* pCaps) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), pCaps); - } -} - -/// -/// ID3D11AuthenticatedChannel -[Guid("3015a308-dcbd-47aa-a747-192486d14d4a")] -[NativeTypeName("struct ID3D11AuthenticatedChannel : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11AuthenticatedChannel -{ - public static ref readonly Guid IID_ID3D11AuthenticatedChannel - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x08, 0xA3, 0x15, 0x30, - 0xBD, 0xDC, - 0xAA, 0x47, - 0xA7, - 0x47, - 0x19, - 0x24, - 0x86, - 0xD1, - 0x4D, - 0x4A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11AuthenticatedChannel)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetCertificateSize(uint* pCertificateSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), pCertificateSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetCertificate(uint CertificateSize, byte* pCertificate) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), CertificateSize, pCertificate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void GetChannelHandle(IntPtr* pChannelHandle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), pChannelHandle); - } -} - -/// -/// ID3D11CryptoSession -[Guid("9b32f9ad-bdcc-40a6-a39d-d5c865845720")] -[NativeTypeName("struct ID3D11CryptoSession : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11CryptoSession -{ - public static ref readonly Guid IID_ID3D11CryptoSession - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAD, 0xF9, 0x32, 0x9B, - 0xCC, 0xBD, - 0xA6, 0x40, - 0xA3, - 0x9D, - 0xD5, - 0xC8, - 0x65, - 0x84, - 0x57, - 0x20 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11CryptoSession)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetCryptoType(Guid* pCryptoType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), pCryptoType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDecoderProfile(Guid* pDecoderProfile) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), pDecoderProfile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetCertificateSize(uint* pCertificateSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), pCertificateSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetCertificate(uint CertificateSize, byte* pCertificate) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), CertificateSize, pCertificate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void GetCryptoSessionHandle(IntPtr* pCryptoSessionHandle) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), pCryptoSessionHandle); - } -} - -/// -/// ID3D11VideoDecoderOutputView -[Guid("c2931aea-2a85-4f20-860f-fba1fd256e18")] -[NativeTypeName("struct ID3D11VideoDecoderOutputView : ID3D11View")] -[NativeInheritance("ID3D11View")] -public unsafe partial struct ID3D11VideoDecoderOutputView -{ - public static ref readonly Guid IID_ID3D11VideoDecoderOutputView - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEA, 0x1A, 0x93, 0xC2, - 0x85, 0x2A, - 0x20, 0x4F, - 0x86, - 0x0F, - 0xFB, - 0xA1, - 0xFD, - 0x25, - 0x6E, - 0x18 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDecoderOutputView)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetResource(ID3D11Resource** ppResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDesc(VideoDecoderOutputViewDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11VideoProcessorInputView -[Guid("11ec5a5f-51dc-4945-ab34-6e8c21300ea5")] -[NativeTypeName("struct ID3D11VideoProcessorInputView : ID3D11View")] -[NativeInheritance("ID3D11View")] -public unsafe partial struct ID3D11VideoProcessorInputView -{ - public static ref readonly Guid IID_ID3D11VideoProcessorInputView - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5F, 0x5A, 0xEC, 0x11, - 0xDC, 0x51, - 0x45, 0x49, - 0xAB, - 0x34, - 0x6E, - 0x8C, - 0x21, - 0x30, - 0x0E, - 0xA5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessorInputView)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetResource(ID3D11Resource** ppResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDesc(VideoProcessorInputViewDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11VideoProcessorOutputView -[Guid("a048285e-25a9-4527-bd93-d68b68c44254")] -[NativeTypeName("struct ID3D11VideoProcessorOutputView : ID3D11View")] -[NativeInheritance("ID3D11View")] -public unsafe partial struct ID3D11VideoProcessorOutputView -{ - public static ref readonly Guid IID_ID3D11VideoProcessorOutputView - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5E, 0x28, 0x48, 0xA0, - 0xA9, 0x25, - 0x27, 0x45, - 0xBD, - 0x93, - 0xD6, - 0x8B, - 0x68, - 0xC4, - 0x42, - 0x54 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessorOutputView)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetResource(ID3D11Resource** ppResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDesc(VideoProcessorOutputViewDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11VideoContext -[Guid("61f21c45-3c0e-4a74-9cea-67100d9ad5e4")] -[NativeTypeName("struct ID3D11VideoContext : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11VideoContext -{ - public static ref readonly Guid IID_ID3D11VideoContext - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x45, 0x1C, 0xF2, 0x61, - 0x0E, 0x3C, - 0x74, 0x4A, - 0x9C, - 0xEA, - 0x67, - 0x10, - 0x0D, - 0x9A, - 0xD5, - 0xE4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoContext)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type, uint* pBufferSize, void** ppBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pDecoder, Type, pBufferSize, ppBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult ReleaseDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pDecoder, Type); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult DecoderBeginFrame(ID3D11VideoDecoder* pDecoder, ID3D11VideoDecoderOutputView* pView, uint ContentKeySize, void* pContentKey) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pDecoder, pView, ContentKeySize, pContentKey); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult DecoderEndFrame(ID3D11VideoDecoder* pDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SubmitDecoderBuffers(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription* pBufferDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public int DecoderExtension(ID3D11VideoDecoder* pDecoder, VideoDecoderExtension* pExtensionData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pDecoder, pExtensionData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void VideoProcessorSetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void VideoProcessorSetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32 YCbCr, VideoColor* pColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, YCbCr, pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void VideoProcessorSetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void VideoProcessorSetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode AlphaFillMode, uint StreamIndex) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, AlphaFillMode, StreamIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void VideoProcessorSetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, System.Drawing.Size Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void VideoProcessorSetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public int VideoProcessorSetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void VideoProcessorGetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32* Enabled, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, Enabled, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void VideoProcessorGetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32* pYCbCr, VideoColor* pColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pYCbCr, pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void VideoProcessorGetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void VideoProcessorGetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode* pAlphaFillMode, uint* pStreamIndex) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pAlphaFillMode, pStreamIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void VideoProcessorGetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled, System.Drawing.Size* pSize) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled, pSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void VideoProcessorGetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public int VideoProcessorGetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void VideoProcessorSetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat FrameFormat) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, FrameFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void VideoProcessorSetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void VideoProcessorSetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate OutputRate, Bool32 RepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, OutputRate, RepeatFrame, pCustomRate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void VideoProcessorSetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void VideoProcessorSetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void VideoProcessorSetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Alpha) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Alpha); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void VideoProcessorSetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void VideoProcessorSetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pSourceAspectRatio, pDestinationAspectRatio); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void VideoProcessorSetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Lower, float Upper) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Lower, Upper); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void VideoProcessorSetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorStereoFormat Format, Bool32 LeftViewFrame0, Bool32 BaseViewFrame0, VideoProcessorStereoFlipMode FlipMode, int MonoOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Format, LeftViewFrame0, BaseViewFrame0, FlipMode, MonoOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void VideoProcessorSetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void VideoProcessorSetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32 Enable, int Level) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, Enable, Level); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public int VideoProcessorSetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void VideoProcessorGetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat* pFrameFormat) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pFrameFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void VideoProcessorGetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void VideoProcessorGetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate* pOutputRate, Bool32* pRepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pOutputRate, pRepeatFrame, pCustomRate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void VideoProcessorGetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void VideoProcessorGetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void VideoProcessorGetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pAlpha) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pAlpha); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void VideoProcessorGetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void VideoProcessorGetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pSourceAspectRatio, pDestinationAspectRatio); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void VideoProcessorGetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pLower, float* pUpper) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pLower, pUpper); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void VideoProcessorGetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorStereoFormat* pFormat, Bool32* pLeftViewFrame0, Bool32* pBaseViewFrame0, VideoProcessorStereoFlipMode* pFlipMode, int* MonoOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFormat, pLeftViewFrame0, pBaseViewFrame0, pFlipMode, MonoOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void VideoProcessorGetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void VideoProcessorGetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32* pEnabled, int* pLevel) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, pEnabled, pLevel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public int VideoProcessorGetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult VideoProcessorBlt(ID3D11VideoProcessor* pVideoProcessor, ID3D11VideoProcessorOutputView* pView, uint OutputFrame, uint StreamCount, VideoProcessorStream* pStreams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pView, OutputFrame, StreamCount, pStreams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult NegotiateCryptoSessionKeyExchange(ID3D11CryptoSession* pCryptoSession, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pCryptoSession, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void EncryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, uint IVSize, void* pIV) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, IVSize, pIV); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void DecryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, EncryptedBlockInfo* pEncryptedBlockInfo, uint ContentKeySize, void* pContentKey, uint IVSize, void* pIV) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, pEncryptedBlockInfo, ContentKeySize, pContentKey, IVSize, pIV); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void StartSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession, uint RandomNumberSize, void* pRandomNumber) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pCryptoSession, RandomNumberSize, pRandomNumber); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void FinishSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pCryptoSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult GetEncryptionBltKey(ID3D11CryptoSession* pCryptoSession, uint KeySize, void* pReadbackKey) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pCryptoSession, KeySize, pReadbackKey); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult NegotiateAuthenticatedChannelKeyExchange(ID3D11AuthenticatedChannel* pChannel, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pChannel, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult QueryAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, uint OutputSize, void* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, OutputSize, pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult ConfigureAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, AuthenticatedConfigureOutput* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void VideoProcessorSetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorRotation Rotation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Rotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void VideoProcessorGetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorRotation* pRotation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pRotation); - } -} - -/// -/// ID3D11VideoDevice -[Guid("10ec4d5b-975a-4689-b9e4-d0aac30fe333")] -[NativeTypeName("struct ID3D11VideoDevice : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11VideoDevice -{ - public static ref readonly Guid IID_ID3D11VideoDevice - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5B, 0x4D, 0xEC, 0x10, - 0x5A, 0x97, - 0x89, 0x46, - 0xB9, - 0xE4, - 0xD0, - 0xAA, - 0xC3, - 0x0F, - 0xE3, - 0x33 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDevice)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateVideoDecoder(VideoDecoderDescription* pVideoDesc, VideoDecoderConfig* pConfig, ID3D11VideoDecoder** ppDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pVideoDesc, pConfig, ppDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateVideoProcessor(ID3D11VideoProcessorEnumerator* pEnum, uint RateConversionIndex, ID3D11VideoProcessor** ppVideoProcessor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pEnum, RateConversionIndex, ppVideoProcessor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateAuthenticatedChannel(AuthenticatedChannelType ChannelType, ID3D11AuthenticatedChannel** ppAuthenticatedChannel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), ChannelType, ppAuthenticatedChannel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateCryptoSession(Guid* pCryptoType, Guid* pDecoderProfile, Guid* pKeyExchangeType, ID3D11CryptoSession** ppCryptoSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pKeyExchangeType, ppCryptoSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateVideoDecoderOutputView(ID3D11Resource* pResource, VideoDecoderOutputViewDescription* pDesc, ID3D11VideoDecoderOutputView** ppVDOVView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pResource, pDesc, ppVDOVView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateVideoProcessorInputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorInputViewDescription* pDesc, ID3D11VideoProcessorInputView** ppVPIView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPIView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateVideoProcessorOutputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorOutputViewDescription* pDesc, ID3D11VideoProcessorOutputView** ppVPOView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPOView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateVideoProcessorEnumerator(VideoProcessorContentDescription* pDesc, ID3D11VideoProcessorEnumerator** ppEnum) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pDesc, ppEnum); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public uint GetVideoDecoderProfileCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetVideoDecoderProfile(uint Index, Guid* pDecoderProfile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), Index, pDecoderProfile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CheckVideoDecoderFormat(Guid* pDecoderProfile, Graphics.Dxgi.Common.Format Format, Bool32* pSupported) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pDecoderProfile, Format, pSupported); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetVideoDecoderConfigCount(VideoDecoderDescription* pDesc, uint* pCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pDesc, pCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetVideoDecoderConfig(VideoDecoderDescription* pDesc, uint Index, VideoDecoderConfig* pConfig) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pDesc, Index, pConfig); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetContentProtectionCaps(Guid* pCryptoType, Guid* pDecoderProfile, VideoContentProtectionCaps* pCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CheckCryptoKeyExchange(Guid* pCryptoType, Guid* pDecoderProfile, uint Index, Guid* pKeyExchangeType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, Index, pKeyExchangeType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), guid, pData); - } -} - -/// -/// ID3D11Device -[Guid("db6f6ddb-ac77-4e88-8253-819df9bbf140")] -[NativeTypeName("struct ID3D11Device : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11Device -{ - public static ref readonly Guid IID_ID3D11Device - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDB, 0x6D, 0x6F, 0xDB, - 0x77, 0xAC, - 0x88, 0x4E, - 0x82, - 0x53, - 0x81, - 0x9D, - 0xF9, - 0xBB, - 0xF1, - 0x40 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Device*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Device*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture1D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Device*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture2D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Device*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture3D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Device*)Unsafe.AsPointer(ref this), pResource, pDesc, ppSRView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Device*)Unsafe.AsPointer(ref this), pResource, pDesc, ppUAView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Device*)Unsafe.AsPointer(ref this), pResource, pDesc, ppRTView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Device*)Unsafe.AsPointer(ref this), pResource, pDesc, ppDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Device*)Unsafe.AsPointer(ref this), pInputElementDescs, NumElements, pShaderBytecodeWithInputSignature, BytecodeLength, ppInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppVertexShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppGeometryShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pSODeclaration, NumEntries, pBufferStrides, NumStrides, RasterizedStream, pClassLinkage, ppGeometryShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppPixelShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppHullShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppDomainShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppComputeShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11Device*)Unsafe.AsPointer(ref this), ppLinkage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11Device*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11Device*)Unsafe.AsPointer(ref this), pDepthStencilDesc, ppDepthStencilState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11Device*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11Device*)Unsafe.AsPointer(ref this), pSamplerDesc, ppSamplerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11Device*)Unsafe.AsPointer(ref this), pQueryDesc, ppQuery); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11Device*)Unsafe.AsPointer(ref this), pPredicateDesc, ppPredicate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11Device*)Unsafe.AsPointer(ref this), pCounterDesc, ppCounter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11Device*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult OpenSharedResource(IntPtr hResource, Guid* ReturnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11Device*)Unsafe.AsPointer(ref this), hResource, ReturnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11Device*)Unsafe.AsPointer(ref this), Format, pFormatSupport); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11Device*)Unsafe.AsPointer(ref this), Format, SampleCount, pNumQualityLevels); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void CheckCounterInfo(CounterInfo* pCounterInfo) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11Device*)Unsafe.AsPointer(ref this), pCounterInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11Device*)Unsafe.AsPointer(ref this), pDesc, pType, pActiveCounters, szName, pNameLength, szUnits, pUnitsLength, szDescription, pDescriptionLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11Device*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11Device*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11Device*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11Device*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public Graphics.Direct3D.FeatureLevel GetFeatureLevel() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11Device*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public uint GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11Device*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11Device*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11Device*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult SetExceptionMode(uint RaiseFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11Device*)Unsafe.AsPointer(ref this), RaiseFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public uint GetExceptionMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11Device*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D11Debug -[Guid("79cf2233-7536-4948-9d36-1e4692dc5760")] -[NativeTypeName("struct ID3D11Debug : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11Debug -{ - public static ref readonly Guid IID_ID3D11Debug - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x33, 0x22, 0xCF, 0x79, - 0x36, 0x75, - 0x48, 0x49, - 0x9D, - 0x36, - 0x1E, - 0x46, - 0x92, - 0xDC, - 0x57, - 0x60 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Debug)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetFeatureMask(uint Mask) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Debug*)Unsafe.AsPointer(ref this), Mask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetFeatureMask() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Debug*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPresentPerRenderOpDelay(uint Milliseconds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Debug*)Unsafe.AsPointer(ref this), Milliseconds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public uint GetPresentPerRenderOpDelay() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Debug*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetSwapChain(Graphics.Dxgi.IDXGISwapChain* pSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Debug*)Unsafe.AsPointer(ref this), pSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetSwapChain(Graphics.Dxgi.IDXGISwapChain** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Debug*)Unsafe.AsPointer(ref this), ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult ValidateContext(ID3D11DeviceContext* pContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Debug*)Unsafe.AsPointer(ref this), pContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult ReportLiveDeviceObjects(ReportLiveDeviceObjectFlags Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Debug*)Unsafe.AsPointer(ref this), Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult ValidateContextForDispatch(ID3D11DeviceContext* pContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Debug*)Unsafe.AsPointer(ref this), pContext); - } -} - -/// -/// ID3D11SwitchToRef -[Guid("1ef337e3-58e7-4f83-a692-db221f5ed47e")] -[NativeTypeName("struct ID3D11SwitchToRef : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11SwitchToRef -{ - public static ref readonly Guid IID_ID3D11SwitchToRef - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE3, 0x37, 0xF3, 0x1E, - 0xE7, 0x58, - 0x83, 0x4F, - 0xA6, - 0x92, - 0xDB, - 0x22, - 0x1F, - 0x5E, - 0xD4, - 0x7E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11SwitchToRef)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Bool32 SetUseRef(Bool32 UseRef) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11SwitchToRef*)Unsafe.AsPointer(ref this), UseRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public Bool32 GetUseRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11SwitchToRef*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D11TracingDevice -[Guid("1911c771-1587-413e-a7e0-fb26c3de0268")] -[NativeTypeName("struct ID3D11TracingDevice : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11TracingDevice -{ - public static ref readonly Guid IID_ID3D11TracingDevice - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x71, 0xC7, 0x11, 0x19, - 0x87, 0x15, - 0x3E, 0x41, - 0xA7, - 0xE0, - 0xFB, - 0x26, - 0xC3, - 0xDE, - 0x02, - 0x68 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11TracingDevice)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetShaderTrackingOptionsByType(uint ResourceTypeFlags, uint Options) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11TracingDevice*)Unsafe.AsPointer(ref this), ResourceTypeFlags, Options); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetShaderTrackingOptions(IUnknown* pShader, uint Options) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11TracingDevice*)Unsafe.AsPointer(ref this), pShader, Options); - } -} - -/// -/// ID3D11RefTrackingOptions -[Guid("193dacdf-0db2-4c05-a55c-ef06cac56fd9")] -[NativeTypeName("struct ID3D11RefTrackingOptions : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11RefTrackingOptions -{ - public static ref readonly Guid IID_ID3D11RefTrackingOptions - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDF, 0xAC, 0x3D, 0x19, - 0xB2, 0x0D, - 0x05, 0x4C, - 0xA5, - 0x5C, - 0xEF, - 0x06, - 0xCA, - 0xC5, - 0x6F, - 0xD9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RefTrackingOptions)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetTrackingOptions(uint uOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RefTrackingOptions*)Unsafe.AsPointer(ref this), uOptions); - } -} - -/// -/// ID3D11RefDefaultTrackingOptions -[Guid("03916615-c644-418c-9bf4-75db5be63ca0")] -[NativeTypeName("struct ID3D11RefDefaultTrackingOptions : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11RefDefaultTrackingOptions -{ - public static ref readonly Guid IID_ID3D11RefDefaultTrackingOptions - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x15, 0x66, 0x91, 0x03, - 0x44, 0xC6, - 0x8C, 0x41, - 0x9B, - 0xF4, - 0x75, - 0xDB, - 0x5B, - 0xE6, - 0x3C, - 0xA0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RefDefaultTrackingOptions)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetTrackingOptions(uint ResourceTypeFlags, uint Options) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RefDefaultTrackingOptions*)Unsafe.AsPointer(ref this), ResourceTypeFlags, Options); - } -} - -/// -/// ID3D11InfoQueue -[Guid("6543dbb6-1b48-42f5-ab82-e97ec74326f6")] -[NativeTypeName("struct ID3D11InfoQueue : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11InfoQueue -{ - public static ref readonly Guid IID_ID3D11InfoQueue - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB6, 0xDB, 0x43, 0x65, - 0x48, 0x1B, - 0xF5, 0x42, - 0xAB, - 0x82, - 0xE9, - 0x7E, - 0xC7, - 0x43, - 0x26, - 0xF6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11InfoQueue)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetMessageCountLimit(ulong MessageCountLimit) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), MessageCountLimit); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void ClearStoredMessages() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetMessage(ulong MessageIndex, Message* pMessage, nuint* pMessageByteLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), MessageIndex, pMessage, pMessageByteLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ulong GetNumMessagesAllowedByStorageFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public ulong GetNumMessagesDeniedByStorageFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ulong GetNumStoredMessages() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public ulong GetNumStoredMessagesAllowedByRetrievalFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public ulong GetNumMessagesDiscardedByMessageCountLimit() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public ulong GetMessageCountLimit() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult AddStorageFilterEntries(InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetStorageFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void ClearStorageFilter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult PushEmptyStorageFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult PushCopyOfStorageFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult PushStorageFilter(InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void PopStorageFilter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public uint GetStorageFilterStackSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult AddRetrievalFilterEntries(InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetRetrievalFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void ClearRetrievalFilter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult PushEmptyRetrievalFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult PushCopyOfRetrievalFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult PushRetrievalFilter(InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void PopRetrievalFilter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public uint GetRetrievalFilterStackSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult AddMessage(MessageCategory Category, MessageSeverity Severity, MessageId ID, sbyte* pDescription) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), Category, Severity, ID, pDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult AddApplicationMessage(MessageSeverity Severity, sbyte* pDescription) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), Severity, pDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult SetBreakOnCategory(MessageCategory Category, Bool32 bEnable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), Category, bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult SetBreakOnSeverity(MessageSeverity Severity, Bool32 bEnable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), Severity, bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult SetBreakOnID(MessageId ID, Bool32 bEnable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), ID, bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public Bool32 GetBreakOnCategory(MessageCategory Category) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), Category); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public Bool32 GetBreakOnSeverity(MessageSeverity Severity) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), Severity); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public Bool32 GetBreakOnID(MessageId ID) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), ID); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetMuteDebugOutput(Bool32 bMute) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), bMute); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public Bool32 GetMuteDebugOutput() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D11BlendState1 -[Guid("cc86fabe-da55-401d-85e7-e3c9de2877e9")] -[NativeTypeName("struct ID3D11BlendState1 : ID3D11BlendState")] -[NativeInheritance("ID3D11BlendState")] -public unsafe partial struct ID3D11BlendState1 -{ - public static ref readonly Guid IID_ID3D11BlendState1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBE, 0xFA, 0x86, 0xCC, - 0x55, 0xDA, - 0x1D, 0x40, - 0x85, - 0xE7, - 0xE3, - 0xC9, - 0xDE, - 0x28, - 0x77, - 0xE9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11BlendState1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDesc(BlendDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDesc1(BlendDescription1* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11RasterizerState1 -[Guid("1217d7a6-5039-418c-b042-9cbe256afd6e")] -[NativeTypeName("struct ID3D11RasterizerState1 : ID3D11RasterizerState")] -[NativeInheritance("ID3D11RasterizerState")] -public unsafe partial struct ID3D11RasterizerState1 -{ - public static ref readonly Guid IID_ID3D11RasterizerState1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA6, 0xD7, 0x17, 0x12, - 0x39, 0x50, - 0x8C, 0x41, - 0xB0, - 0x42, - 0x9C, - 0xBE, - 0x25, - 0x6A, - 0xFD, - 0x6E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RasterizerState1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDesc(RasterizerDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetDesc1(RasterizerDescription1* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3DDeviceContextState -[Guid("5c1e0d8a-7c23-48f9-8c59-a92958ceff11")] -[NativeTypeName("struct ID3DDeviceContextState : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3DDeviceContextState -{ - public static ref readonly Guid IID_ID3DDeviceContextState - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8A, 0x0D, 0x1E, 0x5C, - 0x23, 0x7C, - 0xF9, 0x48, - 0x8C, - 0x59, - 0xA9, - 0x29, - 0x58, - 0xCE, - 0xFF, - 0x11 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DDeviceContextState)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3DDeviceContextState*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3DDeviceContextState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3DDeviceContextState*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3DDeviceContextState*)Unsafe.AsPointer(ref this), guid, pData); - } -} - -/// -/// ID3D11DeviceContext1 -[Guid("bb2c6faa-b5fb-4082-8e6b-388b8cfa90e1")] -[NativeTypeName("struct ID3D11DeviceContext1 : ID3D11DeviceContext")] -[NativeInheritance("ID3D11DeviceContext")] -public unsafe partial struct ID3D11DeviceContext1 -{ - public static ref readonly Guid IID_ID3D11DeviceContext1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAA, 0x6F, 0x2C, 0xBB, - 0xFB, 0xB5, - 0x82, 0x40, - 0x8E, - 0x6B, - 0x38, - 0x8B, - 0x8C, - 0xFA, - 0x90, - 0xE1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void VSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void PSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void PSSetShader(ID3D11PixelShader* pPixelShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pPixelShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void PSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void VSSetShader(ID3D11VertexShader* pVertexShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pVertexShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void DrawIndexed(uint IndexCount, uint StartIndexLocation, int BaseVertexLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), IndexCount, StartIndexLocation, BaseVertexLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void Draw(uint VertexCount, uint StartVertexLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), VertexCount, StartVertexLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult Map(ID3D11Resource* pResource, uint Subresource, Map MapType, uint MapFlags, MappedSubresource* pMappedResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void Unmap(ID3D11Resource* pResource, uint Subresource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResource, Subresource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void PSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void IASetInputLayout(ID3D11InputLayout* pInputLayout) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void IASetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void IASetIndexBuffer(ID3D11Buffer* pIndexBuffer, Graphics.Dxgi.Common.Format Format, uint Offset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void GSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void GSSetShader(ID3D11GeometryShader* pShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology Topology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), Topology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void VSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void VSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void Begin(ID3D11Asynchronous* pAsync) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pAsync); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void End(ID3D11Asynchronous* pAsync) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pAsync); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetData(ID3D11Asynchronous* pAsync, void* pData, uint DataSize, uint GetDataFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pAsync, pData, DataSize, GetDataFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void SetPredication(ID3D11Predicate* pPredicate, Bool32 PredicateValue) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pPredicate, PredicateValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void GSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void GSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void OMSetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, pDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void OMSetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, pDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void OMSetBlendState(ID3D11BlendState* pBlendState, float* BlendFactor, uint SampleMask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pBlendState, BlendFactor, SampleMask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void OMSetDepthStencilState(ID3D11DepthStencilState* pDepthStencilState, uint StencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDepthStencilState, StencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SOSetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void DrawAuto() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void DrawIndexedInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void DrawInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void DispatchIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void RSSetState(ID3D11RasterizerState* pRasterizerState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void RSSetViewports(uint NumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void RSSetScissorRects(uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void CopySubresourceRegion(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void CopyResource(ID3D11Resource* pDstResource, ID3D11Resource* pSrcResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void UpdateSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void CopyStructureCount(ID3D11Buffer* pDstBuffer, uint DstAlignedByteOffset, ID3D11UnorderedAccessView* pSrcView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstBuffer, DstAlignedByteOffset, pSrcView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void ClearRenderTargetView(ID3D11RenderTargetView* pRenderTargetView, float* ColorRGBA) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pRenderTargetView, ColorRGBA); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void ClearUnorderedAccessViewUint(ID3D11UnorderedAccessView* pUnorderedAccessView, uint* Values) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearUnorderedAccessViewFloat(ID3D11UnorderedAccessView* pUnorderedAccessView, float* Values) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, uint ClearFlags, float Depth, byte Stencil) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pShaderResourceView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void SetResourceMinLOD(ID3D11Resource* pResource, float MinLOD) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResource, MinLOD); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public float GetResourceMinLOD(ID3D11Resource* pResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void ResolveSubresource(ID3D11Resource* pDstResource, uint DstSubresource, ID3D11Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void ExecuteCommandList(ID3D11CommandList* pCommandList, Bool32 RestoreContextState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pCommandList, RestoreContextState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void HSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void HSSetShader(ID3D11HullShader* pHullShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pHullShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void HSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void HSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void DSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void DSSetShader(ID3D11DomainShader* pDomainShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDomainShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void DSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void DSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void CSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void CSSetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void CSSetShader(ID3D11ComputeShader* pComputeShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pComputeShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void CSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void CSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void VSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void PSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void PSGetShader(ID3D11PixelShader** ppPixelShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppPixelShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void PSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void VSGetShader(ID3D11VertexShader** ppVertexShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppVertexShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void PSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void IAGetInputLayout(ID3D11InputLayout** ppInputLayout) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void IAGetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void IAGetIndexBuffer(ID3D11Buffer** pIndexBuffer, Graphics.Dxgi.Common.Format* Format, uint* Offset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void GSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void GSGetShader(ID3D11GeometryShader** ppGeometryShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppGeometryShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void IAGetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology* pTopology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pTopology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void VSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public void VSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void GetPredication(ID3D11Predicate** ppPredicate, Bool32* pPredicateValue) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppPredicate, pPredicateValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public void GSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public void GSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public void OMGetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, ppDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public void OMGetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, ppDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public void OMGetBlendState(ID3D11BlendState** ppBlendState, float* BlendFactor, uint* pSampleMask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppBlendState, BlendFactor, pSampleMask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public void OMGetDepthStencilState(ID3D11DepthStencilState** ppDepthStencilState, uint* pStencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppDepthStencilState, pStencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(89)] - public void SOGetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(90)] - public void RSGetState(ID3D11RasterizerState** ppRasterizerState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(91)] - public void RSGetViewports(uint* pNumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pNumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(92)] - public void RSGetScissorRects(uint* pNumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pNumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(93)] - public void HSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(94)] - public void HSGetShader(ID3D11HullShader** ppHullShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppHullShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(95)] - public void HSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(96)] - public void HSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(97)] - public void DSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(98)] - public void DSGetShader(ID3D11DomainShader** ppDomainShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppDomainShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(99)] - public void DSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(100)] - public void DSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(101)] - public void CSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(102)] - public void CSGetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(103)] - public void CSGetShader(ID3D11ComputeShader** ppComputeShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppComputeShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(104)] - public void CSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(105)] - public void CSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(106)] - public void ClearState() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(107)] - public void Flush() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(108)] - public new DeviceContextType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(109)] - public uint GetContextFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(110)] - public HResult FinishCommandList(Bool32 RestoreDeferredContextState, ID3D11CommandList** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), RestoreDeferredContextState, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(111)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(112)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(113)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(114)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(115)] - public void CopySubresourceRegion1(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox, uint CopyFlags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[115]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox, CopyFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(116)] - public void UpdateSubresource1(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch, uint CopyFlags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[116]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch, CopyFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(117)] - public void DiscardResource(ID3D11Resource* pResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[117]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(118)] - public void DiscardView(ID3D11View* pResourceView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[118]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResourceView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(119)] - public void VSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[119]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(120)] - public void HSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[120]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(121)] - public void DSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[121]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(122)] - public void GSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[122]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(123)] - public void PSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[123]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(124)] - public void CSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[124]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(125)] - public void VSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[125]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(126)] - public void HSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[126]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(127)] - public void DSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[127]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(128)] - public void GSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[128]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(129)] - public void PSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[129]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(130)] - public void CSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[130]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(131)] - public void SwapDeviceContextState(ID3DDeviceContextState* pState, ID3DDeviceContextState** ppPreviousState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[131]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pState, ppPreviousState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(132)] - public void ClearView(ID3D11View* pView, float* Color, RawRect* pRect, uint NumRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[132]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pView, Color, pRect, NumRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(133)] - public void DiscardView1(ID3D11View* pResourceView, RawRect* pRects, uint NumRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[133]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResourceView, pRects, NumRects); - } -} - -/// -/// ID3D11VideoContext1 -[Guid("a7f026da-a5f8-4487-a564-15e34357651e")] -[NativeTypeName("struct ID3D11VideoContext1 : ID3D11VideoContext")] -[NativeInheritance("ID3D11VideoContext")] -public unsafe partial struct ID3D11VideoContext1 -{ - public static ref readonly Guid IID_ID3D11VideoContext1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDA, 0x26, 0xF0, 0xA7, - 0xF8, 0xA5, - 0x87, 0x44, - 0xA5, - 0x64, - 0x15, - 0xE3, - 0x43, - 0x57, - 0x65, - 0x1E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoContext1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type, uint* pBufferSize, void** ppBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, Type, pBufferSize, ppBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult ReleaseDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, Type); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult DecoderBeginFrame(ID3D11VideoDecoder* pDecoder, ID3D11VideoDecoderOutputView* pView, uint ContentKeySize, void* pContentKey) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, pView, ContentKeySize, pContentKey); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult DecoderEndFrame(ID3D11VideoDecoder* pDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SubmitDecoderBuffers(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription* pBufferDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public int DecoderExtension(ID3D11VideoDecoder* pDecoder, VideoDecoderExtension* pExtensionData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, pExtensionData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void VideoProcessorSetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void VideoProcessorSetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32 YCbCr, VideoColor* pColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, YCbCr, pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void VideoProcessorSetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void VideoProcessorSetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode AlphaFillMode, uint StreamIndex) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, AlphaFillMode, StreamIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void VideoProcessorSetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, System.Drawing.Size Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void VideoProcessorSetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public int VideoProcessorSetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void VideoProcessorGetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32* Enabled, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, Enabled, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void VideoProcessorGetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32* pYCbCr, VideoColor* pColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pYCbCr, pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void VideoProcessorGetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void VideoProcessorGetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode* pAlphaFillMode, uint* pStreamIndex) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pAlphaFillMode, pStreamIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void VideoProcessorGetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled, System.Drawing.Size* pSize) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled, pSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void VideoProcessorGetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public int VideoProcessorGetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void VideoProcessorSetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat FrameFormat) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, FrameFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void VideoProcessorSetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void VideoProcessorSetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate OutputRate, Bool32 RepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, OutputRate, RepeatFrame, pCustomRate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void VideoProcessorSetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void VideoProcessorSetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void VideoProcessorSetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Alpha) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Alpha); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void VideoProcessorSetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void VideoProcessorSetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pSourceAspectRatio, pDestinationAspectRatio); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void VideoProcessorSetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Lower, float Upper) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Lower, Upper); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void VideoProcessorSetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorStereoFormat Format, Bool32 LeftViewFrame0, Bool32 BaseViewFrame0, VideoProcessorStereoFlipMode FlipMode, int MonoOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Format, LeftViewFrame0, BaseViewFrame0, FlipMode, MonoOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void VideoProcessorSetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void VideoProcessorSetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32 Enable, int Level) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, Enable, Level); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public int VideoProcessorSetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void VideoProcessorGetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat* pFrameFormat) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pFrameFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void VideoProcessorGetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void VideoProcessorGetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate* pOutputRate, Bool32* pRepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pOutputRate, pRepeatFrame, pCustomRate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void VideoProcessorGetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void VideoProcessorGetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void VideoProcessorGetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pAlpha) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pAlpha); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void VideoProcessorGetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void VideoProcessorGetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pSourceAspectRatio, pDestinationAspectRatio); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void VideoProcessorGetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pLower, float* pUpper) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pLower, pUpper); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void VideoProcessorGetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorStereoFormat* pFormat, Bool32* pLeftViewFrame0, Bool32* pBaseViewFrame0, VideoProcessorStereoFlipMode* pFlipMode, int* MonoOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFormat, pLeftViewFrame0, pBaseViewFrame0, pFlipMode, MonoOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void VideoProcessorGetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void VideoProcessorGetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32* pEnabled, int* pLevel) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, pEnabled, pLevel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public int VideoProcessorGetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult VideoProcessorBlt(ID3D11VideoProcessor* pVideoProcessor, ID3D11VideoProcessorOutputView* pView, uint OutputFrame, uint StreamCount, VideoProcessorStream* pStreams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pView, OutputFrame, StreamCount, pStreams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult NegotiateCryptoSessionKeyExchange(ID3D11CryptoSession* pCryptoSession, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void EncryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, uint IVSize, void* pIV) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, IVSize, pIV); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void DecryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, EncryptedBlockInfo* pEncryptedBlockInfo, uint ContentKeySize, void* pContentKey, uint IVSize, void* pIV) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, pEncryptedBlockInfo, ContentKeySize, pContentKey, IVSize, pIV); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void StartSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession, uint RandomNumberSize, void* pRandomNumber) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, RandomNumberSize, pRandomNumber); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void FinishSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult GetEncryptionBltKey(ID3D11CryptoSession* pCryptoSession, uint KeySize, void* pReadbackKey) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, KeySize, pReadbackKey); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult NegotiateAuthenticatedChannelKeyExchange(ID3D11AuthenticatedChannel* pChannel, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pChannel, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult QueryAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, uint OutputSize, void* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, OutputSize, pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult ConfigureAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, AuthenticatedConfigureOutput* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void VideoProcessorSetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorRotation Rotation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Rotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void VideoProcessorGetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorRotation* pRotation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pRotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult SubmitDecoderBuffers1(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription1* pBufferDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HResult GetDataForNewHardwareKey(ID3D11CryptoSession* pCryptoSession, uint PrivateInputSize, void* pPrivatInputData, ulong* pPrivateOutputData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, PrivateInputSize, pPrivatInputData, pPrivateOutputData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HResult CheckCryptoSessionStatus(ID3D11CryptoSession* pCryptoSession, CryptoSessionStatus* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public HResult DecoderEnableDownsampling(ID3D11VideoDecoder* pDecoder, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoSampleDescription* pOutputDesc, uint ReferenceFrameCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, InputColorSpace, pOutputDesc, ReferenceFrameCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public HResult DecoderUpdateDownsampling(ID3D11VideoDecoder* pDecoder, VideoSampleDescription* pOutputDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, pOutputDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void VideoProcessorSetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType ColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, ColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void VideoProcessorSetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32 ShaderUsage) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, ShaderUsage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void VideoProcessorGetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void VideoProcessorGetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32* pShaderUsage) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pShaderUsage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void VideoProcessorSetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType ColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, ColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void VideoProcessorSetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Bool32 FlipHorizontal, Bool32 FlipVertical) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, FlipHorizontal, FlipVertical); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void VideoProcessorGetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void VideoProcessorGetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, Bool32* pFlipHorizontal, Bool32* pFlipVertical) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFlipHorizontal, pFlipVertical); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public HResult VideoProcessorGetBehaviorHints(ID3D11VideoProcessor* pVideoProcessor, uint OutputWidth, uint OutputHeight, Graphics.Dxgi.Common.Format OutputFormat, uint StreamCount, VideoProcessorStreamBehaviorHint* pStreams, uint* pBehaviorHints) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, OutputWidth, OutputHeight, OutputFormat, StreamCount, pStreams, pBehaviorHints); - } -} - -/// -/// ID3D11VideoDevice1 -[Guid("29da1d51-1321-4454-804b-f5fc9f861f0f")] -[NativeTypeName("struct ID3D11VideoDevice1 : ID3D11VideoDevice")] -[NativeInheritance("ID3D11VideoDevice")] -public unsafe partial struct ID3D11VideoDevice1 -{ - public static ref readonly Guid IID_ID3D11VideoDevice1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x51, 0x1D, 0xDA, 0x29, - 0x21, 0x13, - 0x54, 0x44, - 0x80, - 0x4B, - 0xF5, - 0xFC, - 0x9F, - 0x86, - 0x1F, - 0x0F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDevice1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateVideoDecoder(VideoDecoderDescription* pVideoDesc, VideoDecoderConfig* pConfig, ID3D11VideoDecoder** ppDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pVideoDesc, pConfig, ppDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateVideoProcessor(ID3D11VideoProcessorEnumerator* pEnum, uint RateConversionIndex, ID3D11VideoProcessor** ppVideoProcessor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pEnum, RateConversionIndex, ppVideoProcessor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateAuthenticatedChannel(AuthenticatedChannelType ChannelType, ID3D11AuthenticatedChannel** ppAuthenticatedChannel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), ChannelType, ppAuthenticatedChannel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateCryptoSession(Guid* pCryptoType, Guid* pDecoderProfile, Guid* pKeyExchangeType, ID3D11CryptoSession** ppCryptoSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pKeyExchangeType, ppCryptoSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateVideoDecoderOutputView(ID3D11Resource* pResource, VideoDecoderOutputViewDescription* pDesc, ID3D11VideoDecoderOutputView** ppVDOVView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pResource, pDesc, ppVDOVView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateVideoProcessorInputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorInputViewDescription* pDesc, ID3D11VideoProcessorInputView** ppVPIView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPIView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateVideoProcessorOutputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorOutputViewDescription* pDesc, ID3D11VideoProcessorOutputView** ppVPOView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPOView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateVideoProcessorEnumerator(VideoProcessorContentDescription* pDesc, ID3D11VideoProcessorEnumerator** ppEnum) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pDesc, ppEnum); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public uint GetVideoDecoderProfileCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetVideoDecoderProfile(uint Index, Guid* pDecoderProfile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), Index, pDecoderProfile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CheckVideoDecoderFormat(Guid* pDecoderProfile, Graphics.Dxgi.Common.Format Format, Bool32* pSupported) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pDecoderProfile, Format, pSupported); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetVideoDecoderConfigCount(VideoDecoderDescription* pDesc, uint* pCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pDesc, pCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetVideoDecoderConfig(VideoDecoderDescription* pDesc, uint Index, VideoDecoderConfig* pConfig) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pDesc, Index, pConfig); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetContentProtectionCaps(Guid* pCryptoType, Guid* pDecoderProfile, VideoContentProtectionCaps* pCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CheckCryptoKeyExchange(Guid* pCryptoType, Guid* pDecoderProfile, uint Index, Guid* pKeyExchangeType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, Index, pKeyExchangeType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetCryptoSessionPrivateDataSize(Guid* pCryptoType, Guid* pDecoderProfile, Guid* pKeyExchangeType, uint* pPrivateInputSize, uint* pPrivateOutputSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pKeyExchangeType, pPrivateInputSize, pPrivateOutputSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetVideoDecoderCaps(Guid* pDecoderProfile, uint SampleWidth, uint SampleHeight, Graphics.Dxgi.Common.Rational* pFrameRate, uint BitRate, Guid* pCryptoType, uint* pDecoderCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pDecoderProfile, SampleWidth, SampleHeight, pFrameRate, BitRate, pCryptoType, pDecoderCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CheckVideoDecoderDownsampling(VideoDecoderDescription* pInputDesc, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoDecoderConfig* pInputConfig, Graphics.Dxgi.Common.Rational* pFrameRate, VideoSampleDescription* pOutputDesc, Bool32* pSupported, Bool32* pRealTimeHint) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pInputDesc, InputColorSpace, pInputConfig, pFrameRate, pOutputDesc, pSupported, pRealTimeHint); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult RecommendVideoDecoderDownsampleParameters(VideoDecoderDescription* pInputDesc, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoDecoderConfig* pInputConfig, Graphics.Dxgi.Common.Rational* pFrameRate, VideoSampleDescription* pRecommendedOutputDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pInputDesc, InputColorSpace, pInputConfig, pFrameRate, pRecommendedOutputDesc); - } -} - -/// -/// ID3D11VideoProcessorEnumerator1 -[Guid("465217f2-5568-43cf-b5b9-f61d54531ca1")] -[NativeTypeName("struct ID3D11VideoProcessorEnumerator1 : ID3D11VideoProcessorEnumerator")] -[NativeInheritance("ID3D11VideoProcessorEnumerator")] -public unsafe partial struct ID3D11VideoProcessorEnumerator1 -{ - public static ref readonly Guid IID_ID3D11VideoProcessorEnumerator1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF2, 0x17, 0x52, 0x46, - 0x68, 0x55, - 0xCF, 0x43, - 0xB5, - 0xB9, - 0xF6, - 0x1D, - 0x54, - 0x53, - 0x1C, - 0xA1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessorEnumerator1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetVideoProcessorContentDesc(VideoProcessorContentDescription* pContentDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), pContentDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CheckVideoProcessorFormat(Graphics.Dxgi.Common.Format Format, uint* pFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), Format, pFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetVideoProcessorCaps(VideoProcessorCaps* pCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), pCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetVideoProcessorRateConversionCaps(uint TypeIndex, VideoProcessorRateConversionCaps* pCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), TypeIndex, pCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetVideoProcessorCustomRate(uint TypeIndex, uint CustomRateIndex, VideoProcessorCustomRate* pRate) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), TypeIndex, CustomRateIndex, pRate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetVideoProcessorFilterRange(VideoProcessorFilter Filter, VideoProcessorFilterRange* pRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), Filter, pRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CheckVideoProcessorFormatConversion(Graphics.Dxgi.Common.Format InputFormat, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, Graphics.Dxgi.Common.Format OutputFormat, Graphics.Dxgi.Common.ColorSpaceType OutputColorSpace, Bool32* pSupported) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), InputFormat, InputColorSpace, OutputFormat, OutputColorSpace, pSupported); - } -} - -/// -/// ID3D11Device1 -[Guid("a04bfb29-08ef-43d6-a49c-a9bdbdcbe686")] -[NativeTypeName("struct ID3D11Device1 : ID3D11Device")] -[NativeInheritance("ID3D11Device")] -public unsafe partial struct ID3D11Device1 -{ - public static ref readonly Guid IID_ID3D11Device1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x29, 0xFB, 0x4B, 0xA0, - 0xEF, 0x08, - 0xD6, 0x43, - 0xA4, - 0x9C, - 0xA9, - 0xBD, - 0xBD, - 0xCB, - 0xE6, - 0x86 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture1D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture2D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture3D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, ppSRView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, ppUAView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, ppRTView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, ppDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pInputElementDescs, NumElements, pShaderBytecodeWithInputSignature, BytecodeLength, ppInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppVertexShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppGeometryShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pSODeclaration, NumEntries, pBufferStrides, NumStrides, RasterizedStream, pClassLinkage, ppGeometryShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppPixelShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppHullShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppDomainShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppComputeShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11Device1*)Unsafe.AsPointer(ref this), ppLinkage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pDepthStencilDesc, ppDepthStencilState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pSamplerDesc, ppSamplerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pQueryDesc, ppQuery); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pPredicateDesc, ppPredicate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pCounterDesc, ppCounter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11Device1*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult OpenSharedResource(IntPtr hResource, Guid* ReturnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11Device1*)Unsafe.AsPointer(ref this), hResource, ReturnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11Device1*)Unsafe.AsPointer(ref this), Format, pFormatSupport); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11Device1*)Unsafe.AsPointer(ref this), Format, SampleCount, pNumQualityLevels); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void CheckCounterInfo(CounterInfo* pCounterInfo) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pCounterInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pDesc, pType, pActiveCounters, szName, pNameLength, szUnits, pUnitsLength, szDescription, pDescriptionLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11Device1*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11Device1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11Device1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11Device1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public Graphics.Direct3D.FeatureLevel GetFeatureLevel() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11Device1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public uint GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11Device1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11Device1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11Device1*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult SetExceptionMode(uint RaiseFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11Device1*)Unsafe.AsPointer(ref this), RaiseFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public uint GetExceptionMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11Device1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void GetImmediateContext1(ID3D11DeviceContext1** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11Device1*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult CreateDeferredContext1(uint ContextFlags, ID3D11DeviceContext1** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11Device1*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult CreateBlendState1(BlendDescription1* pBlendStateDesc, ID3D11BlendState1** ppBlendState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult CreateRasterizerState1(RasterizerDescription1* pRasterizerDesc, ID3D11RasterizerState1** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult CreateDeviceContextState(uint Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Guid* EmulatedInterface, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel, ID3DDeviceContextState** ppContextState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11Device1*)Unsafe.AsPointer(ref this), Flags, pFeatureLevels, FeatureLevels, SDKVersion, EmulatedInterface, pChosenFeatureLevel, ppContextState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult OpenSharedResource1(IntPtr hResource, Guid* returnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11Device1*)Unsafe.AsPointer(ref this), hResource, returnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11Device1*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource); - } -} - -/// -/// ID3DUserDefinedAnnotation -[Guid("b2daad8b-03d4-4dbf-95eb-32ab4b63d0ab")] -[NativeTypeName("struct ID3DUserDefinedAnnotation : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3DUserDefinedAnnotation -{ - public static ref readonly Guid IID_ID3DUserDefinedAnnotation - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8B, 0xAD, 0xDA, 0xB2, - 0xD4, 0x03, - 0xBF, 0x4D, - 0x95, - 0xEB, - 0x32, - 0xAB, - 0x4B, - 0x63, - 0xD0, - 0xAB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DUserDefinedAnnotation)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public int BeginEvent(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public int EndEvent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetMarker(ushort* Name) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public Bool32 GetStatus() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D11DeviceContext2 -[Guid("420d5b32-b90c-4da4-bef0-359f6a24a83a")] -[NativeTypeName("struct ID3D11DeviceContext2 : ID3D11DeviceContext1")] -[NativeInheritance("ID3D11DeviceContext1")] -public unsafe partial struct ID3D11DeviceContext2 -{ - public static ref readonly Guid IID_ID3D11DeviceContext2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x32, 0x5B, 0x0D, 0x42, - 0x0C, 0xB9, - 0xA4, 0x4D, - 0xBE, - 0xF0, - 0x35, - 0x9F, - 0x6A, - 0x24, - 0xA8, - 0x3A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void CopySubresourceRegion1(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox, uint CopyFlags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox, CopyFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void UpdateSubresource1(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch, uint CopyFlags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch, CopyFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void DiscardResource(ID3D11Resource* pResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void DiscardView(ID3D11View* pResourceView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResourceView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void VSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void HSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void DSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void PSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void CSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void VSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void HSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void DSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void PSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void SwapDeviceContextState(ID3DDeviceContextState* pState, ID3DDeviceContextState** ppPreviousState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pState, ppPreviousState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void ClearView(ID3D11View* pView, float* Color, RawRect* pRect, uint NumRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pView, Color, pRect, NumRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void DiscardView1(ID3D11View* pResourceView, RawRect* pRects, uint NumRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResourceView, pRects, NumRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void VSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void PSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void PSSetShader(ID3D11PixelShader* pPixelShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pPixelShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void PSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void VSSetShader(ID3D11VertexShader* pVertexShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pVertexShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void DrawIndexed(uint IndexCount, uint StartIndexLocation, int BaseVertexLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), IndexCount, StartIndexLocation, BaseVertexLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void Draw(uint VertexCount, uint StartVertexLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), VertexCount, StartVertexLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult Map(ID3D11Resource* pResource, uint Subresource, Map MapType, uint MapFlags, MappedSubresource* pMappedResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void Unmap(ID3D11Resource* pResource, uint Subresource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResource, Subresource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void PSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void IASetInputLayout(ID3D11InputLayout* pInputLayout) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void IASetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void IASetIndexBuffer(ID3D11Buffer* pIndexBuffer, Graphics.Dxgi.Common.Format Format, uint Offset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void GSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GSSetShader(ID3D11GeometryShader* pShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology Topology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), Topology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void VSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void VSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void Begin(ID3D11Asynchronous* pAsync) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pAsync); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void End(ID3D11Asynchronous* pAsync) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pAsync); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult GetData(ID3D11Asynchronous* pAsync, void* pData, uint DataSize, uint GetDataFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pAsync, pData, DataSize, GetDataFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SetPredication(ID3D11Predicate* pPredicate, Bool32 PredicateValue) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pPredicate, PredicateValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void GSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void GSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void OMSetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, pDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void OMSetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, pDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void OMSetBlendState(ID3D11BlendState* pBlendState, float* BlendFactor, uint SampleMask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pBlendState, BlendFactor, SampleMask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void OMSetDepthStencilState(ID3D11DepthStencilState* pDepthStencilState, uint StencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDepthStencilState, StencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void SOSetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void DrawAuto() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void DrawIndexedInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void DrawInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void DispatchIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void RSSetState(ID3D11RasterizerState* pRasterizerState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void RSSetViewports(uint NumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void RSSetScissorRects(uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void CopySubresourceRegion(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void CopyResource(ID3D11Resource* pDstResource, ID3D11Resource* pSrcResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void UpdateSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void CopyStructureCount(ID3D11Buffer* pDstBuffer, uint DstAlignedByteOffset, ID3D11UnorderedAccessView* pSrcView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstBuffer, DstAlignedByteOffset, pSrcView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void ClearRenderTargetView(ID3D11RenderTargetView* pRenderTargetView, float* ColorRGBA) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pRenderTargetView, ColorRGBA); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void ClearUnorderedAccessViewUint(ID3D11UnorderedAccessView* pUnorderedAccessView, uint* Values) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void ClearUnorderedAccessViewFloat(ID3D11UnorderedAccessView* pUnorderedAccessView, float* Values) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, uint ClearFlags, float Depth, byte Stencil) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pShaderResourceView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void SetResourceMinLOD(ID3D11Resource* pResource, float MinLOD) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResource, MinLOD); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public float GetResourceMinLOD(ID3D11Resource* pResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void ResolveSubresource(ID3D11Resource* pDstResource, uint DstSubresource, ID3D11Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void ExecuteCommandList(ID3D11CommandList* pCommandList, Bool32 RestoreContextState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pCommandList, RestoreContextState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void HSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void HSSetShader(ID3D11HullShader* pHullShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pHullShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void HSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void HSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void DSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void DSSetShader(ID3D11DomainShader* pDomainShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDomainShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void DSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public void DSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void CSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public void CSSetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public void CSSetShader(ID3D11ComputeShader* pComputeShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pComputeShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public void CSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public void CSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public void VSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public void PSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(89)] - public void PSGetShader(ID3D11PixelShader** ppPixelShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppPixelShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(90)] - public void PSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(91)] - public void VSGetShader(ID3D11VertexShader** ppVertexShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppVertexShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(92)] - public void PSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(93)] - public void IAGetInputLayout(ID3D11InputLayout** ppInputLayout) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(94)] - public void IAGetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(95)] - public void IAGetIndexBuffer(ID3D11Buffer** pIndexBuffer, Graphics.Dxgi.Common.Format* Format, uint* Offset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(96)] - public void GSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(97)] - public void GSGetShader(ID3D11GeometryShader** ppGeometryShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppGeometryShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(98)] - public void IAGetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology* pTopology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pTopology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(99)] - public void VSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(100)] - public void VSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(101)] - public void GetPredication(ID3D11Predicate** ppPredicate, Bool32* pPredicateValue) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppPredicate, pPredicateValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(102)] - public void GSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(103)] - public void GSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(104)] - public void OMGetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, ppDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(105)] - public void OMGetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, ppDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(106)] - public void OMGetBlendState(ID3D11BlendState** ppBlendState, float* BlendFactor, uint* pSampleMask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppBlendState, BlendFactor, pSampleMask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(107)] - public void OMGetDepthStencilState(ID3D11DepthStencilState** ppDepthStencilState, uint* pStencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppDepthStencilState, pStencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(108)] - public void SOGetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(109)] - public void RSGetState(ID3D11RasterizerState** ppRasterizerState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(110)] - public void RSGetViewports(uint* pNumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pNumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(111)] - public void RSGetScissorRects(uint* pNumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pNumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(112)] - public void HSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(113)] - public void HSGetShader(ID3D11HullShader** ppHullShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppHullShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(114)] - public void HSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(115)] - public void HSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[115]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(116)] - public void DSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[116]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(117)] - public void DSGetShader(ID3D11DomainShader** ppDomainShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[117]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppDomainShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(118)] - public void DSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[118]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(119)] - public void DSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[119]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(120)] - public void CSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[120]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(121)] - public void CSGetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[121]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(122)] - public void CSGetShader(ID3D11ComputeShader** ppComputeShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[122]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppComputeShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(123)] - public void CSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[123]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(124)] - public void CSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[124]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(125)] - public void ClearState() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[125]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(126)] - public void Flush() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[126]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(127)] - public new DeviceContextType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[127]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(128)] - public uint GetContextFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[128]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(129)] - public HResult FinishCommandList(Bool32 RestoreDeferredContextState, ID3D11CommandList** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[129]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), RestoreDeferredContextState, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(130)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[130]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(131)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[131]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(132)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[132]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(133)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[133]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(134)] - public HResult UpdateTileMappings(ID3D11Resource* pTiledResource, uint NumTiledResourceRegions, TiledResourceCoordinate* pTiledResourceRegionStartCoordinates, TileRegionSize* pTiledResourceRegionSizes, ID3D11Buffer* pTilePool, uint NumRanges, uint* pRangeFlags, uint* pTilePoolStartOffsets, uint* pRangeTileCounts, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[134]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pTiledResource, NumTiledResourceRegions, pTiledResourceRegionStartCoordinates, pTiledResourceRegionSizes, pTilePool, NumRanges, pRangeFlags, pTilePoolStartOffsets, pRangeTileCounts, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(135)] - public HResult CopyTileMappings(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestRegionStartCoordinate, ID3D11Resource* pSourceTiledResource, TiledResourceCoordinate* pSourceRegionStartCoordinate, TileRegionSize* pTileRegionSize, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[135]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDestTiledResource, pDestRegionStartCoordinate, pSourceTiledResource, pSourceRegionStartCoordinate, pTileRegionSize, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(136)] - public void CopyTiles(ID3D11Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D11Buffer* pBuffer, ulong BufferStartOffsetInBytes, uint Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[136]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(137)] - public void UpdateTiles(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestTileRegionStartCoordinate, TileRegionSize* pDestTileRegionSize, void* pSourceTileData, uint Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[137]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDestTiledResource, pDestTileRegionStartCoordinate, pDestTileRegionSize, pSourceTileData, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(138)] - public HResult ResizeTilePool(ID3D11Buffer* pTilePool, ulong NewSizeInBytes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[138]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pTilePool, NewSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(139)] - public void TiledResourceBarrier(ID3D11DeviceChild* pTiledResourceOrViewAccessBeforeBarrier, ID3D11DeviceChild* pTiledResourceOrViewAccessAfterBarrier) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[139]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pTiledResourceOrViewAccessBeforeBarrier, pTiledResourceOrViewAccessAfterBarrier); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(140)] - public Bool32 IsAnnotationEnabled() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[140]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(141)] - public void SetMarkerInt(ushort* pLabel, int Data) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[141]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pLabel, Data); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(142)] - public void BeginEventInt(ushort* pLabel, int Data) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[142]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pLabel, Data); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(143)] - public void EndEvent() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[143]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D11Device2 -[Guid("9d06dffa-d1e5-4d07-83a8-1bb123f2f841")] -[NativeTypeName("struct ID3D11Device2 : ID3D11Device1")] -[NativeInheritance("ID3D11Device1")] -public unsafe partial struct ID3D11Device2 -{ - public static ref readonly Guid IID_ID3D11Device2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFA, 0xDF, 0x06, 0x9D, - 0xE5, 0xD1, - 0x07, 0x4D, - 0x83, - 0xA8, - 0x1B, - 0xB1, - 0x23, - 0xF2, - 0xF8, - 0x41 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetImmediateContext1(ID3D11DeviceContext1** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDeferredContext1(uint ContextFlags, ID3D11DeviceContext1** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateBlendState1(BlendDescription1* pBlendStateDesc, ID3D11BlendState1** ppBlendState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateRasterizerState1(RasterizerDescription1* pRasterizerDesc, ID3D11RasterizerState1** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateDeviceContextState(uint Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Guid* EmulatedInterface, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel, ID3DDeviceContextState** ppContextState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Device2*)Unsafe.AsPointer(ref this), Flags, pFeatureLevels, FeatureLevels, SDKVersion, EmulatedInterface, pChosenFeatureLevel, ppContextState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult OpenSharedResource1(IntPtr hResource, Guid* returnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Device2*)Unsafe.AsPointer(ref this), hResource, returnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Device2*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture1D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture2D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture3D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, ppSRView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, ppUAView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, ppRTView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, ppDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pInputElementDescs, NumElements, pShaderBytecodeWithInputSignature, BytecodeLength, ppInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppVertexShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppGeometryShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pSODeclaration, NumEntries, pBufferStrides, NumStrides, RasterizedStream, pClassLinkage, ppGeometryShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppPixelShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppHullShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppDomainShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppComputeShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ppLinkage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pDepthStencilDesc, ppDepthStencilState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pSamplerDesc, ppSamplerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pQueryDesc, ppQuery); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pPredicateDesc, ppPredicate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pCounterDesc, ppCounter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult OpenSharedResource(IntPtr hResource, Guid* ReturnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11Device2*)Unsafe.AsPointer(ref this), hResource, ReturnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11Device2*)Unsafe.AsPointer(ref this), Format, pFormatSupport); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11Device2*)Unsafe.AsPointer(ref this), Format, SampleCount, pNumQualityLevels); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void CheckCounterInfo(CounterInfo* pCounterInfo) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pCounterInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pDesc, pType, pActiveCounters, szName, pNameLength, szUnits, pUnitsLength, szDescription, pDescriptionLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11Device2*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11Device2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11Device2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11Device2*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public Graphics.Direct3D.FeatureLevel GetFeatureLevel() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11Device2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public uint GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11Device2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11Device2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult SetExceptionMode(uint RaiseFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11Device2*)Unsafe.AsPointer(ref this), RaiseFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public uint GetExceptionMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11Device2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void GetImmediateContext2(ID3D11DeviceContext2** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult CreateDeferredContext2(uint ContextFlags, ID3D11DeviceContext2** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void GetResourceTiling(ID3D11Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipDescription* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult CheckMultisampleQualityLevels1(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint Flags, uint* pNumQualityLevels) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11Device2*)Unsafe.AsPointer(ref this), Format, SampleCount, Flags, pNumQualityLevels); - } -} - -/// -/// ID3D11Texture2D1 -[Guid("51218251-1e33-4617-9ccb-4d3a4367e7bb")] -[NativeTypeName("struct ID3D11Texture2D1 : ID3D11Texture2D")] -[NativeInheritance("ID3D11Texture2D")] -public unsafe partial struct ID3D11Texture2D1 -{ - public static ref readonly Guid IID_ID3D11Texture2D1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x51, 0x82, 0x21, 0x51, - 0x33, 0x1E, - 0x17, 0x46, - 0x9C, - 0xCB, - 0x4D, - 0x3A, - 0x43, - 0x67, - 0xE7, - 0xBB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture2D1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDesc(Texture2DDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetType(ResourceDimension* pResourceDimension) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), pResourceDimension); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetEvictionPriority(uint EvictionPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), EvictionPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public uint GetEvictionPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void GetDesc1(Texture2DDescription1* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11Texture3D1 -[Guid("0c711683-2853-4846-9bb0-f3e60639e46a")] -[NativeTypeName("struct ID3D11Texture3D1 : ID3D11Texture3D")] -[NativeInheritance("ID3D11Texture3D")] -public unsafe partial struct ID3D11Texture3D1 -{ - public static ref readonly Guid IID_ID3D11Texture3D1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x83, 0x16, 0x71, 0x0C, - 0x53, 0x28, - 0x46, 0x48, - 0x9B, - 0xB0, - 0xF3, - 0xE6, - 0x06, - 0x39, - 0xE4, - 0x6A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture3D1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDesc(Texture3DDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetType(ResourceDimension* pResourceDimension) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), pResourceDimension); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetEvictionPriority(uint EvictionPriority) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), EvictionPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public uint GetEvictionPriority() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void GetDesc1(Texture3DDescription1* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11RasterizerState2 -[Guid("6fbd02fb-209f-46c4-b059-2ed15586a6ac")] -[NativeTypeName("struct ID3D11RasterizerState2 : ID3D11RasterizerState1")] -[NativeInheritance("ID3D11RasterizerState1")] -public unsafe partial struct ID3D11RasterizerState2 -{ - public static ref readonly Guid IID_ID3D11RasterizerState2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFB, 0x02, 0xBD, 0x6F, - 0x9F, 0x20, - 0xC4, 0x46, - 0xB0, - 0x59, - 0x2E, - 0xD1, - 0x55, - 0x86, - 0xA6, - 0xAC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RasterizerState2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDesc1(RasterizerDescription1* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetDesc(RasterizerDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void GetDesc2(RasterizerDescription2* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11ShaderResourceView1 -[Guid("91308b87-9040-411d-8c67-c39253ce3802")] -[NativeTypeName("struct ID3D11ShaderResourceView1 : ID3D11ShaderResourceView")] -[NativeInheritance("ID3D11ShaderResourceView")] -public unsafe partial struct ID3D11ShaderResourceView1 -{ - public static ref readonly Guid IID_ID3D11ShaderResourceView1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x87, 0x8B, 0x30, 0x91, - 0x40, 0x90, - 0x1D, 0x41, - 0x8C, - 0x67, - 0xC3, - 0x92, - 0x53, - 0xCE, - 0x38, - 0x02 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderResourceView1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDesc(ShaderResourceViewDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetResource(ID3D11Resource** ppResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void GetDesc1(ShaderResourceViewDescription1* pDesc1) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), pDesc1); - } -} - -/// -/// ID3D11RenderTargetView1 -[Guid("ffbe2e23-f011-418a-ac56-5ceed7c5b94b")] -[NativeTypeName("struct ID3D11RenderTargetView1 : ID3D11RenderTargetView")] -[NativeInheritance("ID3D11RenderTargetView")] -public unsafe partial struct ID3D11RenderTargetView1 -{ - public static ref readonly Guid IID_ID3D11RenderTargetView1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x23, 0x2E, 0xBE, 0xFF, - 0x11, 0xF0, - 0x8A, 0x41, - 0xAC, - 0x56, - 0x5C, - 0xEE, - 0xD7, - 0xC5, - 0xB9, - 0x4B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RenderTargetView1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDesc(RenderTargetViewDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetResource(ID3D11Resource** ppResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void GetDesc1(RenderTargetViewDescription1* pDesc1) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), pDesc1); - } -} - -/// -/// ID3D11UnorderedAccessView1 -[Guid("7b3b6153-a886-4544-ab37-6537c8500403")] -[NativeTypeName("struct ID3D11UnorderedAccessView1 : ID3D11UnorderedAccessView")] -[NativeInheritance("ID3D11UnorderedAccessView")] -public unsafe partial struct ID3D11UnorderedAccessView1 -{ - public static ref readonly Guid IID_ID3D11UnorderedAccessView1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x53, 0x61, 0x3B, 0x7B, - 0x86, 0xA8, - 0x44, 0x45, - 0xAB, - 0x37, - 0x65, - 0x37, - 0xC8, - 0x50, - 0x04, - 0x03 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11UnorderedAccessView1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDesc(UnorderedAccessViewDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetResource(ID3D11Resource** ppResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void GetDesc1(UnorderedAccessViewDescription1* pDesc1) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), pDesc1); - } -} - -/// -/// ID3D11Query1 -[Guid("631b4766-36dc-461d-8db6-c47e13e60916")] -[NativeTypeName("struct ID3D11Query1 : ID3D11Query")] -[NativeInheritance("ID3D11Query")] -public unsafe partial struct ID3D11Query1 -{ - public static ref readonly Guid IID_ID3D11Query1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x66, 0x47, 0x1B, 0x63, - 0xDC, 0x36, - 0x1D, 0x46, - 0x8D, - 0xB6, - 0xC4, - 0x7E, - 0x13, - 0xE6, - 0x09, - 0x16 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Query1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDesc(QueryDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Query1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetDataSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Query1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Query1*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Query1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Query1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Query1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void GetDesc1(QueryDescription1* pDesc1) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Query1*)Unsafe.AsPointer(ref this), pDesc1); - } -} - -/// -/// ID3D11DeviceContext3 -[Guid("b4e3c01d-e79e-4637-91b2-510e9f4c9b8f")] -[NativeTypeName("struct ID3D11DeviceContext3 : ID3D11DeviceContext2")] -[NativeInheritance("ID3D11DeviceContext2")] -public unsafe partial struct ID3D11DeviceContext3 -{ - public static ref readonly Guid IID_ID3D11DeviceContext3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1D, 0xC0, 0xE3, 0xB4, - 0x9E, 0xE7, - 0x37, 0x46, - 0x91, - 0xB2, - 0x51, - 0x0E, - 0x9F, - 0x4C, - 0x9B, - 0x8F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult UpdateTileMappings(ID3D11Resource* pTiledResource, uint NumTiledResourceRegions, TiledResourceCoordinate* pTiledResourceRegionStartCoordinates, TileRegionSize* pTiledResourceRegionSizes, ID3D11Buffer* pTilePool, uint NumRanges, uint* pRangeFlags, uint* pTilePoolStartOffsets, uint* pRangeTileCounts, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pTiledResource, NumTiledResourceRegions, pTiledResourceRegionStartCoordinates, pTiledResourceRegionSizes, pTilePool, NumRanges, pRangeFlags, pTilePoolStartOffsets, pRangeTileCounts, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CopyTileMappings(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestRegionStartCoordinate, ID3D11Resource* pSourceTiledResource, TiledResourceCoordinate* pSourceRegionStartCoordinate, TileRegionSize* pTileRegionSize, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDestTiledResource, pDestRegionStartCoordinate, pSourceTiledResource, pSourceRegionStartCoordinate, pTileRegionSize, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void CopyTiles(ID3D11Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D11Buffer* pBuffer, ulong BufferStartOffsetInBytes, uint Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void UpdateTiles(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestTileRegionStartCoordinate, TileRegionSize* pDestTileRegionSize, void* pSourceTileData, uint Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDestTiledResource, pDestTileRegionStartCoordinate, pDestTileRegionSize, pSourceTileData, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult ResizeTilePool(ID3D11Buffer* pTilePool, ulong NewSizeInBytes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pTilePool, NewSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void TiledResourceBarrier(ID3D11DeviceChild* pTiledResourceOrViewAccessBeforeBarrier, ID3D11DeviceChild* pTiledResourceOrViewAccessAfterBarrier) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pTiledResourceOrViewAccessBeforeBarrier, pTiledResourceOrViewAccessAfterBarrier); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public Bool32 IsAnnotationEnabled() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void SetMarkerInt(ushort* pLabel, int Data) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pLabel, Data); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void BeginEventInt(ushort* pLabel, int Data) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pLabel, Data); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void EndEvent() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void CopySubresourceRegion1(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox, uint CopyFlags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox, CopyFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void UpdateSubresource1(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch, uint CopyFlags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch, CopyFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void DiscardResource(ID3D11Resource* pResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void DiscardView(ID3D11View* pResourceView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResourceView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void VSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void HSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void DSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void GSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void PSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void VSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void HSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void DSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void GSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void PSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void CSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SwapDeviceContextState(ID3DDeviceContextState* pState, ID3DDeviceContextState** ppPreviousState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pState, ppPreviousState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void ClearView(ID3D11View* pView, float* Color, RawRect* pRect, uint NumRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pView, Color, pRect, NumRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void DiscardView1(ID3D11View* pResourceView, RawRect* pRects, uint NumRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResourceView, pRects, NumRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void VSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void PSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void PSSetShader(ID3D11PixelShader* pPixelShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pPixelShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void PSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void VSSetShader(ID3D11VertexShader* pVertexShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pVertexShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void DrawIndexed(uint IndexCount, uint StartIndexLocation, int BaseVertexLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), IndexCount, StartIndexLocation, BaseVertexLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void Draw(uint VertexCount, uint StartVertexLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), VertexCount, StartVertexLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult Map(ID3D11Resource* pResource, uint Subresource, Map MapType, uint MapFlags, MappedSubresource* pMappedResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void Unmap(ID3D11Resource* pResource, uint Subresource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResource, Subresource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void PSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void IASetInputLayout(ID3D11InputLayout* pInputLayout) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void IASetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetIndexBuffer(ID3D11Buffer* pIndexBuffer, Graphics.Dxgi.Common.Format Format, uint Offset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void GSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void GSSetShader(ID3D11GeometryShader* pShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology Topology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), Topology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void VSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void VSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void Begin(ID3D11Asynchronous* pAsync) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pAsync); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void End(ID3D11Asynchronous* pAsync) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pAsync); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult GetData(ID3D11Asynchronous* pAsync, void* pData, uint DataSize, uint GetDataFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pAsync, pData, DataSize, GetDataFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetPredication(ID3D11Predicate* pPredicate, Bool32 PredicateValue) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pPredicate, PredicateValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void GSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void GSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void OMSetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, pDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void OMSetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, pDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void OMSetBlendState(ID3D11BlendState* pBlendState, float* BlendFactor, uint SampleMask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pBlendState, BlendFactor, SampleMask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void OMSetDepthStencilState(ID3D11DepthStencilState* pDepthStencilState, uint StencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDepthStencilState, StencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void SOSetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void DrawAuto() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void DrawIndexedInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void DrawInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void DispatchIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void RSSetState(ID3D11RasterizerState* pRasterizerState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void RSSetViewports(uint NumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void RSSetScissorRects(uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void CopySubresourceRegion(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void CopyResource(ID3D11Resource* pDstResource, ID3D11Resource* pSrcResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void UpdateSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void CopyStructureCount(ID3D11Buffer* pDstBuffer, uint DstAlignedByteOffset, ID3D11UnorderedAccessView* pSrcView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstBuffer, DstAlignedByteOffset, pSrcView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void ClearRenderTargetView(ID3D11RenderTargetView* pRenderTargetView, float* ColorRGBA) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pRenderTargetView, ColorRGBA); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void ClearUnorderedAccessViewUint(ID3D11UnorderedAccessView* pUnorderedAccessView, uint* Values) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void ClearUnorderedAccessViewFloat(ID3D11UnorderedAccessView* pUnorderedAccessView, float* Values) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, uint ClearFlags, float Depth, byte Stencil) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pShaderResourceView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void SetResourceMinLOD(ID3D11Resource* pResource, float MinLOD) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResource, MinLOD); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public float GetResourceMinLOD(ID3D11Resource* pResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void ResolveSubresource(ID3D11Resource* pDstResource, uint DstSubresource, ID3D11Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public void ExecuteCommandList(ID3D11CommandList* pCommandList, Bool32 RestoreContextState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pCommandList, RestoreContextState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public void HSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public void HSSetShader(ID3D11HullShader* pHullShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pHullShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public void HSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public void HSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public void DSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(89)] - public void DSSetShader(ID3D11DomainShader* pDomainShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDomainShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(90)] - public void DSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(91)] - public void DSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(92)] - public void CSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(93)] - public void CSSetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(94)] - public void CSSetShader(ID3D11ComputeShader* pComputeShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pComputeShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(95)] - public void CSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(96)] - public void CSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(97)] - public void VSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(98)] - public void PSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(99)] - public void PSGetShader(ID3D11PixelShader** ppPixelShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppPixelShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(100)] - public void PSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(101)] - public void VSGetShader(ID3D11VertexShader** ppVertexShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppVertexShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(102)] - public void PSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(103)] - public void IAGetInputLayout(ID3D11InputLayout** ppInputLayout) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(104)] - public void IAGetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(105)] - public void IAGetIndexBuffer(ID3D11Buffer** pIndexBuffer, Graphics.Dxgi.Common.Format* Format, uint* Offset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(106)] - public void GSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(107)] - public void GSGetShader(ID3D11GeometryShader** ppGeometryShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppGeometryShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(108)] - public void IAGetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology* pTopology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pTopology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(109)] - public void VSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(110)] - public void VSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(111)] - public void GetPredication(ID3D11Predicate** ppPredicate, Bool32* pPredicateValue) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppPredicate, pPredicateValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(112)] - public void GSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(113)] - public void GSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(114)] - public void OMGetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, ppDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(115)] - public void OMGetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[115]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, ppDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(116)] - public void OMGetBlendState(ID3D11BlendState** ppBlendState, float* BlendFactor, uint* pSampleMask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[116]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppBlendState, BlendFactor, pSampleMask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(117)] - public void OMGetDepthStencilState(ID3D11DepthStencilState** ppDepthStencilState, uint* pStencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[117]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppDepthStencilState, pStencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(118)] - public void SOGetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[118]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(119)] - public void RSGetState(ID3D11RasterizerState** ppRasterizerState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[119]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(120)] - public void RSGetViewports(uint* pNumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[120]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pNumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(121)] - public void RSGetScissorRects(uint* pNumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[121]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pNumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(122)] - public void HSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[122]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(123)] - public void HSGetShader(ID3D11HullShader** ppHullShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[123]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppHullShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(124)] - public void HSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[124]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(125)] - public void HSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[125]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(126)] - public void DSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[126]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(127)] - public void DSGetShader(ID3D11DomainShader** ppDomainShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[127]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppDomainShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(128)] - public void DSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[128]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(129)] - public void DSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[129]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(130)] - public void CSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[130]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(131)] - public void CSGetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[131]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(132)] - public void CSGetShader(ID3D11ComputeShader** ppComputeShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[132]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppComputeShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(133)] - public void CSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[133]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(134)] - public void CSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[134]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(135)] - public void ClearState() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[135]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(136)] - public void Flush() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[136]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(137)] - public new DeviceContextType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[137]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(138)] - public uint GetContextFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[138]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(139)] - public HResult FinishCommandList(Bool32 RestoreDeferredContextState, ID3D11CommandList** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[139]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), RestoreDeferredContextState, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(140)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[140]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(141)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[141]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(142)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[142]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(143)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[143]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(144)] - public void Flush1(ContextType ContextType, IntPtr hEvent) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[144]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ContextType, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(145)] - public void SetHardwareProtectionState(Bool32 HwProtectionEnable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[145]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), HwProtectionEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(146)] - public void GetHardwareProtectionState(Bool32* pHwProtectionEnable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[146]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pHwProtectionEnable); - } -} - -/// -/// ID3D11Fence -[Guid("affde9d1-1df7-4bb7-8a34-0f46251dab80")] -[NativeTypeName("struct ID3D11Fence : ID3D11DeviceChild")] -[NativeInheritance("ID3D11DeviceChild")] -public unsafe partial struct ID3D11Fence -{ - public static ref readonly Guid IID_ID3D11Fence - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD1, 0xE9, 0xFD, 0xAF, - 0xF7, 0x1D, - 0xB7, 0x4B, - 0x8A, - 0x34, - 0x0F, - 0x46, - 0x25, - 0x1D, - 0xAB, - 0x80 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Fence)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Fence*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Fence*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Fence*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Fence*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateSharedHandle(Security.SECURITY_ATTRIBUTES* pAttributes, uint dwAccess, ushort* lpName, IntPtr* pHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Fence*)Unsafe.AsPointer(ref this), pAttributes, dwAccess, lpName, pHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ulong GetCompletedValue() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Fence*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetEventOnCompletion(ulong Value, IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Fence*)Unsafe.AsPointer(ref this), Value, hEvent); - } -} - -/// -/// ID3D11DeviceContext4 -[Guid("917600da-f58c-4c33-98d8-3e15b390fa24")] -[NativeTypeName("struct ID3D11DeviceContext4 : ID3D11DeviceContext3")] -[NativeInheritance("ID3D11DeviceContext3")] -public unsafe partial struct ID3D11DeviceContext4 -{ - public static ref readonly Guid IID_ID3D11DeviceContext4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDA, 0x00, 0x76, 0x91, - 0x8C, 0xF5, - 0x33, 0x4C, - 0x98, - 0xD8, - 0x3E, - 0x15, - 0xB3, - 0x90, - 0xFA, - 0x24 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void Flush1(ContextType ContextType, IntPtr hEvent) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ContextType, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetHardwareProtectionState(Bool32 HwProtectionEnable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), HwProtectionEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetHardwareProtectionState(Bool32* pHwProtectionEnable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pHwProtectionEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult UpdateTileMappings(ID3D11Resource* pTiledResource, uint NumTiledResourceRegions, TiledResourceCoordinate* pTiledResourceRegionStartCoordinates, TileRegionSize* pTiledResourceRegionSizes, ID3D11Buffer* pTilePool, uint NumRanges, uint* pRangeFlags, uint* pTilePoolStartOffsets, uint* pRangeTileCounts, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pTiledResource, NumTiledResourceRegions, pTiledResourceRegionStartCoordinates, pTiledResourceRegionSizes, pTilePool, NumRanges, pRangeFlags, pTilePoolStartOffsets, pRangeTileCounts, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CopyTileMappings(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestRegionStartCoordinate, ID3D11Resource* pSourceTiledResource, TiledResourceCoordinate* pSourceRegionStartCoordinate, TileRegionSize* pTileRegionSize, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDestTiledResource, pDestRegionStartCoordinate, pSourceTiledResource, pSourceRegionStartCoordinate, pTileRegionSize, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void CopyTiles(ID3D11Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D11Buffer* pBuffer, ulong BufferStartOffsetInBytes, uint Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void UpdateTiles(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestTileRegionStartCoordinate, TileRegionSize* pDestTileRegionSize, void* pSourceTileData, uint Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDestTiledResource, pDestTileRegionStartCoordinate, pDestTileRegionSize, pSourceTileData, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult ResizeTilePool(ID3D11Buffer* pTilePool, ulong NewSizeInBytes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pTilePool, NewSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void TiledResourceBarrier(ID3D11DeviceChild* pTiledResourceOrViewAccessBeforeBarrier, ID3D11DeviceChild* pTiledResourceOrViewAccessAfterBarrier) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pTiledResourceOrViewAccessBeforeBarrier, pTiledResourceOrViewAccessAfterBarrier); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public Bool32 IsAnnotationEnabled() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void SetMarkerInt(ushort* pLabel, int Data) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pLabel, Data); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void BeginEventInt(ushort* pLabel, int Data) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pLabel, Data); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void EndEvent() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopySubresourceRegion1(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox, uint CopyFlags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox, CopyFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void UpdateSubresource1(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch, uint CopyFlags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch, CopyFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void DiscardResource(ID3D11Resource* pResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void DiscardView(ID3D11View* pResourceView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResourceView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void VSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void HSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void DSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void GSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void PSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void CSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void VSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void HSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void DSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void GSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void PSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void CSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SwapDeviceContextState(ID3DDeviceContextState* pState, ID3DDeviceContextState** ppPreviousState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pState, ppPreviousState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void ClearView(ID3D11View* pView, float* Color, RawRect* pRect, uint NumRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pView, Color, pRect, NumRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void DiscardView1(ID3D11View* pResourceView, RawRect* pRects, uint NumRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResourceView, pRects, NumRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void VSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void PSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void PSSetShader(ID3D11PixelShader* pPixelShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pPixelShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void PSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void VSSetShader(ID3D11VertexShader* pVertexShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pVertexShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void DrawIndexed(uint IndexCount, uint StartIndexLocation, int BaseVertexLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), IndexCount, StartIndexLocation, BaseVertexLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void Draw(uint VertexCount, uint StartVertexLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), VertexCount, StartVertexLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult Map(ID3D11Resource* pResource, uint Subresource, Map MapType, uint MapFlags, MappedSubresource* pMappedResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void Unmap(ID3D11Resource* pResource, uint Subresource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResource, Subresource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void PSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void IASetInputLayout(ID3D11InputLayout* pInputLayout) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void IASetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void IASetIndexBuffer(ID3D11Buffer* pIndexBuffer, Graphics.Dxgi.Common.Format Format, uint Offset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void GSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void GSSetShader(ID3D11GeometryShader* pShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology Topology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), Topology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void VSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void VSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void Begin(ID3D11Asynchronous* pAsync) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pAsync); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void End(ID3D11Asynchronous* pAsync) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pAsync); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult GetData(ID3D11Asynchronous* pAsync, void* pData, uint DataSize, uint GetDataFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pAsync, pData, DataSize, GetDataFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void SetPredication(ID3D11Predicate* pPredicate, Bool32 PredicateValue) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pPredicate, PredicateValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void GSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void GSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void OMSetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, pDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void OMSetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, pDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void OMSetBlendState(ID3D11BlendState* pBlendState, float* BlendFactor, uint SampleMask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pBlendState, BlendFactor, SampleMask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void OMSetDepthStencilState(ID3D11DepthStencilState* pDepthStencilState, uint StencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDepthStencilState, StencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void SOSetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void DrawAuto() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void DrawIndexedInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void DrawInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void DispatchIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void RSSetState(ID3D11RasterizerState* pRasterizerState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void RSSetViewports(uint NumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void RSSetScissorRects(uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void CopySubresourceRegion(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void CopyResource(ID3D11Resource* pDstResource, ID3D11Resource* pSrcResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void UpdateSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void CopyStructureCount(ID3D11Buffer* pDstBuffer, uint DstAlignedByteOffset, ID3D11UnorderedAccessView* pSrcView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstBuffer, DstAlignedByteOffset, pSrcView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void ClearRenderTargetView(ID3D11RenderTargetView* pRenderTargetView, float* ColorRGBA) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pRenderTargetView, ColorRGBA); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void ClearUnorderedAccessViewUint(ID3D11UnorderedAccessView* pUnorderedAccessView, uint* Values) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void ClearUnorderedAccessViewFloat(ID3D11UnorderedAccessView* pUnorderedAccessView, float* Values) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, uint ClearFlags, float Depth, byte Stencil) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pShaderResourceView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public void SetResourceMinLOD(ID3D11Resource* pResource, float MinLOD) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResource, MinLOD); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public float GetResourceMinLOD(ID3D11Resource* pResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public void ResolveSubresource(ID3D11Resource* pDstResource, uint DstSubresource, ID3D11Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public void ExecuteCommandList(ID3D11CommandList* pCommandList, Bool32 RestoreContextState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pCommandList, RestoreContextState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public void HSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public void HSSetShader(ID3D11HullShader* pHullShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pHullShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(89)] - public void HSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(90)] - public void HSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(91)] - public void DSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(92)] - public void DSSetShader(ID3D11DomainShader* pDomainShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDomainShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(93)] - public void DSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(94)] - public void DSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(95)] - public void CSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(96)] - public void CSSetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(97)] - public void CSSetShader(ID3D11ComputeShader* pComputeShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pComputeShader, ppClassInstances, NumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(98)] - public void CSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(99)] - public void CSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(100)] - public void VSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(101)] - public void PSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(102)] - public void PSGetShader(ID3D11PixelShader** ppPixelShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppPixelShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(103)] - public void PSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(104)] - public void VSGetShader(ID3D11VertexShader** ppVertexShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppVertexShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(105)] - public void PSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(106)] - public void IAGetInputLayout(ID3D11InputLayout** ppInputLayout) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(107)] - public void IAGetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(108)] - public void IAGetIndexBuffer(ID3D11Buffer** pIndexBuffer, Graphics.Dxgi.Common.Format* Format, uint* Offset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(109)] - public void GSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(110)] - public void GSGetShader(ID3D11GeometryShader** ppGeometryShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppGeometryShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(111)] - public void IAGetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology* pTopology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pTopology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(112)] - public void VSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(113)] - public void VSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(114)] - public void GetPredication(ID3D11Predicate** ppPredicate, Bool32* pPredicateValue) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppPredicate, pPredicateValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(115)] - public void GSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[115]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(116)] - public void GSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[116]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(117)] - public void OMGetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[117]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, ppDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(118)] - public void OMGetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[118]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, ppDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(119)] - public void OMGetBlendState(ID3D11BlendState** ppBlendState, float* BlendFactor, uint* pSampleMask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[119]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppBlendState, BlendFactor, pSampleMask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(120)] - public void OMGetDepthStencilState(ID3D11DepthStencilState** ppDepthStencilState, uint* pStencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[120]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppDepthStencilState, pStencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(121)] - public void SOGetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[121]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(122)] - public void RSGetState(ID3D11RasterizerState** ppRasterizerState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[122]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(123)] - public void RSGetViewports(uint* pNumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[123]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pNumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(124)] - public void RSGetScissorRects(uint* pNumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[124]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pNumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(125)] - public void HSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[125]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(126)] - public void HSGetShader(ID3D11HullShader** ppHullShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[126]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppHullShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(127)] - public void HSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[127]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(128)] - public void HSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[128]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(129)] - public void DSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[129]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(130)] - public void DSGetShader(ID3D11DomainShader** ppDomainShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[130]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppDomainShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(131)] - public void DSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[131]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(132)] - public void DSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[132]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(133)] - public void CSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[133]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(134)] - public void CSGetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[134]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(135)] - public void CSGetShader(ID3D11ComputeShader** ppComputeShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[135]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppComputeShader, ppClassInstances, pNumClassInstances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(136)] - public void CSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[136]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(137)] - public void CSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[137]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(138)] - public void ClearState() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[138]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(139)] - public void Flush() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[139]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(140)] - public new DeviceContextType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[140]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(141)] - public uint GetContextFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[141]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(142)] - public HResult FinishCommandList(Bool32 RestoreDeferredContextState, ID3D11CommandList** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[142]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), RestoreDeferredContextState, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(143)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[143]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(144)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[144]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(145)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[145]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(146)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[146]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(147)] - public HResult Signal(ID3D11Fence* pFence, ulong Value) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[147]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pFence, Value); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(148)] - public HResult Wait(ID3D11Fence* pFence, ulong Value) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[148]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pFence, Value); - } -} - -/// -/// ID3D11Device3 -[Guid("a05c8c37-d2c6-4732-b3a0-9ce0b0dc9ae6")] -[NativeTypeName("struct ID3D11Device3 : ID3D11Device2")] -[NativeInheritance("ID3D11Device2")] -public unsafe partial struct ID3D11Device3 -{ - public static ref readonly Guid IID_ID3D11Device3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x37, 0x8C, 0x5C, 0xA0, - 0xC6, 0xD2, - 0x32, 0x47, - 0xB3, - 0xA0, - 0x9C, - 0xE0, - 0xB0, - 0xDC, - 0x9A, - 0xE6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetImmediateContext2(ID3D11DeviceContext2** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDeferredContext2(uint ContextFlags, ID3D11DeviceContext2** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetResourceTiling(ID3D11Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipDescription* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CheckMultisampleQualityLevels1(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint Flags, uint* pNumQualityLevels) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Device3*)Unsafe.AsPointer(ref this), Format, SampleCount, Flags, pNumQualityLevels); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetImmediateContext1(ID3D11DeviceContext1** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateDeferredContext1(uint ContextFlags, ID3D11DeviceContext1** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateBlendState1(BlendDescription1* pBlendStateDesc, ID3D11BlendState1** ppBlendState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateRasterizerState1(RasterizerDescription1* pRasterizerDesc, ID3D11RasterizerState1** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateDeviceContextState(uint Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Guid* EmulatedInterface, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel, ID3DDeviceContextState** ppContextState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Device3*)Unsafe.AsPointer(ref this), Flags, pFeatureLevels, FeatureLevels, SDKVersion, EmulatedInterface, pChosenFeatureLevel, ppContextState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult OpenSharedResource1(IntPtr hResource, Guid* returnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11Device3*)Unsafe.AsPointer(ref this), hResource, returnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11Device3*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture1D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture2D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture3D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, ppSRView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, ppUAView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, ppRTView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, ppDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pInputElementDescs, NumElements, pShaderBytecodeWithInputSignature, BytecodeLength, ppInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppVertexShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppGeometryShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pSODeclaration, NumEntries, pBufferStrides, NumStrides, RasterizedStream, pClassLinkage, ppGeometryShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppPixelShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppHullShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppDomainShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppComputeShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ppLinkage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDepthStencilDesc, ppDepthStencilState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pSamplerDesc, ppSamplerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pQueryDesc, ppQuery); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pPredicateDesc, ppPredicate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pCounterDesc, ppCounter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult OpenSharedResource(IntPtr hResource, Guid* ReturnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11Device3*)Unsafe.AsPointer(ref this), hResource, ReturnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11Device3*)Unsafe.AsPointer(ref this), Format, pFormatSupport); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11Device3*)Unsafe.AsPointer(ref this), Format, SampleCount, pNumQualityLevels); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void CheckCounterInfo(CounterInfo* pCounterInfo) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pCounterInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc, pType, pActiveCounters, szName, pNameLength, szUnits, pUnitsLength, szDescription, pDescriptionLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11Device3*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11Device3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11Device3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11Device3*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public Graphics.Direct3D.FeatureLevel GetFeatureLevel() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11Device3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public uint GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11Device3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11Device3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult SetExceptionMode(uint RaiseFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11Device3*)Unsafe.AsPointer(ref this), RaiseFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public uint GetExceptionMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11Device3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult CreateTexture2D1(Texture2DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture2D1** ppTexture2D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc1, pInitialData, ppTexture2D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult CreateTexture3D1(Texture3DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture3D1** ppTexture3D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc1, pInitialData, ppTexture3D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult CreateRasterizerState2(RasterizerDescription2* pRasterizerDesc, ID3D11RasterizerState2** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult CreateShaderResourceView1(ID3D11Resource* pResource, ShaderResourceViewDescription1* pDesc1, ID3D11ShaderResourceView1** ppSRView1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppSRView1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult CreateUnorderedAccessView1(ID3D11Resource* pResource, UnorderedAccessViewDescription1* pDesc1, ID3D11UnorderedAccessView1** ppUAView1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppUAView1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult CreateRenderTargetView1(ID3D11Resource* pResource, RenderTargetViewDescription1* pDesc1, ID3D11RenderTargetView1** ppRTView1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppRTView1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult CreateQuery1(QueryDescription1* pQueryDesc1, ID3D11Query1** ppQuery1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pQueryDesc1, ppQuery1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void GetImmediateContext3(ID3D11DeviceContext3** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult CreateDeferredContext3(uint ContextFlags, ID3D11DeviceContext3** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void WriteToSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, pSrcResource, SrcSubresource, pSrcBox); - } -} - -/// -/// ID3D11Device4 -[Guid("8992ab71-02e6-4b8d-ba48-b056dcda42c4")] -[NativeTypeName("struct ID3D11Device4 : ID3D11Device3")] -[NativeInheritance("ID3D11Device3")] -public unsafe partial struct ID3D11Device4 -{ - public static ref readonly Guid IID_ID3D11Device4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x71, 0xAB, 0x92, 0x89, - 0xE6, 0x02, - 0x8D, 0x4B, - 0xBA, - 0x48, - 0xB0, - 0x56, - 0xDC, - 0xDA, - 0x42, - 0xC4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateTexture2D1(Texture2DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture2D1** ppTexture2D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc1, pInitialData, ppTexture2D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateTexture3D1(Texture3DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture3D1** ppTexture3D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc1, pInitialData, ppTexture3D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateRasterizerState2(RasterizerDescription2* pRasterizerDesc, ID3D11RasterizerState2** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateShaderResourceView1(ID3D11Resource* pResource, ShaderResourceViewDescription1* pDesc1, ID3D11ShaderResourceView1** ppSRView1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppSRView1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateUnorderedAccessView1(ID3D11Resource* pResource, UnorderedAccessViewDescription1* pDesc1, ID3D11UnorderedAccessView1** ppUAView1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppUAView1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateRenderTargetView1(ID3D11Resource* pResource, RenderTargetViewDescription1* pDesc1, ID3D11RenderTargetView1** ppRTView1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppRTView1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateQuery1(QueryDescription1* pQueryDesc1, ID3D11Query1** ppQuery1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pQueryDesc1, ppQuery1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GetImmediateContext3(ID3D11DeviceContext3** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateDeferredContext3(uint ContextFlags, ID3D11DeviceContext3** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void WriteToSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, pSrcResource, SrcSubresource, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void GetImmediateContext2(ID3D11DeviceContext2** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateDeferredContext2(uint ContextFlags, ID3D11DeviceContext2** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GetResourceTiling(ID3D11Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipDescription* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CheckMultisampleQualityLevels1(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint Flags, uint* pNumQualityLevels) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11Device4*)Unsafe.AsPointer(ref this), Format, SampleCount, Flags, pNumQualityLevels); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void GetImmediateContext1(ID3D11DeviceContext1** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateDeferredContext1(uint ContextFlags, ID3D11DeviceContext1** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateBlendState1(BlendDescription1* pBlendStateDesc, ID3D11BlendState1** ppBlendState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateRasterizerState1(RasterizerDescription1* pRasterizerDesc, ID3D11RasterizerState1** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateDeviceContextState(uint Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Guid* EmulatedInterface, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel, ID3DDeviceContextState** ppContextState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11Device4*)Unsafe.AsPointer(ref this), Flags, pFeatureLevels, FeatureLevels, SDKVersion, EmulatedInterface, pChosenFeatureLevel, ppContextState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult OpenSharedResource1(IntPtr hResource, Guid* returnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11Device4*)Unsafe.AsPointer(ref this), hResource, returnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11Device4*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture1D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture2D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture3D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, ppSRView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, ppUAView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, ppRTView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, ppDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pInputElementDescs, NumElements, pShaderBytecodeWithInputSignature, BytecodeLength, ppInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppVertexShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppGeometryShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pSODeclaration, NumEntries, pBufferStrides, NumStrides, RasterizedStream, pClassLinkage, ppGeometryShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppPixelShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppHullShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppDomainShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppComputeShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ppLinkage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDepthStencilDesc, ppDepthStencilState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pSamplerDesc, ppSamplerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pQueryDesc, ppQuery); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pPredicateDesc, ppPredicate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pCounterDesc, ppCounter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult OpenSharedResource(IntPtr hResource, Guid* ReturnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11Device4*)Unsafe.AsPointer(ref this), hResource, ReturnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11Device4*)Unsafe.AsPointer(ref this), Format, pFormatSupport); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11Device4*)Unsafe.AsPointer(ref this), Format, SampleCount, pNumQualityLevels); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void CheckCounterInfo(CounterInfo* pCounterInfo) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pCounterInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc, pType, pActiveCounters, szName, pNameLength, szUnits, pUnitsLength, szDescription, pDescriptionLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11Device4*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11Device4*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11Device4*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11Device4*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public Graphics.Direct3D.FeatureLevel GetFeatureLevel() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11Device4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public uint GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11Device4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11Device4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult SetExceptionMode(uint RaiseFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11Device4*)Unsafe.AsPointer(ref this), RaiseFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public uint GetExceptionMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11Device4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult RegisterDeviceRemovedEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11Device4*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void UnregisterDeviceRemoved(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11Device4*)Unsafe.AsPointer(ref this), dwCookie); - } -} - -/// -/// ID3D11Device5 -[Guid("8ffde202-a0e7-45df-9e01-e837801b5ea0")] -[NativeTypeName("struct ID3D11Device5 : ID3D11Device4")] -[NativeInheritance("ID3D11Device4")] -public unsafe partial struct ID3D11Device5 -{ - public static ref readonly Guid IID_ID3D11Device5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x02, 0xE2, 0xFD, 0x8F, - 0xE7, 0xA0, - 0xDF, 0x45, - 0x9E, - 0x01, - 0xE8, - 0x37, - 0x80, - 0x1B, - 0x5E, - 0xA0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device5)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult RegisterDeviceRemovedEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Device5*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void UnregisterDeviceRemoved(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Device5*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateTexture2D1(Texture2DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture2D1** ppTexture2D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc1, pInitialData, ppTexture2D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateTexture3D1(Texture3DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture3D1** ppTexture3D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc1, pInitialData, ppTexture3D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateRasterizerState2(RasterizerDescription2* pRasterizerDesc, ID3D11RasterizerState2** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateShaderResourceView1(ID3D11Resource* pResource, ShaderResourceViewDescription1* pDesc1, ID3D11ShaderResourceView1** ppSRView1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppSRView1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateUnorderedAccessView1(ID3D11Resource* pResource, UnorderedAccessViewDescription1* pDesc1, ID3D11UnorderedAccessView1** ppUAView1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppUAView1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateRenderTargetView1(ID3D11Resource* pResource, RenderTargetViewDescription1* pDesc1, ID3D11RenderTargetView1** ppRTView1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppRTView1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateQuery1(QueryDescription1* pQueryDesc1, ID3D11Query1** ppQuery1) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pQueryDesc1, ppQuery1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void GetImmediateContext3(ID3D11DeviceContext3** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateDeferredContext3(uint ContextFlags, ID3D11DeviceContext3** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void WriteToSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, pSrcResource, SrcSubresource, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GetImmediateContext2(ID3D11DeviceContext2** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateDeferredContext2(uint ContextFlags, ID3D11DeviceContext2** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void GetResourceTiling(ID3D11Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipDescription* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CheckMultisampleQualityLevels1(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint Flags, uint* pNumQualityLevels) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11Device5*)Unsafe.AsPointer(ref this), Format, SampleCount, Flags, pNumQualityLevels); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void GetImmediateContext1(ID3D11DeviceContext1** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateDeferredContext1(uint ContextFlags, ID3D11DeviceContext1** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateBlendState1(BlendDescription1* pBlendStateDesc, ID3D11BlendState1** ppBlendState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateRasterizerState1(RasterizerDescription1* pRasterizerDesc, ID3D11RasterizerState1** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateDeviceContextState(uint Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Guid* EmulatedInterface, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel, ID3DDeviceContextState** ppContextState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11Device5*)Unsafe.AsPointer(ref this), Flags, pFeatureLevels, FeatureLevels, SDKVersion, EmulatedInterface, pChosenFeatureLevel, ppContextState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult OpenSharedResource1(IntPtr hResource, Guid* returnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11Device5*)Unsafe.AsPointer(ref this), hResource, returnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11Device5*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture1D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture2D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture3D); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, ppSRView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, ppUAView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, ppRTView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, ppDepthStencilView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pInputElementDescs, NumElements, pShaderBytecodeWithInputSignature, BytecodeLength, ppInputLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppVertexShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppGeometryShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pSODeclaration, NumEntries, pBufferStrides, NumStrides, RasterizedStream, pClassLinkage, ppGeometryShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppPixelShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppHullShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppDomainShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppComputeShader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ppLinkage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDepthStencilDesc, ppDepthStencilState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pSamplerDesc, ppSamplerState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pQueryDesc, ppQuery); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pPredicateDesc, ppPredicate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pCounterDesc, ppCounter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult OpenSharedResource(IntPtr hResource, Guid* ReturnedInterface, void** ppResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11Device5*)Unsafe.AsPointer(ref this), hResource, ReturnedInterface, ppResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11Device5*)Unsafe.AsPointer(ref this), Format, pFormatSupport); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11Device5*)Unsafe.AsPointer(ref this), Format, SampleCount, pNumQualityLevels); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void CheckCounterInfo(CounterInfo* pCounterInfo) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pCounterInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc, pType, pActiveCounters, szName, pNameLength, szUnits, pUnitsLength, szDescription, pDescriptionLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11Device5*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11Device5*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11Device5*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11Device5*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public Graphics.Direct3D.FeatureLevel GetFeatureLevel() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11Device5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public uint GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11Device5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11Device5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ppImmediateContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult SetExceptionMode(uint RaiseFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11Device5*)Unsafe.AsPointer(ref this), RaiseFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public uint GetExceptionMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11Device5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HResult OpenSharedFence(IntPtr hFence, Guid* ReturnedInterface, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11Device5*)Unsafe.AsPointer(ref this), hFence, ReturnedInterface, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* ReturnedInterface, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11Device5*)Unsafe.AsPointer(ref this), InitialValue, Flags, ReturnedInterface, ppFence); - } -} - -/// -/// ID3D11Multithread -[Guid("9b7e4e00-342c-4106-a19f-4f2704f689f0")] -[NativeTypeName("struct ID3D11Multithread : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11Multithread -{ - public static ref readonly Guid IID_ID3D11Multithread - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x4E, 0x7E, 0x9B, - 0x2C, 0x34, - 0x06, 0x41, - 0xA1, - 0x9F, - 0x4F, - 0x27, - 0x04, - 0xF6, - 0x89, - 0xF0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Multithread)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void Enter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Multithread*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void Leave() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Multithread*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public Bool32 SetMultithreadProtected(Bool32 bMTProtect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Multithread*)Unsafe.AsPointer(ref this), bMTProtect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public Bool32 GetMultithreadProtected() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Multithread*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D11VideoContext2 -[Guid("c4e7374c-6243-4d1b-ae87-52b4f740e261")] -[NativeTypeName("struct ID3D11VideoContext2 : ID3D11VideoContext1")] -[NativeInheritance("ID3D11VideoContext1")] -public unsafe partial struct ID3D11VideoContext2 -{ - public static ref readonly Guid IID_ID3D11VideoContext2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4C, 0x37, 0xE7, 0xC4, - 0x43, 0x62, - 0x1B, 0x4D, - 0xAE, - 0x87, - 0x52, - 0xB4, - 0xF7, - 0x40, - 0xE2, - 0x61 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoContext2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SubmitDecoderBuffers1(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription1* pBufferDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetDataForNewHardwareKey(ID3D11CryptoSession* pCryptoSession, uint PrivateInputSize, void* pPrivatInputData, ulong* pPrivateOutputData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, PrivateInputSize, pPrivatInputData, pPrivateOutputData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CheckCryptoSessionStatus(ID3D11CryptoSession* pCryptoSession, CryptoSessionStatus* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult DecoderEnableDownsampling(ID3D11VideoDecoder* pDecoder, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoSampleDescription* pOutputDesc, uint ReferenceFrameCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, InputColorSpace, pOutputDesc, ReferenceFrameCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult DecoderUpdateDownsampling(ID3D11VideoDecoder* pDecoder, VideoSampleDescription* pOutputDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, pOutputDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void VideoProcessorSetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType ColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, ColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void VideoProcessorSetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32 ShaderUsage) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, ShaderUsage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void VideoProcessorGetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void VideoProcessorGetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32* pShaderUsage) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pShaderUsage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void VideoProcessorSetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType ColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, ColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void VideoProcessorSetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Bool32 FlipHorizontal, Bool32 FlipVertical) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, FlipHorizontal, FlipVertical); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void VideoProcessorGetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void VideoProcessorGetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, Bool32* pFlipHorizontal, Bool32* pFlipVertical) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFlipHorizontal, pFlipVertical); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult VideoProcessorGetBehaviorHints(ID3D11VideoProcessor* pVideoProcessor, uint OutputWidth, uint OutputHeight, Graphics.Dxgi.Common.Format OutputFormat, uint StreamCount, VideoProcessorStreamBehaviorHint* pStreams, uint* pBehaviorHints) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, OutputWidth, OutputHeight, OutputFormat, StreamCount, pStreams, pBehaviorHints); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type, uint* pBufferSize, void** ppBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, Type, pBufferSize, ppBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult ReleaseDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, Type); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult DecoderBeginFrame(ID3D11VideoDecoder* pDecoder, ID3D11VideoDecoderOutputView* pView, uint ContentKeySize, void* pContentKey) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, pView, ContentKeySize, pContentKey); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult DecoderEndFrame(ID3D11VideoDecoder* pDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult SubmitDecoderBuffers(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription* pBufferDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public int DecoderExtension(ID3D11VideoDecoder* pDecoder, VideoDecoderExtension* pExtensionData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, pExtensionData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void VideoProcessorSetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void VideoProcessorSetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32 YCbCr, VideoColor* pColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, YCbCr, pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void VideoProcessorSetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void VideoProcessorSetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode AlphaFillMode, uint StreamIndex) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, AlphaFillMode, StreamIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void VideoProcessorSetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, System.Drawing.Size Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void VideoProcessorSetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public int VideoProcessorSetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void VideoProcessorGetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32* Enabled, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, Enabled, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void VideoProcessorGetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32* pYCbCr, VideoColor* pColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pYCbCr, pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void VideoProcessorGetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void VideoProcessorGetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode* pAlphaFillMode, uint* pStreamIndex) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pAlphaFillMode, pStreamIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void VideoProcessorGetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled, System.Drawing.Size* pSize) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled, pSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void VideoProcessorGetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public int VideoProcessorGetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void VideoProcessorSetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat FrameFormat) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, FrameFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void VideoProcessorSetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void VideoProcessorSetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate OutputRate, Bool32 RepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, OutputRate, RepeatFrame, pCustomRate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void VideoProcessorSetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void VideoProcessorSetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void VideoProcessorSetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Alpha) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Alpha); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void VideoProcessorSetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void VideoProcessorSetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pSourceAspectRatio, pDestinationAspectRatio); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void VideoProcessorSetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Lower, float Upper) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Lower, Upper); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void VideoProcessorSetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorStereoFormat Format, Bool32 LeftViewFrame0, Bool32 BaseViewFrame0, VideoProcessorStereoFlipMode FlipMode, int MonoOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Format, LeftViewFrame0, BaseViewFrame0, FlipMode, MonoOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void VideoProcessorSetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void VideoProcessorSetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32 Enable, int Level) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, Enable, Level); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public int VideoProcessorSetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void VideoProcessorGetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat* pFrameFormat) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pFrameFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void VideoProcessorGetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void VideoProcessorGetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate* pOutputRate, Bool32* pRepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pOutputRate, pRepeatFrame, pCustomRate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void VideoProcessorGetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void VideoProcessorGetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void VideoProcessorGetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pAlpha) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pAlpha); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void VideoProcessorGetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void VideoProcessorGetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pSourceAspectRatio, pDestinationAspectRatio); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void VideoProcessorGetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pLower, float* pUpper) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pLower, pUpper); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void VideoProcessorGetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorStereoFormat* pFormat, Bool32* pLeftViewFrame0, Bool32* pBaseViewFrame0, VideoProcessorStereoFlipMode* pFlipMode, int* MonoOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFormat, pLeftViewFrame0, pBaseViewFrame0, pFlipMode, MonoOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void VideoProcessorGetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void VideoProcessorGetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32* pEnabled, int* pLevel) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, pEnabled, pLevel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public int VideoProcessorGetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult VideoProcessorBlt(ID3D11VideoProcessor* pVideoProcessor, ID3D11VideoProcessorOutputView* pView, uint OutputFrame, uint StreamCount, VideoProcessorStream* pStreams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pView, OutputFrame, StreamCount, pStreams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult NegotiateCryptoSessionKeyExchange(ID3D11CryptoSession* pCryptoSession, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void EncryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, uint IVSize, void* pIV) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, IVSize, pIV); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void DecryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, EncryptedBlockInfo* pEncryptedBlockInfo, uint ContentKeySize, void* pContentKey, uint IVSize, void* pIV) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, pEncryptedBlockInfo, ContentKeySize, pContentKey, IVSize, pIV); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void StartSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession, uint RandomNumberSize, void* pRandomNumber) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, RandomNumberSize, pRandomNumber); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void FinishSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public HResult GetEncryptionBltKey(ID3D11CryptoSession* pCryptoSession, uint KeySize, void* pReadbackKey) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, KeySize, pReadbackKey); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HResult NegotiateAuthenticatedChannelKeyExchange(ID3D11AuthenticatedChannel* pChannel, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pChannel, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public HResult QueryAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, uint OutputSize, void* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, OutputSize, pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public HResult ConfigureAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, AuthenticatedConfigureOutput* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void VideoProcessorSetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorRotation Rotation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Rotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void VideoProcessorGetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorRotation* pRotation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pRotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void VideoProcessorSetOutputHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.HdrMetadataType Type, uint Size, void* pHDRMetaData) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, Type, Size, pHDRMetaData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public void VideoProcessorGetOutputHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.HdrMetadataType* pType, uint Size, void* pMetaData) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pType, Size, pMetaData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public void VideoProcessorSetStreamHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.HdrMetadataType Type, uint Size, void* pHDRMetaData) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Type, Size, pHDRMetaData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public void VideoProcessorGetStreamHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.HdrMetadataType* pType, uint Size, void* pMetaData) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pType, Size, pMetaData); - } -} - -/// -/// ID3D11VideoDevice2 -[Guid("59c0cb01-35f0-4a70-8f67-87905c906a53")] -[NativeTypeName("struct ID3D11VideoDevice2 : ID3D11VideoDevice1")] -[NativeInheritance("ID3D11VideoDevice1")] -public unsafe partial struct ID3D11VideoDevice2 -{ - public static ref readonly Guid IID_ID3D11VideoDevice2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x01, 0xCB, 0xC0, 0x59, - 0xF0, 0x35, - 0x70, 0x4A, - 0x8F, - 0x67, - 0x87, - 0x90, - 0x5C, - 0x90, - 0x6A, - 0x53 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDevice2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetCryptoSessionPrivateDataSize(Guid* pCryptoType, Guid* pDecoderProfile, Guid* pKeyExchangeType, uint* pPrivateInputSize, uint* pPrivateOutputSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pKeyExchangeType, pPrivateInputSize, pPrivateOutputSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetVideoDecoderCaps(Guid* pDecoderProfile, uint SampleWidth, uint SampleHeight, Graphics.Dxgi.Common.Rational* pFrameRate, uint BitRate, Guid* pCryptoType, uint* pDecoderCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pDecoderProfile, SampleWidth, SampleHeight, pFrameRate, BitRate, pCryptoType, pDecoderCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CheckVideoDecoderDownsampling(VideoDecoderDescription* pInputDesc, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoDecoderConfig* pInputConfig, Graphics.Dxgi.Common.Rational* pFrameRate, VideoSampleDescription* pOutputDesc, Bool32* pSupported, Bool32* pRealTimeHint) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pInputDesc, InputColorSpace, pInputConfig, pFrameRate, pOutputDesc, pSupported, pRealTimeHint); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult RecommendVideoDecoderDownsampleParameters(VideoDecoderDescription* pInputDesc, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoDecoderConfig* pInputConfig, Graphics.Dxgi.Common.Rational* pFrameRate, VideoSampleDescription* pRecommendedOutputDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pInputDesc, InputColorSpace, pInputConfig, pFrameRate, pRecommendedOutputDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateVideoDecoder(VideoDecoderDescription* pVideoDesc, VideoDecoderConfig* pConfig, ID3D11VideoDecoder** ppDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pVideoDesc, pConfig, ppDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateVideoProcessor(ID3D11VideoProcessorEnumerator* pEnum, uint RateConversionIndex, ID3D11VideoProcessor** ppVideoProcessor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pEnum, RateConversionIndex, ppVideoProcessor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateAuthenticatedChannel(AuthenticatedChannelType ChannelType, ID3D11AuthenticatedChannel** ppAuthenticatedChannel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), ChannelType, ppAuthenticatedChannel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateCryptoSession(Guid* pCryptoType, Guid* pDecoderProfile, Guid* pKeyExchangeType, ID3D11CryptoSession** ppCryptoSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pKeyExchangeType, ppCryptoSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateVideoDecoderOutputView(ID3D11Resource* pResource, VideoDecoderOutputViewDescription* pDesc, ID3D11VideoDecoderOutputView** ppVDOVView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pResource, pDesc, ppVDOVView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateVideoProcessorInputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorInputViewDescription* pDesc, ID3D11VideoProcessorInputView** ppVPIView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPIView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateVideoProcessorOutputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorOutputViewDescription* pDesc, ID3D11VideoProcessorOutputView** ppVPOView) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPOView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateVideoProcessorEnumerator(VideoProcessorContentDescription* pDesc, ID3D11VideoProcessorEnumerator** ppEnum) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pDesc, ppEnum); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetVideoDecoderProfileCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetVideoDecoderProfile(uint Index, Guid* pDecoderProfile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), Index, pDecoderProfile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CheckVideoDecoderFormat(Guid* pDecoderProfile, Graphics.Dxgi.Common.Format Format, Bool32* pSupported) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pDecoderProfile, Format, pSupported); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetVideoDecoderConfigCount(VideoDecoderDescription* pDesc, uint* pCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pDesc, pCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetVideoDecoderConfig(VideoDecoderDescription* pDesc, uint Index, VideoDecoderConfig* pConfig) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pDesc, Index, pConfig); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetContentProtectionCaps(Guid* pCryptoType, Guid* pDecoderProfile, VideoContentProtectionCaps* pCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CheckCryptoKeyExchange(Guid* pCryptoType, Guid* pDecoderProfile, uint Index, Guid* pKeyExchangeType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, Index, pKeyExchangeType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CheckFeatureSupport(FeatureVideo Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult NegotiateCryptoSessionKeyExchangeMT(ID3D11CryptoSession* pCryptoSession, CryptoSessionKeyExchangeFlags flags, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pCryptoSession, flags, DataSize, pData); - } -} - -/// -/// ID3D11VideoContext3 -[Guid("a9e2faa0-cb39-418f-a0b7-d8aad4de672e")] -[NativeTypeName("struct ID3D11VideoContext3 : ID3D11VideoContext2")] -[NativeInheritance("ID3D11VideoContext2")] -public unsafe partial struct ID3D11VideoContext3 -{ - public static ref readonly Guid IID_ID3D11VideoContext3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA0, 0xFA, 0xE2, 0xA9, - 0x39, 0xCB, - 0x8F, 0x41, - 0xA0, - 0xB7, - 0xD8, - 0xAA, - 0xD4, - 0xDE, - 0x67, - 0x2E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoContext3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void VideoProcessorSetOutputHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.HdrMetadataType Type, uint Size, void* pHDRMetaData) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, Type, Size, pHDRMetaData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void VideoProcessorGetOutputHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.HdrMetadataType* pType, uint Size, void* pMetaData) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pType, Size, pMetaData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void VideoProcessorSetStreamHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.HdrMetadataType Type, uint Size, void* pHDRMetaData) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Type, Size, pHDRMetaData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void VideoProcessorGetStreamHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.HdrMetadataType* pType, uint Size, void* pMetaData) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pType, Size, pMetaData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SubmitDecoderBuffers1(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription1* pBufferDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetDataForNewHardwareKey(ID3D11CryptoSession* pCryptoSession, uint PrivateInputSize, void* pPrivatInputData, ulong* pPrivateOutputData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, PrivateInputSize, pPrivatInputData, pPrivateOutputData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CheckCryptoSessionStatus(ID3D11CryptoSession* pCryptoSession, CryptoSessionStatus* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult DecoderEnableDownsampling(ID3D11VideoDecoder* pDecoder, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoSampleDescription* pOutputDesc, uint ReferenceFrameCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, InputColorSpace, pOutputDesc, ReferenceFrameCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult DecoderUpdateDownsampling(ID3D11VideoDecoder* pDecoder, VideoSampleDescription* pOutputDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, pOutputDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void VideoProcessorSetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType ColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, ColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void VideoProcessorSetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32 ShaderUsage) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, ShaderUsage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void VideoProcessorGetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void VideoProcessorGetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32* pShaderUsage) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pShaderUsage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void VideoProcessorSetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType ColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, ColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void VideoProcessorSetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Bool32 FlipHorizontal, Bool32 FlipVertical) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, FlipHorizontal, FlipVertical); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void VideoProcessorGetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void VideoProcessorGetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, Bool32* pFlipHorizontal, Bool32* pFlipVertical) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFlipHorizontal, pFlipVertical); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult VideoProcessorGetBehaviorHints(ID3D11VideoProcessor* pVideoProcessor, uint OutputWidth, uint OutputHeight, Graphics.Dxgi.Common.Format OutputFormat, uint StreamCount, VideoProcessorStreamBehaviorHint* pStreams, uint* pBehaviorHints) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, OutputWidth, OutputHeight, OutputFormat, StreamCount, pStreams, pBehaviorHints); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type, uint* pBufferSize, void** ppBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, Type, pBufferSize, ppBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult ReleaseDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, Type); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult DecoderBeginFrame(ID3D11VideoDecoder* pDecoder, ID3D11VideoDecoderOutputView* pView, uint ContentKeySize, void* pContentKey) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, pView, ContentKeySize, pContentKey); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult DecoderEndFrame(ID3D11VideoDecoder* pDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult SubmitDecoderBuffers(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription* pBufferDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public int DecoderExtension(ID3D11VideoDecoder* pDecoder, VideoDecoderExtension* pExtensionData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, pExtensionData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void VideoProcessorSetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void VideoProcessorSetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32 YCbCr, VideoColor* pColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, YCbCr, pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void VideoProcessorSetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void VideoProcessorSetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode AlphaFillMode, uint StreamIndex) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, AlphaFillMode, StreamIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void VideoProcessorSetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, System.Drawing.Size Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void VideoProcessorSetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public int VideoProcessorSetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void VideoProcessorGetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32* Enabled, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, Enabled, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void VideoProcessorGetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32* pYCbCr, VideoColor* pColor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pYCbCr, pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void VideoProcessorGetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void VideoProcessorGetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode* pAlphaFillMode, uint* pStreamIndex) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pAlphaFillMode, pStreamIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void VideoProcessorGetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled, System.Drawing.Size* pSize) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled, pSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void VideoProcessorGetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public int VideoProcessorGetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void VideoProcessorSetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat FrameFormat) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, FrameFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void VideoProcessorSetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void VideoProcessorSetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate OutputRate, Bool32 RepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, OutputRate, RepeatFrame, pCustomRate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void VideoProcessorSetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void VideoProcessorSetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void VideoProcessorSetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Alpha) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Alpha); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void VideoProcessorSetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void VideoProcessorSetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pSourceAspectRatio, pDestinationAspectRatio); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void VideoProcessorSetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Lower, float Upper) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Lower, Upper); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void VideoProcessorSetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorStereoFormat Format, Bool32 LeftViewFrame0, Bool32 BaseViewFrame0, VideoProcessorStereoFlipMode FlipMode, int MonoOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Format, LeftViewFrame0, BaseViewFrame0, FlipMode, MonoOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void VideoProcessorSetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void VideoProcessorSetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32 Enable, int Level) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, Enable, Level); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public int VideoProcessorSetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void VideoProcessorGetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat* pFrameFormat) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pFrameFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void VideoProcessorGetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void VideoProcessorGetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate* pOutputRate, Bool32* pRepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pOutputRate, pRepeatFrame, pCustomRate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void VideoProcessorGetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void VideoProcessorGetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void VideoProcessorGetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pAlpha) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pAlpha); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void VideoProcessorGetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void VideoProcessorGetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pSourceAspectRatio, pDestinationAspectRatio); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void VideoProcessorGetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pLower, float* pUpper) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pLower, pUpper); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void VideoProcessorGetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorStereoFormat* pFormat, Bool32* pLeftViewFrame0, Bool32* pBaseViewFrame0, VideoProcessorStereoFlipMode* pFlipMode, int* MonoOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFormat, pLeftViewFrame0, pBaseViewFrame0, pFlipMode, MonoOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void VideoProcessorGetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void VideoProcessorGetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32* pEnabled, int* pLevel) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, pEnabled, pLevel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public int VideoProcessorGetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HResult VideoProcessorBlt(ID3D11VideoProcessor* pVideoProcessor, ID3D11VideoProcessorOutputView* pView, uint OutputFrame, uint StreamCount, VideoProcessorStream* pStreams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pView, OutputFrame, StreamCount, pStreams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public HResult NegotiateCryptoSessionKeyExchange(ID3D11CryptoSession* pCryptoSession, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void EncryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, uint IVSize, void* pIV) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, IVSize, pIV); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void DecryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, EncryptedBlockInfo* pEncryptedBlockInfo, uint ContentKeySize, void* pContentKey, uint IVSize, void* pIV) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, pEncryptedBlockInfo, ContentKeySize, pContentKey, IVSize, pIV); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void StartSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession, uint RandomNumberSize, void* pRandomNumber) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, RandomNumberSize, pRandomNumber); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void FinishSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public HResult GetEncryptionBltKey(ID3D11CryptoSession* pCryptoSession, uint KeySize, void* pReadbackKey) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, KeySize, pReadbackKey); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public HResult NegotiateAuthenticatedChannelKeyExchange(ID3D11AuthenticatedChannel* pChannel, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pChannel, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public HResult QueryAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, uint OutputSize, void* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, OutputSize, pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public HResult ConfigureAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, AuthenticatedConfigureOutput* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void VideoProcessorSetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorRotation Rotation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Rotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void VideoProcessorGetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorRotation* pRotation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pRotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void GetDevice(ID3D11Device** ppDevice) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public HResult DecoderBeginFrame1(ID3D11VideoDecoder* pDecoder, ID3D11VideoDecoderOutputView* pView, uint ContentKeySize, void* pContentKey, uint NumComponentHistograms, uint* pHistogramOffsets, ID3D11Buffer** ppHistogramBuffers) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, pView, ContentKeySize, pContentKey, NumComponentHistograms, pHistogramOffsets, ppHistogramBuffers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public HResult SubmitDecoderBuffers2(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription2* pBufferDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); - } -} - -/// -/// ID3D11ShaderReflectionType -[Guid("6e6ffa6a-9bae-4613-a51e-91652d508c21")] -public unsafe partial struct ID3D11ShaderReflectionType -{ - public static ref readonly Guid IID_ID3D11ShaderReflectionType - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6A, 0xFA, 0x6F, 0x6E, - 0xAE, 0x9B, - 0x13, 0x46, - 0xA5, - 0x1E, - 0x91, - 0x65, - 0x2D, - 0x50, - 0x8C, - 0x21 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderReflectionType)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult GetDesc(ShaderTypeDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public ID3D11ShaderReflectionType GetMemberTypeByIndex(uint Index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public ID3D11ShaderReflectionType GetMemberTypeByName(sbyte* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public sbyte* GetMemberTypeName(uint Index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult IsEqual(ID3D11ShaderReflectionType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ID3D11ShaderReflectionType GetSubType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ID3D11ShaderReflectionType GetBaseClass() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNumInterfaces() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ID3D11ShaderReflectionType GetInterfaceByIndex(uint uIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), uIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult IsOfType(ID3D11ShaderReflectionType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult ImplementsInterface(ID3D11ShaderReflectionType* pBase) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), pBase); - } -} - -/// -/// ID3D11ShaderReflectionVariable -[Guid("51f23923-f3e5-4bd1-91cb-606177d8db4c")] -public unsafe partial struct ID3D11ShaderReflectionVariable -{ - public static ref readonly Guid IID_ID3D11ShaderReflectionVariable - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x23, 0x39, 0xF2, 0x51, - 0xE5, 0xF3, - 0xD1, 0x4B, - 0x91, - 0xCB, - 0x60, - 0x61, - 0x77, - 0xD8, - 0xDB, - 0x4C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderReflectionVariable)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult GetDesc(ShaderVariableDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D11ShaderReflectionVariable*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public new ID3D11ShaderReflectionType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D11ShaderReflectionVariable*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public ID3D11ShaderReflectionConstantBuffer GetBuffer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D11ShaderReflectionVariable*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetInterfaceSlot(uint uArrayIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderReflectionVariable*)Unsafe.AsPointer(ref this), uArrayIndex); - } -} - -/// -/// ID3D11ShaderReflectionConstantBuffer -[Guid("eb62d63d-93dd-4318-8ae8-c6f83ad371b8")] -public unsafe partial struct ID3D11ShaderReflectionConstantBuffer -{ - public static ref readonly Guid IID_ID3D11ShaderReflectionConstantBuffer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3D, 0xD6, 0x62, 0xEB, - 0xDD, 0x93, - 0x18, 0x43, - 0x8A, - 0xE8, - 0xC6, - 0xF8, - 0x3A, - 0xD3, - 0x71, - 0xB8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderReflectionConstantBuffer)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult GetDesc(ShaderBufferDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D11ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public ID3D11ShaderReflectionVariable GetVariableByIndex(uint Index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D11ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public ID3D11ShaderReflectionVariable GetVariableByName(sbyte* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D11ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Name); - } -} - -/// -/// ID3D11ShaderReflection -[Guid("8d536ca1-0cca-4956-a837-786963755584")] -[NativeTypeName("struct ID3D11ShaderReflection : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11ShaderReflection -{ - public static ref readonly Guid IID_ID3D11ShaderReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA1, 0x6C, 0x53, 0x8D, - 0xCA, 0x0C, - 0x56, 0x49, - 0xA8, - 0x37, - 0x78, - 0x69, - 0x63, - 0x75, - 0x55, - 0x84 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderReflection)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDesc(ShaderDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public ID3D11ShaderReflectionConstantBuffer GetConstantBufferByIndex(uint Index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ID3D11ShaderReflectionConstantBuffer GetConstantBufferByName(sbyte* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetResourceBindingDesc(uint ResourceIndex, ShaderInputBindDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), ResourceIndex, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetInputParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetOutputParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetPatchConstantParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public ID3D11ShaderReflectionVariable GetVariableByName(sbyte* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetResourceBindingDescByName(sbyte* Name, ShaderInputBindDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), Name, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public uint GetMovInstructionCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public uint GetMovcInstructionCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public uint GetConversionInstructionCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetBitwiseInstructionCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public Graphics.Direct3D.Primitive GetGSInputPrimitive() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public Bool32 IsSampleFrequencyShader() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public uint GetNumInterfaceSlots() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetMinFeatureLevel(Graphics.Direct3D.FeatureLevel* pLevel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), pLevel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public uint GetThreadGroupSize(uint* pSizeX, uint* pSizeY, uint* pSizeZ) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), pSizeX, pSizeY, pSizeZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public ulong GetRequiresFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D11LibraryReflection -[Guid("54384f1b-5b3e-4bb7-ae01-60ba3097cbb6")] -[NativeTypeName("struct ID3D11LibraryReflection : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11LibraryReflection -{ - public static ref readonly Guid IID_ID3D11LibraryReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1B, 0x4F, 0x38, 0x54, - 0x3E, 0x5B, - 0xB7, 0x4B, - 0xAE, - 0x01, - 0x60, - 0xBA, - 0x30, - 0x97, - 0xCB, - 0xB6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11LibraryReflection)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDesc(LibraryDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11LibraryReflection*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public ID3D11FunctionReflection GetFunctionByIndex(int FunctionIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11LibraryReflection*)Unsafe.AsPointer(ref this), FunctionIndex); - } -} - -/// -/// ID3D11FunctionReflection -[Guid("207bcecb-d683-4a06-a8a3-9b149b9f73a4")] -public unsafe partial struct ID3D11FunctionReflection -{ - public static ref readonly Guid IID_ID3D11FunctionReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCB, 0xCE, 0x7B, 0x20, - 0x83, 0xD6, - 0x06, 0x4A, - 0xA8, - 0xA3, - 0x9B, - 0x14, - 0x9B, - 0x9F, - 0x73, - 0xA4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11FunctionReflection)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult GetDesc(FunctionDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public ID3D11ShaderReflectionConstantBuffer GetConstantBufferByIndex(uint BufferIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), BufferIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public ID3D11ShaderReflectionConstantBuffer GetConstantBufferByName(sbyte* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetResourceBindingDesc(uint ResourceIndex, ShaderInputBindDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), ResourceIndex, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public ID3D11ShaderReflectionVariable GetVariableByName(sbyte* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetResourceBindingDescByName(sbyte* Name, ShaderInputBindDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), Name, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ID3D11FunctionParameterReflection GetFunctionParameter(int ParameterIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), ParameterIndex); - } -} - -/// -/// ID3D11FunctionParameterReflection -[Guid("42757488-334f-47fe-982e-1a65d08cc462")] -public unsafe partial struct ID3D11FunctionParameterReflection -{ - public static ref readonly Guid IID_ID3D11FunctionParameterReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x88, 0x74, 0x75, 0x42, - 0x4F, 0x33, - 0xFE, 0x47, - 0x98, - 0x2E, - 0x1A, - 0x65, - 0xD0, - 0x8C, - 0xC4, - 0x62 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11FunctionParameterReflection)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult GetDesc(ParameterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D11FunctionParameterReflection*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D11ModuleInstance -[Guid("469e07f7-045a-48d5-aa12-68a478cdf75d")] -[NativeTypeName("struct ID3D11ModuleInstance : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11ModuleInstance -{ - public static ref readonly Guid IID_ID3D11ModuleInstance - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF7, 0x07, 0x9E, 0x46, - 0x5A, 0x04, - 0xD5, 0x48, - 0xAA, - 0x12, - 0x68, - 0xA4, - 0x78, - 0xCD, - 0xF7, - 0x5D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ModuleInstance)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult BindConstantBuffer(uint uSrcSlot, uint uDstSlot, uint cbDstOffset) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), uSrcSlot, uDstSlot, cbDstOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult BindConstantBufferByName(sbyte* pName, uint uDstSlot, uint cbDstOffset) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), pName, uDstSlot, cbDstOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult BindResource(uint uSrcSlot, uint uDstSlot, uint uCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), uSrcSlot, uDstSlot, uCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult BindResourceByName(sbyte* pName, uint uDstSlot, uint uCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), pName, uDstSlot, uCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult BindSampler(uint uSrcSlot, uint uDstSlot, uint uCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), uSrcSlot, uDstSlot, uCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult BindSamplerByName(sbyte* pName, uint uDstSlot, uint uCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), pName, uDstSlot, uCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult BindUnorderedAccessView(uint uSrcSlot, uint uDstSlot, uint uCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), uSrcSlot, uDstSlot, uCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult BindUnorderedAccessViewByName(sbyte* pName, uint uDstSlot, uint uCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), pName, uDstSlot, uCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult BindResourceAsUnorderedAccessView(uint uSrcSrvSlot, uint uDstUavSlot, uint uCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), uSrcSrvSlot, uDstUavSlot, uCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult BindResourceAsUnorderedAccessViewByName(sbyte* pSrvName, uint uDstUavSlot, uint uCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), pSrvName, uDstUavSlot, uCount); - } -} - -/// -/// ID3D11Module -[Guid("cac701ee-80fc-4122-8242-10b39c8cec34")] -[NativeTypeName("struct ID3D11Module : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11Module -{ - public static ref readonly Guid IID_ID3D11Module - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEE, 0x01, 0xC7, 0xCA, - 0xFC, 0x80, - 0x22, 0x41, - 0x82, - 0x42, - 0x10, - 0xB3, - 0x9C, - 0x8C, - 0xEC, - 0x34 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Module)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateInstance(sbyte* pNamespace, ID3D11ModuleInstance** ppModuleInstance) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Module*)Unsafe.AsPointer(ref this), pNamespace, ppModuleInstance); - } -} - -/// -/// ID3D11Linker -[Guid("59a6cd0e-e10d-4c1f-88c0-63aba1daf30e")] -[NativeTypeName("struct ID3D11Linker : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11Linker -{ - public static ref readonly Guid IID_ID3D11Linker - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0E, 0xCD, 0xA6, 0x59, - 0x0D, 0xE1, - 0x1F, 0x4C, - 0x88, - 0xC0, - 0x63, - 0xAB, - 0xA1, - 0xDA, - 0xF3, - 0x0E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Linker)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Link(ID3D11ModuleInstance* pEntry, sbyte* pEntryName, sbyte* pTargetName, uint uFlags, Graphics.Direct3D.ID3DBlob** ppShaderBlob, Graphics.Direct3D.ID3DBlob** ppErrorBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Linker*)Unsafe.AsPointer(ref this), pEntry, pEntryName, pTargetName, uFlags, ppShaderBlob, ppErrorBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult UseLibrary(ID3D11ModuleInstance* pLibraryMI) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Linker*)Unsafe.AsPointer(ref this), pLibraryMI); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult AddClipPlaneFromCBuffer(uint uCBufferSlot, uint uCBufferEntry) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Linker*)Unsafe.AsPointer(ref this), uCBufferSlot, uCBufferEntry); - } -} - -/// -/// ID3D11LinkingNode -[Guid("d80dd70c-8d2f-4751-94a1-03c79b3556db")] -[NativeTypeName("struct ID3D11LinkingNode : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11LinkingNode -{ - public static ref readonly Guid IID_ID3D11LinkingNode - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0C, 0xD7, 0x0D, 0xD8, - 0x2F, 0x8D, - 0x51, 0x47, - 0x94, - 0xA1, - 0x03, - 0xC7, - 0x9B, - 0x35, - 0x56, - 0xDB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11LinkingNode)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - -} - -/// -/// ID3D11FunctionLinkingGraph -[Guid("54133220-1ce8-43d3-8236-9855c5ceecff")] -[NativeTypeName("struct ID3D11FunctionLinkingGraph : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11FunctionLinkingGraph -{ - public static ref readonly Guid IID_ID3D11FunctionLinkingGraph - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x20, 0x32, 0x13, 0x54, - 0xE8, 0x1C, - 0xD3, 0x43, - 0x82, - 0x36, - 0x98, - 0x55, - 0xC5, - 0xCE, - 0xEC, - 0xFF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11FunctionLinkingGraph)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateModuleInstance(ID3D11ModuleInstance** ppModuleInstance, Graphics.Direct3D.ID3DBlob** ppErrorBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), ppModuleInstance, ppErrorBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetInputSignature(ParameterDescription* pInputParameters, uint cInputParameters, ID3D11LinkingNode** ppInputNode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), pInputParameters, cInputParameters, ppInputNode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetOutputSignature(ParameterDescription* pOutputParameters, uint cOutputParameters, ID3D11LinkingNode** ppOutputNode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), pOutputParameters, cOutputParameters, ppOutputNode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CallFunction(sbyte* pModuleInstanceNamespace, ID3D11Module* pModuleWithFunctionPrototype, sbyte* pFunctionName, ID3D11LinkingNode** ppCallNode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), pModuleInstanceNamespace, pModuleWithFunctionPrototype, pFunctionName, ppCallNode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult PassValue(ID3D11LinkingNode* pSrcNode, int SrcParameterIndex, ID3D11LinkingNode* pDstNode, int DstParameterIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), pSrcNode, SrcParameterIndex, pDstNode, DstParameterIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult PassValueWithSwizzle(ID3D11LinkingNode* pSrcNode, int SrcParameterIndex, sbyte* pSrcSwizzle, ID3D11LinkingNode* pDstNode, int DstParameterIndex, sbyte* pDstSwizzle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), pSrcNode, SrcParameterIndex, pSrcSwizzle, pDstNode, DstParameterIndex, pDstSwizzle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetLastError(Graphics.Direct3D.ID3DBlob** ppErrorBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), ppErrorBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GenerateHlsl(uint uFlags, Graphics.Direct3D.ID3DBlob** ppBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), uFlags, ppBuffer); - } -} - -/// -/// ID3D11ShaderTrace -[Guid("36b013e6-2811-4845-baa7-d623fe0df104")] -[NativeTypeName("struct ID3D11ShaderTrace : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11ShaderTrace -{ - public static ref readonly Guid IID_ID3D11ShaderTrace - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE6, 0x13, 0xB0, 0x36, - 0x11, 0x28, - 0x45, 0x48, - 0xBA, - 0xA7, - 0xD6, - 0x23, - 0xFE, - 0x0D, - 0xF1, - 0x04 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderTrace)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult TraceReady(ulong* pTestCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), pTestCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void ResetTrace() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetTraceStats(TraceStats* pTraceStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), pTraceStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult PSSelectStamp(uint stampIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), stampIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetInitialRegisterContents(TraceRegister* pRegister, TraceValue* pValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), pRegister, pValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetStep(uint stepIndex, TraceStep* pTraceStep) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), stepIndex, pTraceStep); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetWrittenRegister(uint stepIndex, uint writtenRegisterIndex, TraceRegister* pRegister, TraceValue* pValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), stepIndex, writtenRegisterIndex, pRegister, pValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetReadRegister(uint stepIndex, uint readRegisterIndex, TraceRegister* pRegister, TraceValue* pValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), stepIndex, readRegisterIndex, pRegister, pValue); - } -} - -/// -/// ID3D11ShaderTraceFactory -[Guid("1fbad429-66ab-41cc-9617-667ac10e4459")] -[NativeTypeName("struct ID3D11ShaderTraceFactory : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D11ShaderTraceFactory -{ - public static ref readonly Guid IID_ID3D11ShaderTraceFactory - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x29, 0xD4, 0xBA, 0x1F, - 0xAB, 0x66, - 0xCC, 0x41, - 0x96, - 0x17, - 0x66, - 0x7A, - 0xC1, - 0x0E, - 0x44, - 0x59 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderTraceFactory)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateShaderTrace(IUnknown* pShader, ShaderTraceDescription* pTraceDesc, ID3D11ShaderTrace** ppShaderTrace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderTraceFactory*)Unsafe.AsPointer(ref this), pShader, pTraceDesc, ppShaderTrace); - } -} - #endregion Com Types #region Functions diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Asynchronous.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Asynchronous.cs new file mode 100644 index 0000000..cf00e89 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Asynchronous.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Asynchronous +[Guid("4b35d0cd-1e15-4258-9c98-1b1333f6dd3b")] +[NativeTypeName("struct ID3D11Asynchronous : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11Asynchronous +{ + public static ref readonly Guid IID_ID3D11Asynchronous + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCD, 0xD0, 0x35, 0x4B, + 0x15, 0x1E, + 0x58, 0x42, + 0x9C, + 0x98, + 0x1B, + 0x13, + 0x33, + 0xF6, + 0xDD, + 0x3B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Asynchronous)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Asynchronous*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Asynchronous*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Asynchronous*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Asynchronous*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetDataSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Asynchronous*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11AuthenticatedChannel.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11AuthenticatedChannel.cs new file mode 100644 index 0000000..e47cc05 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11AuthenticatedChannel.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11AuthenticatedChannel +[Guid("3015a308-dcbd-47aa-a747-192486d14d4a")] +[NativeTypeName("struct ID3D11AuthenticatedChannel : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11AuthenticatedChannel +{ + public static ref readonly Guid IID_ID3D11AuthenticatedChannel + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x08, 0xA3, 0x15, 0x30, + 0xBD, 0xDC, + 0xAA, 0x47, + 0xA7, + 0x47, + 0x19, + 0x24, + 0x86, + 0xD1, + 0x4D, + 0x4A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11AuthenticatedChannel)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetCertificateSize(uint* pCertificateSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), pCertificateSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetCertificate(uint CertificateSize, byte* pCertificate) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), CertificateSize, pCertificate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void GetChannelHandle(IntPtr* pChannelHandle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), pChannelHandle); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11BlendState.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11BlendState.cs new file mode 100644 index 0000000..dd41043 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11BlendState.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11BlendState +[Guid("75b68faa-347d-4159-8f45-a0640f01cd9a")] +[NativeTypeName("struct ID3D11BlendState : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11BlendState +{ + public static ref readonly Guid IID_ID3D11BlendState + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0x8F, 0xB6, 0x75, + 0x7D, 0x34, + 0x59, 0x41, + 0x8F, + 0x45, + 0xA0, + 0x64, + 0x0F, + 0x01, + 0xCD, + 0x9A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11BlendState)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetDesc(BlendDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11BlendState1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11BlendState1.cs new file mode 100644 index 0000000..a6fd4cd --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11BlendState1.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11BlendState1 +[Guid("cc86fabe-da55-401d-85e7-e3c9de2877e9")] +[NativeTypeName("struct ID3D11BlendState1 : ID3D11BlendState")] +[NativeInheritance("ID3D11BlendState")] +public unsafe partial struct ID3D11BlendState1 +{ + public static ref readonly Guid IID_ID3D11BlendState1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBE, 0xFA, 0x86, 0xCC, + 0x55, 0xDA, + 0x1D, 0x40, + 0x85, + 0xE7, + 0xE3, + 0xC9, + 0xDE, + 0x28, + 0x77, + 0xE9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11BlendState1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetDesc(BlendDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc1(BlendDescription1* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Buffer.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Buffer.cs new file mode 100644 index 0000000..f87ef1a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Buffer.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Buffer +[Guid("48570b85-d1ee-4fcd-a250-eb350722b037")] +[NativeTypeName("struct ID3D11Buffer : ID3D11Resource")] +[NativeInheritance("ID3D11Resource")] +public unsafe partial struct ID3D11Buffer +{ + public static ref readonly Guid IID_ID3D11Buffer + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x85, 0x0B, 0x57, 0x48, + 0xEE, 0xD1, + 0xCD, 0x4F, + 0xA2, + 0x50, + 0xEB, + 0x35, + 0x07, + 0x22, + 0xB0, + 0x37 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Buffer)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetType(ResourceDimension* pResourceDimension) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), pResourceDimension); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetEvictionPriority(uint EvictionPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), EvictionPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public uint GetEvictionPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Buffer*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void GetDesc(BufferDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ClassInstance.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ClassInstance.cs new file mode 100644 index 0000000..ee9b397 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ClassInstance.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11ClassInstance +[Guid("a6cd7faa-b0b7-4a2f-9436-8662a65797cb")] +[NativeTypeName("struct ID3D11ClassInstance : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11ClassInstance +{ + public static ref readonly Guid IID_ID3D11ClassInstance + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0x7F, 0xCD, 0xA6, + 0xB7, 0xB0, + 0x2F, 0x4A, + 0x94, + 0x36, + 0x86, + 0x62, + 0xA6, + 0x57, + 0x97, + 0xCB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ClassInstance)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetClassLinkage(ID3D11ClassLinkage** ppLinkage) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), ppLinkage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(ClassInstanceDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void GetInstanceName(byte* pInstanceName, nuint* pBufferLength) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), pInstanceName, pBufferLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void GetTypeName(byte* pTypeName, nuint* pBufferLength) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), pTypeName, pBufferLength); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ClassLinkage.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ClassLinkage.cs new file mode 100644 index 0000000..7e1d9bc --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ClassLinkage.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11ClassLinkage +[Guid("ddf57cba-9543-46e4-a12b-f207a0fe7fed")] +[NativeTypeName("struct ID3D11ClassLinkage : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11ClassLinkage +{ + public static ref readonly Guid IID_ID3D11ClassLinkage + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBA, 0x7C, 0xF5, 0xDD, + 0x43, 0x95, + 0xE4, 0x46, + 0xA1, + 0x2B, + 0xF2, + 0x07, + 0xA0, + 0xFE, + 0x7F, + 0xED + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ClassLinkage)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetClassInstance(sbyte* pClassInstanceName, uint InstanceIndex, ID3D11ClassInstance** ppInstance) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), pClassInstanceName, InstanceIndex, ppInstance); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateClassInstance(sbyte* pClassTypeName, uint ConstantBufferOffset, uint ConstantVectorOffset, uint TextureOffset, uint SamplerOffset, ID3D11ClassInstance** ppInstance) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), pClassTypeName, ConstantBufferOffset, ConstantVectorOffset, TextureOffset, SamplerOffset, ppInstance); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11CommandList.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11CommandList.cs new file mode 100644 index 0000000..b3c40a6 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11CommandList.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11CommandList +[Guid("a24bc4d1-769e-43f7-8013-98ff566c18e2")] +[NativeTypeName("struct ID3D11CommandList : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11CommandList +{ + public static ref readonly Guid IID_ID3D11CommandList + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD1, 0xC4, 0x4B, 0xA2, + 0x9E, 0x76, + 0xF7, 0x43, + 0x80, + 0x13, + 0x98, + 0xFF, + 0x56, + 0x6C, + 0x18, + 0xE2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11CommandList)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11CommandList*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11CommandList*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11CommandList*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11CommandList*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetContextFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11CommandList*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ComputeShader.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ComputeShader.cs new file mode 100644 index 0000000..b125dea --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ComputeShader.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11ComputeShader +[Guid("4f5b196e-c2bd-495e-bd01-1fded38e4969")] +[NativeTypeName("struct ID3D11ComputeShader : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11ComputeShader +{ + public static ref readonly Guid IID_ID3D11ComputeShader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6E, 0x19, 0x5B, 0x4F, + 0xBD, 0xC2, + 0x5E, 0x49, + 0xBD, + 0x01, + 0x1F, + 0xDE, + 0xD3, + 0x8E, + 0x49, + 0x69 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ComputeShader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ComputeShader*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ComputeShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ComputeShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ComputeShader*)Unsafe.AsPointer(ref this), guid, pData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Counter.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Counter.cs new file mode 100644 index 0000000..a5b62a9 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Counter.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Counter +[Guid("6e8c49fb-a371-4770-b440-29086022b741")] +[NativeTypeName("struct ID3D11Counter : ID3D11Asynchronous")] +[NativeInheritance("ID3D11Asynchronous")] +public unsafe partial struct ID3D11Counter +{ + public static ref readonly Guid IID_ID3D11Counter + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFB, 0x49, 0x8C, 0x6E, + 0x71, 0xA3, + 0x70, 0x47, + 0xB4, + 0x40, + 0x29, + 0x08, + 0x60, + 0x22, + 0xB7, + 0x41 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Counter)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Counter*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Counter*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Counter*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Counter*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetDataSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Counter*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(CounterDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Counter*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11CryptoSession.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11CryptoSession.cs new file mode 100644 index 0000000..7d9ab8b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11CryptoSession.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11CryptoSession +[Guid("9b32f9ad-bdcc-40a6-a39d-d5c865845720")] +[NativeTypeName("struct ID3D11CryptoSession : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11CryptoSession +{ + public static ref readonly Guid IID_ID3D11CryptoSession + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAD, 0xF9, 0x32, 0x9B, + 0xCC, 0xBD, + 0xA6, 0x40, + 0xA3, + 0x9D, + 0xD5, + 0xC8, + 0x65, + 0x84, + 0x57, + 0x20 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11CryptoSession)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetCryptoType(Guid* pCryptoType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), pCryptoType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDecoderProfile(Guid* pDecoderProfile) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), pDecoderProfile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetCertificateSize(uint* pCertificateSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), pCertificateSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetCertificate(uint CertificateSize, byte* pCertificate) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), CertificateSize, pCertificate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void GetCryptoSessionHandle(IntPtr* pCryptoSessionHandle) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), pCryptoSessionHandle); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Debug.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Debug.cs new file mode 100644 index 0000000..3c8de50 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Debug.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Debug +[Guid("79cf2233-7536-4948-9d36-1e4692dc5760")] +[NativeTypeName("struct ID3D11Debug : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11Debug +{ + public static ref readonly Guid IID_ID3D11Debug + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x33, 0x22, 0xCF, 0x79, + 0x36, 0x75, + 0x48, 0x49, + 0x9D, + 0x36, + 0x1E, + 0x46, + 0x92, + 0xDC, + 0x57, + 0x60 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Debug)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetFeatureMask(uint Mask) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Debug*)Unsafe.AsPointer(ref this), Mask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetFeatureMask() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Debug*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPresentPerRenderOpDelay(uint Milliseconds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Debug*)Unsafe.AsPointer(ref this), Milliseconds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public uint GetPresentPerRenderOpDelay() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Debug*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetSwapChain(Graphics.Dxgi.IDXGISwapChain* pSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Debug*)Unsafe.AsPointer(ref this), pSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetSwapChain(Graphics.Dxgi.IDXGISwapChain** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Debug*)Unsafe.AsPointer(ref this), ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult ValidateContext(ID3D11DeviceContext* pContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Debug*)Unsafe.AsPointer(ref this), pContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult ReportLiveDeviceObjects(ReportLiveDeviceObjectFlags Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Debug*)Unsafe.AsPointer(ref this), Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult ValidateContextForDispatch(ID3D11DeviceContext* pContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Debug*)Unsafe.AsPointer(ref this), pContext); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DepthStencilState.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DepthStencilState.cs new file mode 100644 index 0000000..089d581 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DepthStencilState.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11DepthStencilState +[Guid("03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1")] +[NativeTypeName("struct ID3D11DepthStencilState : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11DepthStencilState +{ + public static ref readonly Guid IID_ID3D11DepthStencilState + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFB, 0x3E, 0x82, 0x03, + 0x8F, 0x8D, + 0x1C, 0x4E, + 0x9A, + 0xA2, + 0xF6, + 0x4B, + 0xB2, + 0xCB, + 0xFD, + 0xF1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DepthStencilState)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetDesc(DepthStencilDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DepthStencilView.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DepthStencilView.cs new file mode 100644 index 0000000..e84a335 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DepthStencilView.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11DepthStencilView +[Guid("9fdac92a-1876-48c3-afad-25b94f84a9b6")] +[NativeTypeName("struct ID3D11DepthStencilView : ID3D11View")] +[NativeInheritance("ID3D11View")] +public unsafe partial struct ID3D11DepthStencilView +{ + public static ref readonly Guid IID_ID3D11DepthStencilView + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2A, 0xC9, 0xDA, 0x9F, + 0x76, 0x18, + 0xC3, 0x48, + 0xAF, + 0xAD, + 0x25, + 0xB9, + 0x4F, + 0x84, + 0xA9, + 0xB6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DepthStencilView)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetResource(ID3D11Resource** ppResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(DepthStencilViewDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device.cs new file mode 100644 index 0000000..f947679 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device.cs @@ -0,0 +1,403 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Device +[Guid("db6f6ddb-ac77-4e88-8253-819df9bbf140")] +[NativeTypeName("struct ID3D11Device : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11Device +{ + public static ref readonly Guid IID_ID3D11Device + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDB, 0x6D, 0x6F, 0xDB, + 0x77, 0xAC, + 0x88, 0x4E, + 0x82, + 0x53, + 0x81, + 0x9D, + 0xF9, + 0xBB, + 0xF1, + 0x40 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Device*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Device*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture1D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Device*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture2D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Device*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Device*)Unsafe.AsPointer(ref this), pResource, pDesc, ppSRView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Device*)Unsafe.AsPointer(ref this), pResource, pDesc, ppUAView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Device*)Unsafe.AsPointer(ref this), pResource, pDesc, ppRTView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Device*)Unsafe.AsPointer(ref this), pResource, pDesc, ppDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Device*)Unsafe.AsPointer(ref this), pInputElementDescs, NumElements, pShaderBytecodeWithInputSignature, BytecodeLength, ppInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppVertexShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppGeometryShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pSODeclaration, NumEntries, pBufferStrides, NumStrides, RasterizedStream, pClassLinkage, ppGeometryShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppPixelShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppHullShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppDomainShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11Device*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppComputeShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11Device*)Unsafe.AsPointer(ref this), ppLinkage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11Device*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11Device*)Unsafe.AsPointer(ref this), pDepthStencilDesc, ppDepthStencilState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11Device*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11Device*)Unsafe.AsPointer(ref this), pSamplerDesc, ppSamplerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11Device*)Unsafe.AsPointer(ref this), pQueryDesc, ppQuery); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11Device*)Unsafe.AsPointer(ref this), pPredicateDesc, ppPredicate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11Device*)Unsafe.AsPointer(ref this), pCounterDesc, ppCounter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11Device*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult OpenSharedResource(IntPtr hResource, Guid* ReturnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11Device*)Unsafe.AsPointer(ref this), hResource, ReturnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11Device*)Unsafe.AsPointer(ref this), Format, pFormatSupport); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11Device*)Unsafe.AsPointer(ref this), Format, SampleCount, pNumQualityLevels); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void CheckCounterInfo(CounterInfo* pCounterInfo) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11Device*)Unsafe.AsPointer(ref this), pCounterInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11Device*)Unsafe.AsPointer(ref this), pDesc, pType, pActiveCounters, szName, pNameLength, szUnits, pUnitsLength, szDescription, pDescriptionLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11Device*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11Device*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11Device*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11Device*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public Graphics.Direct3D.FeatureLevel GetFeatureLevel() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11Device*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public uint GetCreationFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11Device*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11Device*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11Device*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult SetExceptionMode(uint RaiseFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11Device*)Unsafe.AsPointer(ref this), RaiseFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public uint GetExceptionMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11Device*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device1.cs new file mode 100644 index 0000000..0112fd5 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device1.cs @@ -0,0 +1,459 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Device1 +[Guid("a04bfb29-08ef-43d6-a49c-a9bdbdcbe686")] +[NativeTypeName("struct ID3D11Device1 : ID3D11Device")] +[NativeInheritance("ID3D11Device")] +public unsafe partial struct ID3D11Device1 +{ + public static ref readonly Guid IID_ID3D11Device1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x29, 0xFB, 0x4B, 0xA0, + 0xEF, 0x08, + 0xD6, 0x43, + 0xA4, + 0x9C, + 0xA9, + 0xBD, + 0xBD, + 0xCB, + 0xE6, + 0x86 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture1D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture2D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, ppSRView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, ppUAView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, ppRTView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, ppDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pInputElementDescs, NumElements, pShaderBytecodeWithInputSignature, BytecodeLength, ppInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppVertexShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppGeometryShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pSODeclaration, NumEntries, pBufferStrides, NumStrides, RasterizedStream, pClassLinkage, ppGeometryShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppPixelShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppHullShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppDomainShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppComputeShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11Device1*)Unsafe.AsPointer(ref this), ppLinkage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pDepthStencilDesc, ppDepthStencilState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pSamplerDesc, ppSamplerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pQueryDesc, ppQuery); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pPredicateDesc, ppPredicate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pCounterDesc, ppCounter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11Device1*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult OpenSharedResource(IntPtr hResource, Guid* ReturnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11Device1*)Unsafe.AsPointer(ref this), hResource, ReturnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11Device1*)Unsafe.AsPointer(ref this), Format, pFormatSupport); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11Device1*)Unsafe.AsPointer(ref this), Format, SampleCount, pNumQualityLevels); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void CheckCounterInfo(CounterInfo* pCounterInfo) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pCounterInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pDesc, pType, pActiveCounters, szName, pNameLength, szUnits, pUnitsLength, szDescription, pDescriptionLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11Device1*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11Device1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11Device1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11Device1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public Graphics.Direct3D.FeatureLevel GetFeatureLevel() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11Device1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public uint GetCreationFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11Device1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11Device1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11Device1*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult SetExceptionMode(uint RaiseFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11Device1*)Unsafe.AsPointer(ref this), RaiseFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public uint GetExceptionMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11Device1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void GetImmediateContext1(ID3D11DeviceContext1** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11Device1*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreateDeferredContext1(uint ContextFlags, ID3D11DeviceContext1** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11Device1*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult CreateBlendState1(BlendDescription1* pBlendStateDesc, ID3D11BlendState1** ppBlendState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult CreateRasterizerState1(RasterizerDescription1* pRasterizerDesc, ID3D11RasterizerState1** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11Device1*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreateDeviceContextState(uint Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Guid* EmulatedInterface, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel, ID3DDeviceContextState** ppContextState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11Device1*)Unsafe.AsPointer(ref this), Flags, pFeatureLevels, FeatureLevels, SDKVersion, EmulatedInterface, pChosenFeatureLevel, ppContextState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenSharedResource1(IntPtr hResource, Guid* returnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11Device1*)Unsafe.AsPointer(ref this), hResource, returnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11Device1*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device2.cs new file mode 100644 index 0000000..4a1797f --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device2.cs @@ -0,0 +1,491 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Device2 +[Guid("9d06dffa-d1e5-4d07-83a8-1bb123f2f841")] +[NativeTypeName("struct ID3D11Device2 : ID3D11Device1")] +[NativeInheritance("ID3D11Device1")] +public unsafe partial struct ID3D11Device2 +{ + public static ref readonly Guid IID_ID3D11Device2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFA, 0xDF, 0x06, 0x9D, + 0xE5, 0xD1, + 0x07, 0x4D, + 0x83, + 0xA8, + 0x1B, + 0xB1, + 0x23, + 0xF2, + 0xF8, + 0x41 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture1D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture2D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, ppSRView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, ppUAView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, ppRTView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, ppDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pInputElementDescs, NumElements, pShaderBytecodeWithInputSignature, BytecodeLength, ppInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppVertexShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppGeometryShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pSODeclaration, NumEntries, pBufferStrides, NumStrides, RasterizedStream, pClassLinkage, ppGeometryShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppPixelShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppHullShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppDomainShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppComputeShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ppLinkage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pDepthStencilDesc, ppDepthStencilState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pSamplerDesc, ppSamplerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pQueryDesc, ppQuery); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pPredicateDesc, ppPredicate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pCounterDesc, ppCounter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult OpenSharedResource(IntPtr hResource, Guid* ReturnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11Device2*)Unsafe.AsPointer(ref this), hResource, ReturnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11Device2*)Unsafe.AsPointer(ref this), Format, pFormatSupport); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11Device2*)Unsafe.AsPointer(ref this), Format, SampleCount, pNumQualityLevels); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void CheckCounterInfo(CounterInfo* pCounterInfo) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pCounterInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pDesc, pType, pActiveCounters, szName, pNameLength, szUnits, pUnitsLength, szDescription, pDescriptionLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11Device2*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11Device2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11Device2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11Device2*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public Graphics.Direct3D.FeatureLevel GetFeatureLevel() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11Device2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public uint GetCreationFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11Device2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11Device2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult SetExceptionMode(uint RaiseFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11Device2*)Unsafe.AsPointer(ref this), RaiseFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public uint GetExceptionMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11Device2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void GetImmediateContext1(ID3D11DeviceContext1** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreateDeferredContext1(uint ContextFlags, ID3D11DeviceContext1** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult CreateBlendState1(BlendDescription1* pBlendStateDesc, ID3D11BlendState1** ppBlendState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult CreateRasterizerState1(RasterizerDescription1* pRasterizerDesc, ID3D11RasterizerState1** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreateDeviceContextState(uint Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Guid* EmulatedInterface, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel, ID3DDeviceContextState** ppContextState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11Device2*)Unsafe.AsPointer(ref this), Flags, pFeatureLevels, FeatureLevels, SDKVersion, EmulatedInterface, pChosenFeatureLevel, ppContextState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenSharedResource1(IntPtr hResource, Guid* returnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11Device2*)Unsafe.AsPointer(ref this), hResource, returnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11Device2*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void GetImmediateContext2(ID3D11DeviceContext2** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult CreateDeferredContext2(uint ContextFlags, ID3D11DeviceContext2** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11Device2*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetResourceTiling(ID3D11Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipDescription* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11Device2*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CheckMultisampleQualityLevels1(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint Flags, uint* pNumQualityLevels) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11Device2*)Unsafe.AsPointer(ref this), Format, SampleCount, Flags, pNumQualityLevels); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device3.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device3.cs new file mode 100644 index 0000000..b109171 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device3.cs @@ -0,0 +1,579 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Device3 +[Guid("a05c8c37-d2c6-4732-b3a0-9ce0b0dc9ae6")] +[NativeTypeName("struct ID3D11Device3 : ID3D11Device2")] +[NativeInheritance("ID3D11Device2")] +public unsafe partial struct ID3D11Device3 +{ + public static ref readonly Guid IID_ID3D11Device3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x37, 0x8C, 0x5C, 0xA0, + 0xC6, 0xD2, + 0x32, 0x47, + 0xB3, + 0xA0, + 0x9C, + 0xE0, + 0xB0, + 0xDC, + 0x9A, + 0xE6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture1D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture2D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, ppSRView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, ppUAView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, ppRTView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, ppDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pInputElementDescs, NumElements, pShaderBytecodeWithInputSignature, BytecodeLength, ppInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppVertexShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppGeometryShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pSODeclaration, NumEntries, pBufferStrides, NumStrides, RasterizedStream, pClassLinkage, ppGeometryShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppPixelShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppHullShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppDomainShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppComputeShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ppLinkage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDepthStencilDesc, ppDepthStencilState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pSamplerDesc, ppSamplerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pQueryDesc, ppQuery); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pPredicateDesc, ppPredicate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pCounterDesc, ppCounter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult OpenSharedResource(IntPtr hResource, Guid* ReturnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11Device3*)Unsafe.AsPointer(ref this), hResource, ReturnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11Device3*)Unsafe.AsPointer(ref this), Format, pFormatSupport); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11Device3*)Unsafe.AsPointer(ref this), Format, SampleCount, pNumQualityLevels); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void CheckCounterInfo(CounterInfo* pCounterInfo) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pCounterInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc, pType, pActiveCounters, szName, pNameLength, szUnits, pUnitsLength, szDescription, pDescriptionLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11Device3*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11Device3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11Device3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11Device3*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public Graphics.Direct3D.FeatureLevel GetFeatureLevel() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11Device3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public uint GetCreationFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11Device3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11Device3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult SetExceptionMode(uint RaiseFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11Device3*)Unsafe.AsPointer(ref this), RaiseFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public uint GetExceptionMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11Device3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void GetImmediateContext1(ID3D11DeviceContext1** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreateDeferredContext1(uint ContextFlags, ID3D11DeviceContext1** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult CreateBlendState1(BlendDescription1* pBlendStateDesc, ID3D11BlendState1** ppBlendState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult CreateRasterizerState1(RasterizerDescription1* pRasterizerDesc, ID3D11RasterizerState1** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreateDeviceContextState(uint Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Guid* EmulatedInterface, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel, ID3DDeviceContextState** ppContextState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11Device3*)Unsafe.AsPointer(ref this), Flags, pFeatureLevels, FeatureLevels, SDKVersion, EmulatedInterface, pChosenFeatureLevel, ppContextState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenSharedResource1(IntPtr hResource, Guid* returnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11Device3*)Unsafe.AsPointer(ref this), hResource, returnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11Device3*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void GetImmediateContext2(ID3D11DeviceContext2** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult CreateDeferredContext2(uint ContextFlags, ID3D11DeviceContext2** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetResourceTiling(ID3D11Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipDescription* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CheckMultisampleQualityLevels1(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint Flags, uint* pNumQualityLevels) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11Device3*)Unsafe.AsPointer(ref this), Format, SampleCount, Flags, pNumQualityLevels); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult CreateTexture2D1(Texture2DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture2D1** ppTexture2D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc1, pInitialData, ppTexture2D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult CreateTexture3D1(Texture3DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture3D1** ppTexture3D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDesc1, pInitialData, ppTexture3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult CreateRasterizerState2(RasterizerDescription2* pRasterizerDesc, ID3D11RasterizerState2** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateShaderResourceView1(ID3D11Resource* pResource, ShaderResourceViewDescription1* pDesc1, ID3D11ShaderResourceView1** ppSRView1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppSRView1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult CreateUnorderedAccessView1(ID3D11Resource* pResource, UnorderedAccessViewDescription1* pDesc1, ID3D11UnorderedAccessView1** ppUAView1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppUAView1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult CreateRenderTargetView1(ID3D11Resource* pResource, RenderTargetViewDescription1* pDesc1, ID3D11RenderTargetView1** ppRTView1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppRTView1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult CreateQuery1(QueryDescription1* pQueryDesc1, ID3D11Query1** ppQuery1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pQueryDesc1, ppQuery1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void GetImmediateContext3(ID3D11DeviceContext3** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateDeferredContext3(uint ContextFlags, ID3D11DeviceContext3** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11Device3*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void WriteToSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, pSrcResource, SrcSubresource, pSrcBox); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device4.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device4.cs new file mode 100644 index 0000000..428a101 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device4.cs @@ -0,0 +1,595 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Device4 +[Guid("8992ab71-02e6-4b8d-ba48-b056dcda42c4")] +[NativeTypeName("struct ID3D11Device4 : ID3D11Device3")] +[NativeInheritance("ID3D11Device3")] +public unsafe partial struct ID3D11Device4 +{ + public static ref readonly Guid IID_ID3D11Device4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x71, 0xAB, 0x92, 0x89, + 0xE6, 0x02, + 0x8D, 0x4B, + 0xBA, + 0x48, + 0xB0, + 0x56, + 0xDC, + 0xDA, + 0x42, + 0xC4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture1D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture2D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, ppSRView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, ppUAView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, ppRTView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, ppDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pInputElementDescs, NumElements, pShaderBytecodeWithInputSignature, BytecodeLength, ppInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppVertexShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppGeometryShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pSODeclaration, NumEntries, pBufferStrides, NumStrides, RasterizedStream, pClassLinkage, ppGeometryShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppPixelShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppHullShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppDomainShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppComputeShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ppLinkage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDepthStencilDesc, ppDepthStencilState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pSamplerDesc, ppSamplerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pQueryDesc, ppQuery); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pPredicateDesc, ppPredicate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pCounterDesc, ppCounter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult OpenSharedResource(IntPtr hResource, Guid* ReturnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11Device4*)Unsafe.AsPointer(ref this), hResource, ReturnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11Device4*)Unsafe.AsPointer(ref this), Format, pFormatSupport); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11Device4*)Unsafe.AsPointer(ref this), Format, SampleCount, pNumQualityLevels); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void CheckCounterInfo(CounterInfo* pCounterInfo) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pCounterInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc, pType, pActiveCounters, szName, pNameLength, szUnits, pUnitsLength, szDescription, pDescriptionLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11Device4*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11Device4*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11Device4*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11Device4*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public Graphics.Direct3D.FeatureLevel GetFeatureLevel() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11Device4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public uint GetCreationFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11Device4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11Device4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult SetExceptionMode(uint RaiseFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11Device4*)Unsafe.AsPointer(ref this), RaiseFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public uint GetExceptionMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11Device4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void GetImmediateContext1(ID3D11DeviceContext1** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreateDeferredContext1(uint ContextFlags, ID3D11DeviceContext1** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult CreateBlendState1(BlendDescription1* pBlendStateDesc, ID3D11BlendState1** ppBlendState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult CreateRasterizerState1(RasterizerDescription1* pRasterizerDesc, ID3D11RasterizerState1** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreateDeviceContextState(uint Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Guid* EmulatedInterface, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel, ID3DDeviceContextState** ppContextState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11Device4*)Unsafe.AsPointer(ref this), Flags, pFeatureLevels, FeatureLevels, SDKVersion, EmulatedInterface, pChosenFeatureLevel, ppContextState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenSharedResource1(IntPtr hResource, Guid* returnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11Device4*)Unsafe.AsPointer(ref this), hResource, returnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11Device4*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void GetImmediateContext2(ID3D11DeviceContext2** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult CreateDeferredContext2(uint ContextFlags, ID3D11DeviceContext2** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetResourceTiling(ID3D11Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipDescription* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CheckMultisampleQualityLevels1(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint Flags, uint* pNumQualityLevels) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11Device4*)Unsafe.AsPointer(ref this), Format, SampleCount, Flags, pNumQualityLevels); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult CreateTexture2D1(Texture2DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture2D1** ppTexture2D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc1, pInitialData, ppTexture2D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult CreateTexture3D1(Texture3DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture3D1** ppTexture3D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDesc1, pInitialData, ppTexture3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult CreateRasterizerState2(RasterizerDescription2* pRasterizerDesc, ID3D11RasterizerState2** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateShaderResourceView1(ID3D11Resource* pResource, ShaderResourceViewDescription1* pDesc1, ID3D11ShaderResourceView1** ppSRView1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppSRView1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult CreateUnorderedAccessView1(ID3D11Resource* pResource, UnorderedAccessViewDescription1* pDesc1, ID3D11UnorderedAccessView1** ppUAView1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppUAView1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult CreateRenderTargetView1(ID3D11Resource* pResource, RenderTargetViewDescription1* pDesc1, ID3D11RenderTargetView1** ppRTView1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppRTView1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult CreateQuery1(QueryDescription1* pQueryDesc1, ID3D11Query1** ppQuery1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pQueryDesc1, ppQuery1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void GetImmediateContext3(ID3D11DeviceContext3** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateDeferredContext3(uint ContextFlags, ID3D11DeviceContext3** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11Device4*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void WriteToSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11Device4*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, pSrcResource, SrcSubresource, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult RegisterDeviceRemovedEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11Device4*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void UnregisterDeviceRemoved(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11Device4*)Unsafe.AsPointer(ref this), dwCookie); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device5.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device5.cs new file mode 100644 index 0000000..ecffacf --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Device5.cs @@ -0,0 +1,611 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Device5 +[Guid("8ffde202-a0e7-45df-9e01-e837801b5ea0")] +[NativeTypeName("struct ID3D11Device5 : ID3D11Device4")] +[NativeInheritance("ID3D11Device4")] +public unsafe partial struct ID3D11Device5 +{ + public static ref readonly Guid IID_ID3D11Device5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x02, 0xE2, 0xFD, 0x8F, + 0xE7, 0xA0, + 0xDF, 0x45, + 0x9E, + 0x01, + 0xE8, + 0x37, + 0x80, + 0x1B, + 0x5E, + 0xA0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Device5)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture1D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture2D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc, pInitialData, ppTexture3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, ppSRView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, ppUAView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, ppRTView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, ppDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pInputElementDescs, NumElements, pShaderBytecodeWithInputSignature, BytecodeLength, ppInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppVertexShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppGeometryShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pSODeclaration, NumEntries, pBufferStrides, NumStrides, RasterizedStream, pClassLinkage, ppGeometryShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppPixelShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppHullShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppDomainShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pShaderBytecode, BytecodeLength, pClassLinkage, ppComputeShader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ppLinkage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDepthStencilDesc, ppDepthStencilState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pSamplerDesc, ppSamplerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pQueryDesc, ppQuery); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pPredicateDesc, ppPredicate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pCounterDesc, ppCounter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult OpenSharedResource(IntPtr hResource, Guid* ReturnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11Device5*)Unsafe.AsPointer(ref this), hResource, ReturnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11Device5*)Unsafe.AsPointer(ref this), Format, pFormatSupport); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11Device5*)Unsafe.AsPointer(ref this), Format, SampleCount, pNumQualityLevels); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void CheckCounterInfo(CounterInfo* pCounterInfo) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pCounterInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc, pType, pActiveCounters, szName, pNameLength, szUnits, pUnitsLength, szDescription, pDescriptionLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11Device5*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11Device5*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11Device5*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11Device5*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public Graphics.Direct3D.FeatureLevel GetFeatureLevel() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11Device5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public uint GetCreationFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11Device5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11Device5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult SetExceptionMode(uint RaiseFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11Device5*)Unsafe.AsPointer(ref this), RaiseFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public uint GetExceptionMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11Device5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void GetImmediateContext1(ID3D11DeviceContext1** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreateDeferredContext1(uint ContextFlags, ID3D11DeviceContext1** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult CreateBlendState1(BlendDescription1* pBlendStateDesc, ID3D11BlendState1** ppBlendState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pBlendStateDesc, ppBlendState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult CreateRasterizerState1(RasterizerDescription1* pRasterizerDesc, ID3D11RasterizerState1** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreateDeviceContextState(uint Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Guid* EmulatedInterface, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel, ID3DDeviceContextState** ppContextState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11Device5*)Unsafe.AsPointer(ref this), Flags, pFeatureLevels, FeatureLevels, SDKVersion, EmulatedInterface, pChosenFeatureLevel, ppContextState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenSharedResource1(IntPtr hResource, Guid* returnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11Device5*)Unsafe.AsPointer(ref this), hResource, returnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11Device5*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void GetImmediateContext2(ID3D11DeviceContext2** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult CreateDeferredContext2(uint ContextFlags, ID3D11DeviceContext2** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetResourceTiling(ID3D11Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipDescription* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CheckMultisampleQualityLevels1(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint Flags, uint* pNumQualityLevels) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11Device5*)Unsafe.AsPointer(ref this), Format, SampleCount, Flags, pNumQualityLevels); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult CreateTexture2D1(Texture2DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture2D1** ppTexture2D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc1, pInitialData, ppTexture2D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult CreateTexture3D1(Texture3DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture3D1** ppTexture3D) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDesc1, pInitialData, ppTexture3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult CreateRasterizerState2(RasterizerDescription2* pRasterizerDesc, ID3D11RasterizerState2** ppRasterizerState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pRasterizerDesc, ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateShaderResourceView1(ID3D11Resource* pResource, ShaderResourceViewDescription1* pDesc1, ID3D11ShaderResourceView1** ppSRView1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppSRView1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult CreateUnorderedAccessView1(ID3D11Resource* pResource, UnorderedAccessViewDescription1* pDesc1, ID3D11UnorderedAccessView1** ppUAView1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppUAView1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult CreateRenderTargetView1(ID3D11Resource* pResource, RenderTargetViewDescription1* pDesc1, ID3D11RenderTargetView1** ppRTView1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pResource, pDesc1, ppRTView1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult CreateQuery1(QueryDescription1* pQueryDesc1, ID3D11Query1** ppQuery1) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pQueryDesc1, ppQuery1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void GetImmediateContext3(ID3D11DeviceContext3** ppImmediateContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ppImmediateContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateDeferredContext3(uint ContextFlags, ID3D11DeviceContext3** ppDeferredContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11Device5*)Unsafe.AsPointer(ref this), ContextFlags, ppDeferredContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void WriteToSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11Device5*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, pSrcResource, SrcSubresource, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult RegisterDeviceRemovedEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11Device5*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void UnregisterDeviceRemoved(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11Device5*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult OpenSharedFence(IntPtr hFence, Guid* ReturnedInterface, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11Device5*)Unsafe.AsPointer(ref this), hFence, ReturnedInterface, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* ReturnedInterface, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11Device5*)Unsafe.AsPointer(ref this), InitialValue, Flags, ReturnedInterface, ppFence); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceChild.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceChild.cs new file mode 100644 index 0000000..3a4bc86 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceChild.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11DeviceChild +[Guid("1841e5c8-16b0-489b-bcc8-44cfb0d5deae")] +[NativeTypeName("struct ID3D11DeviceChild : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11DeviceChild +{ + public static ref readonly Guid IID_ID3D11DeviceChild + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC8, 0xE5, 0x41, 0x18, + 0xB0, 0x16, + 0x9B, 0x48, + 0xBC, + 0xC8, + 0x44, + 0xCF, + 0xB0, + 0xD5, + 0xDE, + 0xAE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceChild)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, pData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext.cs new file mode 100644 index 0000000..2ac19ed --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext.cs @@ -0,0 +1,979 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11DeviceContext +[Guid("c0bfa96c-e089-44fb-8eaf-26f8796190da")] +[NativeTypeName("struct ID3D11DeviceContext : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11DeviceContext +{ + public static ref readonly Guid IID_ID3D11DeviceContext + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6C, 0xA9, 0xBF, 0xC0, + 0x89, 0xE0, + 0xFB, 0x44, + 0x8E, + 0xAF, + 0x26, + 0xF8, + 0x79, + 0x61, + 0x90, + 0xDA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void VSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void PSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void PSSetShader(ID3D11PixelShader* pPixelShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pPixelShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void PSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void VSSetShader(ID3D11VertexShader* pVertexShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pVertexShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawIndexed(uint IndexCount, uint StartIndexLocation, int BaseVertexLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), IndexCount, StartIndexLocation, BaseVertexLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void Draw(uint VertexCount, uint StartVertexLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), VertexCount, StartVertexLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult Map(ID3D11Resource* pResource, uint Subresource, Map MapType, MapFlags MapFlags, MappedSubresource* pMappedResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void Unmap(ID3D11Resource* pResource, uint Subresource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pResource, Subresource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void PSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void IASetInputLayout(ID3D11InputLayout* pInputLayout) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void IASetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void IASetIndexBuffer(ID3D11Buffer* pIndexBuffer, Graphics.Dxgi.Common.Format Format, uint Offset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void GSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void GSSetShader(ID3D11GeometryShader* pShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology Topology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), Topology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void VSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void VSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void Begin(ID3D11Asynchronous* pAsync) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pAsync); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void End(ID3D11Asynchronous* pAsync) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pAsync); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult GetData(ID3D11Asynchronous* pAsync, void* pData, uint DataSize, uint GetDataFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pAsync, pData, DataSize, GetDataFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetPredication(ID3D11Predicate* pPredicate, Bool32 PredicateValue) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pPredicate, PredicateValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void GSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void OMSetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, pDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void OMSetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, pDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void OMSetBlendState(ID3D11BlendState* pBlendState, float* BlendFactor, uint SampleMask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pBlendState, BlendFactor, SampleMask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void OMSetDepthStencilState(ID3D11DepthStencilState* pDepthStencilState, uint StencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDepthStencilState, StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SOSetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void DrawAuto() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void DrawIndexedInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void DrawInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void DispatchIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void RSSetState(ID3D11RasterizerState* pRasterizerState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void RSSetScissorRects(uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void CopySubresourceRegion(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void CopyResource(ID3D11Resource* pDstResource, ID3D11Resource* pSrcResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void UpdateSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void CopyStructureCount(ID3D11Buffer* pDstBuffer, uint DstAlignedByteOffset, ID3D11UnorderedAccessView* pSrcView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDstBuffer, DstAlignedByteOffset, pSrcView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void ClearRenderTargetView(ID3D11RenderTargetView* pRenderTargetView, float* ColorRGBA) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pRenderTargetView, ColorRGBA); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void ClearUnorderedAccessViewUint(ID3D11UnorderedAccessView* pUnorderedAccessView, uint* Values) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void ClearUnorderedAccessViewFloat(ID3D11UnorderedAccessView* pUnorderedAccessView, float* Values) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, uint ClearFlags, float Depth, byte Stencil) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public void GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pShaderResourceView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetResourceMinLOD(ID3D11Resource* pResource, float MinLOD) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pResource, MinLOD); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public float GetResourceMinLOD(ID3D11Resource* pResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void ResolveSubresource(ID3D11Resource* pDstResource, uint DstSubresource, ID3D11Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void ExecuteCommandList(ID3D11CommandList* pCommandList, Bool32 RestoreContextState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pCommandList, RestoreContextState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public void HSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public void HSSetShader(ID3D11HullShader* pHullShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pHullShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void HSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public void HSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void DSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void DSSetShader(ID3D11DomainShader* pDomainShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pDomainShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public void DSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void DSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public void CSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public void CSSetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public void CSSetShader(ID3D11ComputeShader* pComputeShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pComputeShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public void CSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void CSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void VSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void PSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void PSGetShader(ID3D11PixelShader** ppPixelShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppPixelShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void PSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void VSGetShader(ID3D11VertexShader** ppVertexShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppVertexShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void PSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void IAGetInputLayout(ID3D11InputLayout** ppInputLayout) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public void IAGetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void IAGetIndexBuffer(ID3D11Buffer** pIndexBuffer, Graphics.Dxgi.Common.Format* Format, uint* Offset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public void GSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void GSGetShader(ID3D11GeometryShader** ppGeometryShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppGeometryShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void IAGetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology* pTopology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void VSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void VSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void GetPredication(ID3D11Predicate** ppPredicate, Bool32* pPredicateValue) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppPredicate, pPredicateValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public void GSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public void GSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public void OMGetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, ppDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public void OMGetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, ppDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void OMGetBlendState(ID3D11BlendState** ppBlendState, float* BlendFactor, uint* pSampleMask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppBlendState, BlendFactor, pSampleMask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(92)] + public void OMGetDepthStencilState(ID3D11DepthStencilState** ppDepthStencilState, uint* pStencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppDepthStencilState, pStencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(93)] + public void SOGetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(94)] + public void RSGetState(ID3D11RasterizerState** ppRasterizerState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(95)] + public void RSGetViewports(uint* pNumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pNumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(96)] + public void RSGetScissorRects(uint* pNumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), pNumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(97)] + public void HSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(98)] + public void HSGetShader(ID3D11HullShader** ppHullShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppHullShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(99)] + public void HSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(100)] + public void HSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(101)] + public void DSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(102)] + public void DSGetShader(ID3D11DomainShader** ppDomainShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppDomainShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(103)] + public void DSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(104)] + public void DSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(105)] + public void CSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(106)] + public void CSGetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(107)] + public void CSGetShader(ID3D11ComputeShader** ppComputeShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), ppComputeShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(108)] + public void CSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(109)] + public void CSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(110)] + public void ClearState() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(111)] + public void Flush() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(112)] + public new DeviceContextType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(113)] + public uint GetContextFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(114)] + public HResult FinishCommandList(Bool32 RestoreDeferredContextState, ID3D11CommandList** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), RestoreDeferredContextState, ppCommandList); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext1.cs new file mode 100644 index 0000000..7c8cade --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext1.cs @@ -0,0 +1,1131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11DeviceContext1 +[Guid("bb2c6faa-b5fb-4082-8e6b-388b8cfa90e1")] +[NativeTypeName("struct ID3D11DeviceContext1 : ID3D11DeviceContext")] +[NativeInheritance("ID3D11DeviceContext")] +public unsafe partial struct ID3D11DeviceContext1 +{ + public static ref readonly Guid IID_ID3D11DeviceContext1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0x6F, 0x2C, 0xBB, + 0xFB, 0xB5, + 0x82, 0x40, + 0x8E, + 0x6B, + 0x38, + 0x8B, + 0x8C, + 0xFA, + 0x90, + 0xE1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void VSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void PSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void PSSetShader(ID3D11PixelShader* pPixelShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pPixelShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void PSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void VSSetShader(ID3D11VertexShader* pVertexShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pVertexShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawIndexed(uint IndexCount, uint StartIndexLocation, int BaseVertexLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), IndexCount, StartIndexLocation, BaseVertexLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void Draw(uint VertexCount, uint StartVertexLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), VertexCount, StartVertexLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult Map(ID3D11Resource* pResource, uint Subresource, Map MapType, uint MapFlags, MappedSubresource* pMappedResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void Unmap(ID3D11Resource* pResource, uint Subresource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResource, Subresource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void PSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void IASetInputLayout(ID3D11InputLayout* pInputLayout) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void IASetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void IASetIndexBuffer(ID3D11Buffer* pIndexBuffer, Graphics.Dxgi.Common.Format Format, uint Offset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void GSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void GSSetShader(ID3D11GeometryShader* pShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology Topology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), Topology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void VSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void VSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void Begin(ID3D11Asynchronous* pAsync) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pAsync); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void End(ID3D11Asynchronous* pAsync) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pAsync); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult GetData(ID3D11Asynchronous* pAsync, void* pData, uint DataSize, uint GetDataFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pAsync, pData, DataSize, GetDataFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetPredication(ID3D11Predicate* pPredicate, Bool32 PredicateValue) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pPredicate, PredicateValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void GSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void OMSetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, pDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void OMSetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, pDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void OMSetBlendState(ID3D11BlendState* pBlendState, float* BlendFactor, uint SampleMask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pBlendState, BlendFactor, SampleMask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void OMSetDepthStencilState(ID3D11DepthStencilState* pDepthStencilState, uint StencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDepthStencilState, StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SOSetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void DrawAuto() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void DrawIndexedInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void DrawInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void DispatchIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void RSSetState(ID3D11RasterizerState* pRasterizerState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void RSSetScissorRects(uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void CopySubresourceRegion(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void CopyResource(ID3D11Resource* pDstResource, ID3D11Resource* pSrcResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void UpdateSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void CopyStructureCount(ID3D11Buffer* pDstBuffer, uint DstAlignedByteOffset, ID3D11UnorderedAccessView* pSrcView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstBuffer, DstAlignedByteOffset, pSrcView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void ClearRenderTargetView(ID3D11RenderTargetView* pRenderTargetView, float* ColorRGBA) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pRenderTargetView, ColorRGBA); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void ClearUnorderedAccessViewUint(ID3D11UnorderedAccessView* pUnorderedAccessView, uint* Values) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void ClearUnorderedAccessViewFloat(ID3D11UnorderedAccessView* pUnorderedAccessView, float* Values) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, uint ClearFlags, float Depth, byte Stencil) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public void GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pShaderResourceView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetResourceMinLOD(ID3D11Resource* pResource, float MinLOD) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResource, MinLOD); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public float GetResourceMinLOD(ID3D11Resource* pResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void ResolveSubresource(ID3D11Resource* pDstResource, uint DstSubresource, ID3D11Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void ExecuteCommandList(ID3D11CommandList* pCommandList, Bool32 RestoreContextState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pCommandList, RestoreContextState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public void HSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public void HSSetShader(ID3D11HullShader* pHullShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pHullShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void HSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public void HSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void DSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void DSSetShader(ID3D11DomainShader* pDomainShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDomainShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public void DSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void DSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public void CSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public void CSSetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public void CSSetShader(ID3D11ComputeShader* pComputeShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pComputeShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public void CSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void CSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void VSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void PSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void PSGetShader(ID3D11PixelShader** ppPixelShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppPixelShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void PSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void VSGetShader(ID3D11VertexShader** ppVertexShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppVertexShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void PSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void IAGetInputLayout(ID3D11InputLayout** ppInputLayout) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public void IAGetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void IAGetIndexBuffer(ID3D11Buffer** pIndexBuffer, Graphics.Dxgi.Common.Format* Format, uint* Offset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public void GSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void GSGetShader(ID3D11GeometryShader** ppGeometryShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppGeometryShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void IAGetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology* pTopology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void VSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void VSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void GetPredication(ID3D11Predicate** ppPredicate, Bool32* pPredicateValue) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppPredicate, pPredicateValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public void GSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public void GSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public void OMGetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, ppDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public void OMGetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, ppDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void OMGetBlendState(ID3D11BlendState** ppBlendState, float* BlendFactor, uint* pSampleMask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppBlendState, BlendFactor, pSampleMask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(92)] + public void OMGetDepthStencilState(ID3D11DepthStencilState** ppDepthStencilState, uint* pStencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppDepthStencilState, pStencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(93)] + public void SOGetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(94)] + public void RSGetState(ID3D11RasterizerState** ppRasterizerState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(95)] + public void RSGetViewports(uint* pNumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pNumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(96)] + public void RSGetScissorRects(uint* pNumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pNumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(97)] + public void HSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(98)] + public void HSGetShader(ID3D11HullShader** ppHullShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppHullShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(99)] + public void HSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(100)] + public void HSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(101)] + public void DSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(102)] + public void DSGetShader(ID3D11DomainShader** ppDomainShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppDomainShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(103)] + public void DSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(104)] + public void DSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(105)] + public void CSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(106)] + public void CSGetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(107)] + public void CSGetShader(ID3D11ComputeShader** ppComputeShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), ppComputeShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(108)] + public void CSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(109)] + public void CSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(110)] + public void ClearState() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(111)] + public void Flush() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(112)] + public new DeviceContextType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(113)] + public uint GetContextFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(114)] + public HResult FinishCommandList(Bool32 RestoreDeferredContextState, ID3D11CommandList** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), RestoreDeferredContextState, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(115)] + public void CopySubresourceRegion1(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox, uint CopyFlags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[115]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox, CopyFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(116)] + public void UpdateSubresource1(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch, uint CopyFlags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[116]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch, CopyFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(117)] + public void DiscardResource(ID3D11Resource* pResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[117]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(118)] + public void DiscardView(ID3D11View* pResourceView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[118]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResourceView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(119)] + public void VSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[119]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(120)] + public void HSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[120]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(121)] + public void DSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[121]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(122)] + public void GSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[122]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(123)] + public void PSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[123]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(124)] + public void CSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[124]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(125)] + public void VSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[125]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(126)] + public void HSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[126]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(127)] + public void DSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[127]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(128)] + public void GSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[128]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(129)] + public void PSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[129]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(130)] + public void CSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[130]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(131)] + public void SwapDeviceContextState(ID3DDeviceContextState* pState, ID3DDeviceContextState** ppPreviousState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[131]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pState, ppPreviousState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(132)] + public void ClearView(ID3D11View* pView, float* Color, RawRect* pRect, uint NumRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[132]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pView, Color, pRect, NumRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(133)] + public void DiscardView1(ID3D11View* pResourceView, RawRect* pRects, uint NumRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[133]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResourceView, pRects, NumRects); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext2.cs new file mode 100644 index 0000000..e964dee --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext2.cs @@ -0,0 +1,1211 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11DeviceContext2 +[Guid("420d5b32-b90c-4da4-bef0-359f6a24a83a")] +[NativeTypeName("struct ID3D11DeviceContext2 : ID3D11DeviceContext1")] +[NativeInheritance("ID3D11DeviceContext1")] +public unsafe partial struct ID3D11DeviceContext2 +{ + public static ref readonly Guid IID_ID3D11DeviceContext2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x32, 0x5B, 0x0D, 0x42, + 0x0C, 0xB9, + 0xA4, 0x4D, + 0xBE, + 0xF0, + 0x35, + 0x9F, + 0x6A, + 0x24, + 0xA8, + 0x3A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void VSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void PSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void PSSetShader(ID3D11PixelShader* pPixelShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pPixelShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void PSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void VSSetShader(ID3D11VertexShader* pVertexShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pVertexShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawIndexed(uint IndexCount, uint StartIndexLocation, int BaseVertexLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), IndexCount, StartIndexLocation, BaseVertexLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void Draw(uint VertexCount, uint StartVertexLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), VertexCount, StartVertexLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult Map(ID3D11Resource* pResource, uint Subresource, Map MapType, uint MapFlags, MappedSubresource* pMappedResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void Unmap(ID3D11Resource* pResource, uint Subresource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResource, Subresource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void PSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void IASetInputLayout(ID3D11InputLayout* pInputLayout) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void IASetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void IASetIndexBuffer(ID3D11Buffer* pIndexBuffer, Graphics.Dxgi.Common.Format Format, uint Offset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void GSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void GSSetShader(ID3D11GeometryShader* pShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology Topology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), Topology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void VSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void VSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void Begin(ID3D11Asynchronous* pAsync) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pAsync); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void End(ID3D11Asynchronous* pAsync) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pAsync); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult GetData(ID3D11Asynchronous* pAsync, void* pData, uint DataSize, uint GetDataFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pAsync, pData, DataSize, GetDataFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetPredication(ID3D11Predicate* pPredicate, Bool32 PredicateValue) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pPredicate, PredicateValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void GSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void OMSetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, pDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void OMSetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, pDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void OMSetBlendState(ID3D11BlendState* pBlendState, float* BlendFactor, uint SampleMask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pBlendState, BlendFactor, SampleMask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void OMSetDepthStencilState(ID3D11DepthStencilState* pDepthStencilState, uint StencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDepthStencilState, StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SOSetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void DrawAuto() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void DrawIndexedInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void DrawInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void DispatchIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void RSSetState(ID3D11RasterizerState* pRasterizerState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void RSSetScissorRects(uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void CopySubresourceRegion(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void CopyResource(ID3D11Resource* pDstResource, ID3D11Resource* pSrcResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void UpdateSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void CopyStructureCount(ID3D11Buffer* pDstBuffer, uint DstAlignedByteOffset, ID3D11UnorderedAccessView* pSrcView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstBuffer, DstAlignedByteOffset, pSrcView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void ClearRenderTargetView(ID3D11RenderTargetView* pRenderTargetView, float* ColorRGBA) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pRenderTargetView, ColorRGBA); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void ClearUnorderedAccessViewUint(ID3D11UnorderedAccessView* pUnorderedAccessView, uint* Values) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void ClearUnorderedAccessViewFloat(ID3D11UnorderedAccessView* pUnorderedAccessView, float* Values) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, uint ClearFlags, float Depth, byte Stencil) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public void GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pShaderResourceView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetResourceMinLOD(ID3D11Resource* pResource, float MinLOD) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResource, MinLOD); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public float GetResourceMinLOD(ID3D11Resource* pResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void ResolveSubresource(ID3D11Resource* pDstResource, uint DstSubresource, ID3D11Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void ExecuteCommandList(ID3D11CommandList* pCommandList, Bool32 RestoreContextState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pCommandList, RestoreContextState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public void HSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public void HSSetShader(ID3D11HullShader* pHullShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pHullShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void HSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public void HSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void DSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void DSSetShader(ID3D11DomainShader* pDomainShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDomainShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public void DSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void DSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public void CSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public void CSSetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public void CSSetShader(ID3D11ComputeShader* pComputeShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pComputeShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public void CSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void CSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void VSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void PSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void PSGetShader(ID3D11PixelShader** ppPixelShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppPixelShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void PSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void VSGetShader(ID3D11VertexShader** ppVertexShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppVertexShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void PSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void IAGetInputLayout(ID3D11InputLayout** ppInputLayout) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public void IAGetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void IAGetIndexBuffer(ID3D11Buffer** pIndexBuffer, Graphics.Dxgi.Common.Format* Format, uint* Offset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public void GSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void GSGetShader(ID3D11GeometryShader** ppGeometryShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppGeometryShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void IAGetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology* pTopology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void VSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void VSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void GetPredication(ID3D11Predicate** ppPredicate, Bool32* pPredicateValue) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppPredicate, pPredicateValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public void GSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public void GSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public void OMGetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, ppDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public void OMGetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, ppDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void OMGetBlendState(ID3D11BlendState** ppBlendState, float* BlendFactor, uint* pSampleMask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppBlendState, BlendFactor, pSampleMask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(92)] + public void OMGetDepthStencilState(ID3D11DepthStencilState** ppDepthStencilState, uint* pStencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppDepthStencilState, pStencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(93)] + public void SOGetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(94)] + public void RSGetState(ID3D11RasterizerState** ppRasterizerState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(95)] + public void RSGetViewports(uint* pNumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pNumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(96)] + public void RSGetScissorRects(uint* pNumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pNumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(97)] + public void HSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(98)] + public void HSGetShader(ID3D11HullShader** ppHullShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppHullShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(99)] + public void HSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(100)] + public void HSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(101)] + public void DSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(102)] + public void DSGetShader(ID3D11DomainShader** ppDomainShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppDomainShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(103)] + public void DSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(104)] + public void DSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(105)] + public void CSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(106)] + public void CSGetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(107)] + public void CSGetShader(ID3D11ComputeShader** ppComputeShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), ppComputeShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(108)] + public void CSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(109)] + public void CSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(110)] + public void ClearState() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(111)] + public void Flush() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(112)] + public new DeviceContextType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(113)] + public uint GetContextFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(114)] + public HResult FinishCommandList(Bool32 RestoreDeferredContextState, ID3D11CommandList** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), RestoreDeferredContextState, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(115)] + public void CopySubresourceRegion1(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox, uint CopyFlags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[115]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox, CopyFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(116)] + public void UpdateSubresource1(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch, uint CopyFlags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[116]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch, CopyFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(117)] + public void DiscardResource(ID3D11Resource* pResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[117]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(118)] + public void DiscardView(ID3D11View* pResourceView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[118]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResourceView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(119)] + public void VSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[119]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(120)] + public void HSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[120]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(121)] + public void DSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[121]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(122)] + public void GSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[122]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(123)] + public void PSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[123]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(124)] + public void CSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[124]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(125)] + public void VSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[125]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(126)] + public void HSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[126]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(127)] + public void DSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[127]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(128)] + public void GSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[128]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(129)] + public void PSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[129]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(130)] + public void CSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[130]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(131)] + public void SwapDeviceContextState(ID3DDeviceContextState* pState, ID3DDeviceContextState** ppPreviousState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[131]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pState, ppPreviousState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(132)] + public void ClearView(ID3D11View* pView, float* Color, RawRect* pRect, uint NumRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[132]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pView, Color, pRect, NumRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(133)] + public void DiscardView1(ID3D11View* pResourceView, RawRect* pRects, uint NumRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[133]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pResourceView, pRects, NumRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(134)] + public HResult UpdateTileMappings(ID3D11Resource* pTiledResource, uint NumTiledResourceRegions, TiledResourceCoordinate* pTiledResourceRegionStartCoordinates, TileRegionSize* pTiledResourceRegionSizes, ID3D11Buffer* pTilePool, uint NumRanges, uint* pRangeFlags, uint* pTilePoolStartOffsets, uint* pRangeTileCounts, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[134]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pTiledResource, NumTiledResourceRegions, pTiledResourceRegionStartCoordinates, pTiledResourceRegionSizes, pTilePool, NumRanges, pRangeFlags, pTilePoolStartOffsets, pRangeTileCounts, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(135)] + public HResult CopyTileMappings(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestRegionStartCoordinate, ID3D11Resource* pSourceTiledResource, TiledResourceCoordinate* pSourceRegionStartCoordinate, TileRegionSize* pTileRegionSize, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[135]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDestTiledResource, pDestRegionStartCoordinate, pSourceTiledResource, pSourceRegionStartCoordinate, pTileRegionSize, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(136)] + public void CopyTiles(ID3D11Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D11Buffer* pBuffer, ulong BufferStartOffsetInBytes, uint Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[136]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(137)] + public void UpdateTiles(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestTileRegionStartCoordinate, TileRegionSize* pDestTileRegionSize, void* pSourceTileData, uint Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[137]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pDestTiledResource, pDestTileRegionStartCoordinate, pDestTileRegionSize, pSourceTileData, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(138)] + public HResult ResizeTilePool(ID3D11Buffer* pTilePool, ulong NewSizeInBytes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[138]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pTilePool, NewSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(139)] + public void TiledResourceBarrier(ID3D11DeviceChild* pTiledResourceOrViewAccessBeforeBarrier, ID3D11DeviceChild* pTiledResourceOrViewAccessAfterBarrier) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[139]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pTiledResourceOrViewAccessBeforeBarrier, pTiledResourceOrViewAccessAfterBarrier); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(140)] + public Bool32 IsAnnotationEnabled() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[140]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(141)] + public void SetMarkerInt(ushort* pLabel, int Data) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[141]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pLabel, Data); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(142)] + public void BeginEventInt(ushort* pLabel, int Data) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[142]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this), pLabel, Data); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(143)] + public void EndEvent() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[143]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext3.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext3.cs new file mode 100644 index 0000000..360efa2 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext3.cs @@ -0,0 +1,1235 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11DeviceContext3 +[Guid("b4e3c01d-e79e-4637-91b2-510e9f4c9b8f")] +[NativeTypeName("struct ID3D11DeviceContext3 : ID3D11DeviceContext2")] +[NativeInheritance("ID3D11DeviceContext2")] +public unsafe partial struct ID3D11DeviceContext3 +{ + public static ref readonly Guid IID_ID3D11DeviceContext3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1D, 0xC0, 0xE3, 0xB4, + 0x9E, 0xE7, + 0x37, 0x46, + 0x91, + 0xB2, + 0x51, + 0x0E, + 0x9F, + 0x4C, + 0x9B, + 0x8F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void VSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void PSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void PSSetShader(ID3D11PixelShader* pPixelShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pPixelShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void PSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void VSSetShader(ID3D11VertexShader* pVertexShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pVertexShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawIndexed(uint IndexCount, uint StartIndexLocation, int BaseVertexLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), IndexCount, StartIndexLocation, BaseVertexLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void Draw(uint VertexCount, uint StartVertexLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), VertexCount, StartVertexLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult Map(ID3D11Resource* pResource, uint Subresource, Map MapType, uint MapFlags, MappedSubresource* pMappedResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void Unmap(ID3D11Resource* pResource, uint Subresource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResource, Subresource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void PSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void IASetInputLayout(ID3D11InputLayout* pInputLayout) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void IASetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void IASetIndexBuffer(ID3D11Buffer* pIndexBuffer, Graphics.Dxgi.Common.Format Format, uint Offset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void GSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void GSSetShader(ID3D11GeometryShader* pShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology Topology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), Topology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void VSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void VSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void Begin(ID3D11Asynchronous* pAsync) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pAsync); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void End(ID3D11Asynchronous* pAsync) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pAsync); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult GetData(ID3D11Asynchronous* pAsync, void* pData, uint DataSize, uint GetDataFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pAsync, pData, DataSize, GetDataFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetPredication(ID3D11Predicate* pPredicate, Bool32 PredicateValue) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pPredicate, PredicateValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void GSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void OMSetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, pDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void OMSetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, pDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void OMSetBlendState(ID3D11BlendState* pBlendState, float* BlendFactor, uint SampleMask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pBlendState, BlendFactor, SampleMask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void OMSetDepthStencilState(ID3D11DepthStencilState* pDepthStencilState, uint StencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDepthStencilState, StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SOSetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void DrawAuto() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void DrawIndexedInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void DrawInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void DispatchIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void RSSetState(ID3D11RasterizerState* pRasterizerState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void RSSetScissorRects(uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void CopySubresourceRegion(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void CopyResource(ID3D11Resource* pDstResource, ID3D11Resource* pSrcResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void UpdateSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void CopyStructureCount(ID3D11Buffer* pDstBuffer, uint DstAlignedByteOffset, ID3D11UnorderedAccessView* pSrcView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstBuffer, DstAlignedByteOffset, pSrcView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void ClearRenderTargetView(ID3D11RenderTargetView* pRenderTargetView, float* ColorRGBA) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pRenderTargetView, ColorRGBA); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void ClearUnorderedAccessViewUint(ID3D11UnorderedAccessView* pUnorderedAccessView, uint* Values) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void ClearUnorderedAccessViewFloat(ID3D11UnorderedAccessView* pUnorderedAccessView, float* Values) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, uint ClearFlags, float Depth, byte Stencil) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public void GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pShaderResourceView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetResourceMinLOD(ID3D11Resource* pResource, float MinLOD) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResource, MinLOD); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public float GetResourceMinLOD(ID3D11Resource* pResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void ResolveSubresource(ID3D11Resource* pDstResource, uint DstSubresource, ID3D11Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void ExecuteCommandList(ID3D11CommandList* pCommandList, Bool32 RestoreContextState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pCommandList, RestoreContextState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public void HSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public void HSSetShader(ID3D11HullShader* pHullShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pHullShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void HSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public void HSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void DSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void DSSetShader(ID3D11DomainShader* pDomainShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDomainShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public void DSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void DSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public void CSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public void CSSetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public void CSSetShader(ID3D11ComputeShader* pComputeShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pComputeShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public void CSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void CSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void VSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void PSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void PSGetShader(ID3D11PixelShader** ppPixelShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppPixelShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void PSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void VSGetShader(ID3D11VertexShader** ppVertexShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppVertexShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void PSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void IAGetInputLayout(ID3D11InputLayout** ppInputLayout) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public void IAGetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void IAGetIndexBuffer(ID3D11Buffer** pIndexBuffer, Graphics.Dxgi.Common.Format* Format, uint* Offset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public void GSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void GSGetShader(ID3D11GeometryShader** ppGeometryShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppGeometryShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void IAGetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology* pTopology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void VSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void VSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void GetPredication(ID3D11Predicate** ppPredicate, Bool32* pPredicateValue) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppPredicate, pPredicateValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public void GSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public void GSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public void OMGetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, ppDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public void OMGetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, ppDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void OMGetBlendState(ID3D11BlendState** ppBlendState, float* BlendFactor, uint* pSampleMask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppBlendState, BlendFactor, pSampleMask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(92)] + public void OMGetDepthStencilState(ID3D11DepthStencilState** ppDepthStencilState, uint* pStencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppDepthStencilState, pStencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(93)] + public void SOGetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(94)] + public void RSGetState(ID3D11RasterizerState** ppRasterizerState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(95)] + public void RSGetViewports(uint* pNumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pNumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(96)] + public void RSGetScissorRects(uint* pNumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pNumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(97)] + public void HSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(98)] + public void HSGetShader(ID3D11HullShader** ppHullShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppHullShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(99)] + public void HSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(100)] + public void HSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(101)] + public void DSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(102)] + public void DSGetShader(ID3D11DomainShader** ppDomainShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppDomainShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(103)] + public void DSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(104)] + public void DSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(105)] + public void CSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(106)] + public void CSGetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(107)] + public void CSGetShader(ID3D11ComputeShader** ppComputeShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ppComputeShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(108)] + public void CSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(109)] + public void CSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(110)] + public void ClearState() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(111)] + public void Flush() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(112)] + public new DeviceContextType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(113)] + public uint GetContextFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(114)] + public HResult FinishCommandList(Bool32 RestoreDeferredContextState, ID3D11CommandList** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), RestoreDeferredContextState, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(115)] + public void CopySubresourceRegion1(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox, uint CopyFlags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[115]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox, CopyFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(116)] + public void UpdateSubresource1(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch, uint CopyFlags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[116]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch, CopyFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(117)] + public void DiscardResource(ID3D11Resource* pResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[117]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(118)] + public void DiscardView(ID3D11View* pResourceView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[118]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResourceView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(119)] + public void VSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[119]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(120)] + public void HSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[120]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(121)] + public void DSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[121]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(122)] + public void GSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[122]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(123)] + public void PSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[123]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(124)] + public void CSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[124]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(125)] + public void VSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[125]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(126)] + public void HSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[126]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(127)] + public void DSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[127]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(128)] + public void GSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[128]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(129)] + public void PSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[129]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(130)] + public void CSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[130]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(131)] + public void SwapDeviceContextState(ID3DDeviceContextState* pState, ID3DDeviceContextState** ppPreviousState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[131]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pState, ppPreviousState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(132)] + public void ClearView(ID3D11View* pView, float* Color, RawRect* pRect, uint NumRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[132]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pView, Color, pRect, NumRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(133)] + public void DiscardView1(ID3D11View* pResourceView, RawRect* pRects, uint NumRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[133]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResourceView, pRects, NumRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(134)] + public HResult UpdateTileMappings(ID3D11Resource* pTiledResource, uint NumTiledResourceRegions, TiledResourceCoordinate* pTiledResourceRegionStartCoordinates, TileRegionSize* pTiledResourceRegionSizes, ID3D11Buffer* pTilePool, uint NumRanges, uint* pRangeFlags, uint* pTilePoolStartOffsets, uint* pRangeTileCounts, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[134]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pTiledResource, NumTiledResourceRegions, pTiledResourceRegionStartCoordinates, pTiledResourceRegionSizes, pTilePool, NumRanges, pRangeFlags, pTilePoolStartOffsets, pRangeTileCounts, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(135)] + public HResult CopyTileMappings(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestRegionStartCoordinate, ID3D11Resource* pSourceTiledResource, TiledResourceCoordinate* pSourceRegionStartCoordinate, TileRegionSize* pTileRegionSize, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[135]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDestTiledResource, pDestRegionStartCoordinate, pSourceTiledResource, pSourceRegionStartCoordinate, pTileRegionSize, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(136)] + public void CopyTiles(ID3D11Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D11Buffer* pBuffer, ulong BufferStartOffsetInBytes, uint Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[136]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(137)] + public void UpdateTiles(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestTileRegionStartCoordinate, TileRegionSize* pDestTileRegionSize, void* pSourceTileData, uint Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[137]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDestTiledResource, pDestTileRegionStartCoordinate, pDestTileRegionSize, pSourceTileData, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(138)] + public HResult ResizeTilePool(ID3D11Buffer* pTilePool, ulong NewSizeInBytes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[138]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pTilePool, NewSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(139)] + public void TiledResourceBarrier(ID3D11DeviceChild* pTiledResourceOrViewAccessBeforeBarrier, ID3D11DeviceChild* pTiledResourceOrViewAccessAfterBarrier) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[139]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pTiledResourceOrViewAccessBeforeBarrier, pTiledResourceOrViewAccessAfterBarrier); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(140)] + public Bool32 IsAnnotationEnabled() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[140]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(141)] + public void SetMarkerInt(ushort* pLabel, int Data) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[141]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pLabel, Data); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(142)] + public void BeginEventInt(ushort* pLabel, int Data) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[142]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pLabel, Data); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(143)] + public void EndEvent() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[143]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(144)] + public void Flush1(ContextType ContextType, IntPtr hEvent) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[144]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), ContextType, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(145)] + public void SetHardwareProtectionState(Bool32 HwProtectionEnable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[145]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), HwProtectionEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(146)] + public void GetHardwareProtectionState(Bool32* pHwProtectionEnable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[146]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pHwProtectionEnable); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext4.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext4.cs new file mode 100644 index 0000000..f7cc70c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DeviceContext4.cs @@ -0,0 +1,1251 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11DeviceContext4 +[Guid("917600da-f58c-4c33-98d8-3e15b390fa24")] +[NativeTypeName("struct ID3D11DeviceContext4 : ID3D11DeviceContext3")] +[NativeInheritance("ID3D11DeviceContext3")] +public unsafe partial struct ID3D11DeviceContext4 +{ + public static ref readonly Guid IID_ID3D11DeviceContext4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDA, 0x00, 0x76, 0x91, + 0x8C, 0xF5, + 0x33, 0x4C, + 0x98, + 0xD8, + 0x3E, + 0x15, + 0xB3, + 0x90, + 0xFA, + 0x24 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DeviceContext4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void VSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void PSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void PSSetShader(ID3D11PixelShader* pPixelShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pPixelShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void PSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void VSSetShader(ID3D11VertexShader* pVertexShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pVertexShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawIndexed(uint IndexCount, uint StartIndexLocation, int BaseVertexLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), IndexCount, StartIndexLocation, BaseVertexLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void Draw(uint VertexCount, uint StartVertexLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), VertexCount, StartVertexLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult Map(ID3D11Resource* pResource, uint Subresource, Map MapType, uint MapFlags, MappedSubresource* pMappedResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void Unmap(ID3D11Resource* pResource, uint Subresource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResource, Subresource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void PSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void IASetInputLayout(ID3D11InputLayout* pInputLayout) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void IASetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void IASetIndexBuffer(ID3D11Buffer* pIndexBuffer, Graphics.Dxgi.Common.Format Format, uint Offset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void GSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void GSSetShader(ID3D11GeometryShader* pShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology Topology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), Topology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void VSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void VSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void Begin(ID3D11Asynchronous* pAsync) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pAsync); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void End(ID3D11Asynchronous* pAsync) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pAsync); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult GetData(ID3D11Asynchronous* pAsync, void* pData, uint DataSize, uint GetDataFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pAsync, pData, DataSize, GetDataFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetPredication(ID3D11Predicate* pPredicate, Bool32 PredicateValue) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pPredicate, PredicateValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void GSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void OMSetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, pDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void OMSetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, pDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void OMSetBlendState(ID3D11BlendState* pBlendState, float* BlendFactor, uint SampleMask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pBlendState, BlendFactor, SampleMask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void OMSetDepthStencilState(ID3D11DepthStencilState* pDepthStencilState, uint StencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDepthStencilState, StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SOSetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void DrawAuto() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void DrawIndexedInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void DrawInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void DispatchIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pBufferForArgs, AlignedByteOffsetForArgs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void RSSetState(ID3D11RasterizerState* pRasterizerState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void RSSetScissorRects(uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void CopySubresourceRegion(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void CopyResource(ID3D11Resource* pDstResource, ID3D11Resource* pSrcResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void UpdateSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void CopyStructureCount(ID3D11Buffer* pDstBuffer, uint DstAlignedByteOffset, ID3D11UnorderedAccessView* pSrcView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstBuffer, DstAlignedByteOffset, pSrcView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void ClearRenderTargetView(ID3D11RenderTargetView* pRenderTargetView, float* ColorRGBA) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pRenderTargetView, ColorRGBA); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void ClearUnorderedAccessViewUint(ID3D11UnorderedAccessView* pUnorderedAccessView, uint* Values) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void ClearUnorderedAccessViewFloat(ID3D11UnorderedAccessView* pUnorderedAccessView, float* Values) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pUnorderedAccessView, Values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, uint ClearFlags, float Depth, byte Stencil) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public void GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pShaderResourceView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetResourceMinLOD(ID3D11Resource* pResource, float MinLOD) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResource, MinLOD); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public float GetResourceMinLOD(ID3D11Resource* pResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void ResolveSubresource(ID3D11Resource* pDstResource, uint DstSubresource, ID3D11Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void ExecuteCommandList(ID3D11CommandList* pCommandList, Bool32 RestoreContextState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pCommandList, RestoreContextState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public void HSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public void HSSetShader(ID3D11HullShader* pHullShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pHullShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void HSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public void HSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void DSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void DSSetShader(ID3D11DomainShader* pDomainShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDomainShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public void DSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void DSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public void CSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public void CSSetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews, pUAVInitialCounts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public void CSSetShader(ID3D11ComputeShader* pComputeShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pComputeShader, ppClassInstances, NumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public void CSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void CSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void VSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void PSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void PSGetShader(ID3D11PixelShader** ppPixelShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppPixelShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void PSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void VSGetShader(ID3D11VertexShader** ppVertexShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppVertexShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void PSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void IAGetInputLayout(ID3D11InputLayout** ppInputLayout) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppInputLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public void IAGetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppVertexBuffers, pStrides, pOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void IAGetIndexBuffer(ID3D11Buffer** pIndexBuffer, Graphics.Dxgi.Common.Format* Format, uint* Offset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pIndexBuffer, Format, Offset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public void GSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void GSGetShader(ID3D11GeometryShader** ppGeometryShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppGeometryShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void IAGetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology* pTopology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void VSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void VSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void GetPredication(ID3D11Predicate** ppPredicate, Bool32* pPredicateValue) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppPredicate, pPredicateValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public void GSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public void GSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public void OMGetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[89]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumViews, ppRenderTargetViews, ppDepthStencilView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public void OMGetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[90]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumRTVs, ppRenderTargetViews, ppDepthStencilView, UAVStartSlot, NumUAVs, ppUnorderedAccessViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void OMGetBlendState(ID3D11BlendState** ppBlendState, float* BlendFactor, uint* pSampleMask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[91]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppBlendState, BlendFactor, pSampleMask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(92)] + public void OMGetDepthStencilState(ID3D11DepthStencilState** ppDepthStencilState, uint* pStencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[92]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppDepthStencilState, pStencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(93)] + public void SOGetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[93]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), NumBuffers, ppSOTargets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(94)] + public void RSGetState(ID3D11RasterizerState** ppRasterizerState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[94]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppRasterizerState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(95)] + public void RSGetViewports(uint* pNumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[95]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pNumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(96)] + public void RSGetScissorRects(uint* pNumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[96]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pNumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(97)] + public void HSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[97]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(98)] + public void HSGetShader(ID3D11HullShader** ppHullShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[98]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppHullShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(99)] + public void HSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[99]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(100)] + public void HSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[100]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(101)] + public void DSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[101]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(102)] + public void DSGetShader(ID3D11DomainShader** ppDomainShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[102]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppDomainShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(103)] + public void DSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[103]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(104)] + public void DSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[104]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(105)] + public void CSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[105]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, ppShaderResourceViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(106)] + public void CSGetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[106]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumUAVs, ppUnorderedAccessViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(107)] + public void CSGetShader(ID3D11ComputeShader** ppComputeShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[107]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ppComputeShader, ppClassInstances, pNumClassInstances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(108)] + public void CSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[108]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumSamplers, ppSamplers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(109)] + public void CSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[109]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(110)] + public void ClearState() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[110]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(111)] + public void Flush() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[111]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(112)] + public new DeviceContextType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[112]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(113)] + public uint GetContextFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[113]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(114)] + public HResult FinishCommandList(Bool32 RestoreDeferredContextState, ID3D11CommandList** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[114]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), RestoreDeferredContextState, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(115)] + public void CopySubresourceRegion1(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox, uint CopyFlags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[115]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox, CopyFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(116)] + public void UpdateSubresource1(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch, uint CopyFlags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[116]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch, CopyFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(117)] + public void DiscardResource(ID3D11Resource* pResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[117]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(118)] + public void DiscardView(ID3D11View* pResourceView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[118]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResourceView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(119)] + public void VSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[119]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(120)] + public void HSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[120]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(121)] + public void DSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[121]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(122)] + public void GSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[122]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(123)] + public void PSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[123]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(124)] + public void CSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[124]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(125)] + public void VSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[125]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(126)] + public void HSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[126]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(127)] + public void DSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[127]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(128)] + public void GSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[128]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(129)] + public void PSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[129]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(130)] + public void CSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[130]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), StartSlot, NumBuffers, ppConstantBuffers, pFirstConstant, pNumConstants); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(131)] + public void SwapDeviceContextState(ID3DDeviceContextState* pState, ID3DDeviceContextState** ppPreviousState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[131]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pState, ppPreviousState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(132)] + public void ClearView(ID3D11View* pView, float* Color, RawRect* pRect, uint NumRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[132]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pView, Color, pRect, NumRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(133)] + public void DiscardView1(ID3D11View* pResourceView, RawRect* pRects, uint NumRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[133]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pResourceView, pRects, NumRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(134)] + public HResult UpdateTileMappings(ID3D11Resource* pTiledResource, uint NumTiledResourceRegions, TiledResourceCoordinate* pTiledResourceRegionStartCoordinates, TileRegionSize* pTiledResourceRegionSizes, ID3D11Buffer* pTilePool, uint NumRanges, uint* pRangeFlags, uint* pTilePoolStartOffsets, uint* pRangeTileCounts, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[134]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pTiledResource, NumTiledResourceRegions, pTiledResourceRegionStartCoordinates, pTiledResourceRegionSizes, pTilePool, NumRanges, pRangeFlags, pTilePoolStartOffsets, pRangeTileCounts, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(135)] + public HResult CopyTileMappings(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestRegionStartCoordinate, ID3D11Resource* pSourceTiledResource, TiledResourceCoordinate* pSourceRegionStartCoordinate, TileRegionSize* pTileRegionSize, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[135]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDestTiledResource, pDestRegionStartCoordinate, pSourceTiledResource, pSourceRegionStartCoordinate, pTileRegionSize, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(136)] + public void CopyTiles(ID3D11Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D11Buffer* pBuffer, ulong BufferStartOffsetInBytes, uint Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[136]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(137)] + public void UpdateTiles(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestTileRegionStartCoordinate, TileRegionSize* pDestTileRegionSize, void* pSourceTileData, uint Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[137]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pDestTiledResource, pDestTileRegionStartCoordinate, pDestTileRegionSize, pSourceTileData, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(138)] + public HResult ResizeTilePool(ID3D11Buffer* pTilePool, ulong NewSizeInBytes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[138]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pTilePool, NewSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(139)] + public void TiledResourceBarrier(ID3D11DeviceChild* pTiledResourceOrViewAccessBeforeBarrier, ID3D11DeviceChild* pTiledResourceOrViewAccessAfterBarrier) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[139]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pTiledResourceOrViewAccessBeforeBarrier, pTiledResourceOrViewAccessAfterBarrier); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(140)] + public Bool32 IsAnnotationEnabled() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[140]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(141)] + public void SetMarkerInt(ushort* pLabel, int Data) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[141]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pLabel, Data); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(142)] + public void BeginEventInt(ushort* pLabel, int Data) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[142]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pLabel, Data); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(143)] + public void EndEvent() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[143]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(144)] + public void Flush1(ContextType ContextType, IntPtr hEvent) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[144]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), ContextType, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(145)] + public void SetHardwareProtectionState(Bool32 HwProtectionEnable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[145]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), HwProtectionEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(146)] + public void GetHardwareProtectionState(Bool32* pHwProtectionEnable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[146]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pHwProtectionEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(147)] + public HResult Signal(ID3D11Fence* pFence, ulong Value) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[147]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pFence, Value); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(148)] + public HResult Wait(ID3D11Fence* pFence, ulong Value) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[148]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pFence, Value); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DomainShader.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DomainShader.cs new file mode 100644 index 0000000..55da1d1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11DomainShader.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11DomainShader +[Guid("f582c508-0f36-490c-9977-31eece268cfa")] +[NativeTypeName("struct ID3D11DomainShader : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11DomainShader +{ + public static ref readonly Guid IID_ID3D11DomainShader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x08, 0xC5, 0x82, 0xF5, + 0x36, 0x0F, + 0x0C, 0x49, + 0x99, + 0x77, + 0x31, + 0xEE, + 0xCE, + 0x26, + 0x8C, + 0xFA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11DomainShader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, pData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Fence.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Fence.cs new file mode 100644 index 0000000..9f8d6cc --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Fence.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Fence +[Guid("affde9d1-1df7-4bb7-8a34-0f46251dab80")] +[NativeTypeName("struct ID3D11Fence : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11Fence +{ + public static ref readonly Guid IID_ID3D11Fence + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD1, 0xE9, 0xFD, 0xAF, + 0xF7, 0x1D, + 0xB7, 0x4B, + 0x8A, + 0x34, + 0x0F, + 0x46, + 0x25, + 0x1D, + 0xAB, + 0x80 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Fence)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Fence*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Fence*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Fence*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Fence*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateSharedHandle(Security.SECURITY_ATTRIBUTES* pAttributes, uint dwAccess, ushort* lpName, IntPtr* pHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Fence*)Unsafe.AsPointer(ref this), pAttributes, dwAccess, lpName, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public ulong GetCompletedValue() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Fence*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetEventOnCompletion(ulong Value, IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Fence*)Unsafe.AsPointer(ref this), Value, hEvent); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11FunctionLinkingGraph.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11FunctionLinkingGraph.cs new file mode 100644 index 0000000..4c30325 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11FunctionLinkingGraph.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11FunctionLinkingGraph +[Guid("54133220-1ce8-43d3-8236-9855c5ceecff")] +[NativeTypeName("struct ID3D11FunctionLinkingGraph : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11FunctionLinkingGraph +{ + public static ref readonly Guid IID_ID3D11FunctionLinkingGraph + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x20, 0x32, 0x13, 0x54, + 0xE8, 0x1C, + 0xD3, 0x43, + 0x82, + 0x36, + 0x98, + 0x55, + 0xC5, + 0xCE, + 0xEC, + 0xFF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11FunctionLinkingGraph)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateModuleInstance(ID3D11ModuleInstance** ppModuleInstance, Graphics.Direct3D.ID3DBlob** ppErrorBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), ppModuleInstance, ppErrorBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetInputSignature(ParameterDescription* pInputParameters, uint cInputParameters, ID3D11LinkingNode** ppInputNode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), pInputParameters, cInputParameters, ppInputNode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetOutputSignature(ParameterDescription* pOutputParameters, uint cOutputParameters, ID3D11LinkingNode** ppOutputNode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), pOutputParameters, cOutputParameters, ppOutputNode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CallFunction(sbyte* pModuleInstanceNamespace, ID3D11Module* pModuleWithFunctionPrototype, sbyte* pFunctionName, ID3D11LinkingNode** ppCallNode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), pModuleInstanceNamespace, pModuleWithFunctionPrototype, pFunctionName, ppCallNode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult PassValue(ID3D11LinkingNode* pSrcNode, int SrcParameterIndex, ID3D11LinkingNode* pDstNode, int DstParameterIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), pSrcNode, SrcParameterIndex, pDstNode, DstParameterIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult PassValueWithSwizzle(ID3D11LinkingNode* pSrcNode, int SrcParameterIndex, sbyte* pSrcSwizzle, ID3D11LinkingNode* pDstNode, int DstParameterIndex, sbyte* pDstSwizzle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), pSrcNode, SrcParameterIndex, pSrcSwizzle, pDstNode, DstParameterIndex, pDstSwizzle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetLastError(Graphics.Direct3D.ID3DBlob** ppErrorBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), ppErrorBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GenerateHlsl(uint uFlags, Graphics.Direct3D.ID3DBlob** ppBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), uFlags, ppBuffer); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11FunctionParameterReflection.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11FunctionParameterReflection.cs new file mode 100644 index 0000000..ef5882b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11FunctionParameterReflection.cs @@ -0,0 +1,63 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11FunctionParameterReflection +[Guid("42757488-334f-47fe-982e-1a65d08cc462")] +public unsafe partial struct ID3D11FunctionParameterReflection +{ + public static ref readonly Guid IID_ID3D11FunctionParameterReflection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x88, 0x74, 0x75, 0x42, + 0x4F, 0x33, + 0xFE, 0x47, + 0x98, + 0x2E, + 0x1A, + 0x65, + 0xD0, + 0x8C, + 0xC4, + 0x62 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11FunctionParameterReflection)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult GetDesc(ParameterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D11FunctionParameterReflection*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11FunctionReflection.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11FunctionReflection.cs new file mode 100644 index 0000000..0c19929 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11FunctionReflection.cs @@ -0,0 +1,111 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11FunctionReflection +[Guid("207bcecb-d683-4a06-a8a3-9b149b9f73a4")] +public unsafe partial struct ID3D11FunctionReflection +{ + public static ref readonly Guid IID_ID3D11FunctionReflection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCB, 0xCE, 0x7B, 0x20, + 0x83, 0xD6, + 0x06, 0x4A, + 0xA8, + 0xA3, + 0x9B, + 0x14, + 0x9B, + 0x9F, + 0x73, + 0xA4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11FunctionReflection)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult GetDesc(FunctionDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public ID3D11ShaderReflectionConstantBuffer GetConstantBufferByIndex(uint BufferIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), BufferIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public ID3D11ShaderReflectionConstantBuffer GetConstantBufferByName(sbyte* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetResourceBindingDesc(uint ResourceIndex, ShaderInputBindDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), ResourceIndex, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public ID3D11ShaderReflectionVariable GetVariableByName(sbyte* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetResourceBindingDescByName(sbyte* Name, ShaderInputBindDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), Name, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ID3D11FunctionParameterReflection GetFunctionParameter(int ParameterIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), ParameterIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11GeometryShader.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11GeometryShader.cs new file mode 100644 index 0000000..bdccbc7 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11GeometryShader.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11GeometryShader +[Guid("38325b96-effb-4022-ba02-2e795b70275c")] +[NativeTypeName("struct ID3D11GeometryShader : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11GeometryShader +{ + public static ref readonly Guid IID_ID3D11GeometryShader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x96, 0x5B, 0x32, 0x38, + 0xFB, 0xEF, + 0x22, 0x40, + 0xBA, + 0x02, + 0x2E, + 0x79, + 0x5B, + 0x70, + 0x27, + 0x5C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11GeometryShader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), guid, pData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11HullShader.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11HullShader.cs new file mode 100644 index 0000000..50e6833 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11HullShader.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11HullShader +[Guid("8e5c6061-628a-4c8e-8264-bbe45cb3d5dd")] +[NativeTypeName("struct ID3D11HullShader : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11HullShader +{ + public static ref readonly Guid IID_ID3D11HullShader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x61, 0x60, 0x5C, 0x8E, + 0x8A, 0x62, + 0x8E, 0x4C, + 0x82, + 0x64, + 0xBB, + 0xE4, + 0x5C, + 0xB3, + 0xD5, + 0xDD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11HullShader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, pData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11InfoQueue.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11InfoQueue.cs new file mode 100644 index 0000000..41c95e2 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11InfoQueue.cs @@ -0,0 +1,363 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11InfoQueue +[Guid("6543dbb6-1b48-42f5-ab82-e97ec74326f6")] +[NativeTypeName("struct ID3D11InfoQueue : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11InfoQueue +{ + public static ref readonly Guid IID_ID3D11InfoQueue + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB6, 0xDB, 0x43, 0x65, + 0x48, 0x1B, + 0xF5, 0x42, + 0xAB, + 0x82, + 0xE9, + 0x7E, + 0xC7, + 0x43, + 0x26, + 0xF6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11InfoQueue)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetMessageCountLimit(ulong MessageCountLimit) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), MessageCountLimit); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void ClearStoredMessages() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetMessage(ulong MessageIndex, Message* pMessage, nuint* pMessageByteLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), MessageIndex, pMessage, pMessageByteLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ulong GetNumMessagesAllowedByStorageFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public ulong GetNumMessagesDeniedByStorageFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public ulong GetNumStoredMessages() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ulong GetNumStoredMessagesAllowedByRetrievalFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ulong GetNumMessagesDiscardedByMessageCountLimit() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public ulong GetMessageCountLimit() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult AddStorageFilterEntries(InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetStorageFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void ClearStorageFilter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult PushEmptyStorageFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult PushCopyOfStorageFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult PushStorageFilter(InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void PopStorageFilter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public uint GetStorageFilterStackSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult AddRetrievalFilterEntries(InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetRetrievalFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void ClearRetrievalFilter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult PushEmptyRetrievalFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult PushCopyOfRetrievalFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult PushRetrievalFilter(InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void PopRetrievalFilter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public uint GetRetrievalFilterStackSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult AddMessage(MessageCategory Category, MessageSeverity Severity, MessageId ID, sbyte* pDescription) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), Category, Severity, ID, pDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult AddApplicationMessage(MessageSeverity Severity, sbyte* pDescription) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), Severity, pDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult SetBreakOnCategory(MessageCategory Category, Bool32 bEnable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), Category, bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult SetBreakOnSeverity(MessageSeverity Severity, Bool32 bEnable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), Severity, bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult SetBreakOnID(MessageId ID, Bool32 bEnable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), ID, bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public Bool32 GetBreakOnCategory(MessageCategory Category) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), Category); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public Bool32 GetBreakOnSeverity(MessageSeverity Severity) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), Severity); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public Bool32 GetBreakOnID(MessageId ID) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), ID); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetMuteDebugOutput(Bool32 bMute) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this), bMute); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public Bool32 GetMuteDebugOutput() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11InputLayout.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11InputLayout.cs new file mode 100644 index 0000000..891b447 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11InputLayout.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11InputLayout +[Guid("e4819ddc-4cf0-4025-bd26-5de82a3e07b7")] +[NativeTypeName("struct ID3D11InputLayout : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11InputLayout +{ + public static ref readonly Guid IID_ID3D11InputLayout + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDC, 0x9D, 0x81, 0xE4, + 0xF0, 0x4C, + 0x25, 0x40, + 0xBD, + 0x26, + 0x5D, + 0xE8, + 0x2A, + 0x3E, + 0x07, + 0xB7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11InputLayout)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11InputLayout*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11InputLayout*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11InputLayout*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11InputLayout*)Unsafe.AsPointer(ref this), guid, pData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11LibraryReflection.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11LibraryReflection.cs new file mode 100644 index 0000000..a332c75 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11LibraryReflection.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11LibraryReflection +[Guid("54384f1b-5b3e-4bb7-ae01-60ba3097cbb6")] +[NativeTypeName("struct ID3D11LibraryReflection : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11LibraryReflection +{ + public static ref readonly Guid IID_ID3D11LibraryReflection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1B, 0x4F, 0x38, 0x54, + 0x3E, 0x5B, + 0xB7, 0x4B, + 0xAE, + 0x01, + 0x60, + 0xBA, + 0x30, + 0x97, + 0xCB, + 0xB6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11LibraryReflection)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetDesc(LibraryDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11LibraryReflection*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public ID3D11FunctionReflection GetFunctionByIndex(int FunctionIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11LibraryReflection*)Unsafe.AsPointer(ref this), FunctionIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Linker.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Linker.cs new file mode 100644 index 0000000..3a44486 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Linker.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Linker +[Guid("59a6cd0e-e10d-4c1f-88c0-63aba1daf30e")] +[NativeTypeName("struct ID3D11Linker : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11Linker +{ + public static ref readonly Guid IID_ID3D11Linker + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0E, 0xCD, 0xA6, 0x59, + 0x0D, 0xE1, + 0x1F, 0x4C, + 0x88, + 0xC0, + 0x63, + 0xAB, + 0xA1, + 0xDA, + 0xF3, + 0x0E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Linker)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Link(ID3D11ModuleInstance* pEntry, sbyte* pEntryName, sbyte* pTargetName, uint uFlags, Graphics.Direct3D.ID3DBlob** ppShaderBlob, Graphics.Direct3D.ID3DBlob** ppErrorBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Linker*)Unsafe.AsPointer(ref this), pEntry, pEntryName, pTargetName, uFlags, ppShaderBlob, ppErrorBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult UseLibrary(ID3D11ModuleInstance* pLibraryMI) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Linker*)Unsafe.AsPointer(ref this), pLibraryMI); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult AddClipPlaneFromCBuffer(uint uCBufferSlot, uint uCBufferEntry) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Linker*)Unsafe.AsPointer(ref this), uCBufferSlot, uCBufferEntry); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11LinkingNode.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11LinkingNode.cs new file mode 100644 index 0000000..d8c01de --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11LinkingNode.cs @@ -0,0 +1,84 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11LinkingNode +[Guid("d80dd70c-8d2f-4751-94a1-03c79b3556db")] +[NativeTypeName("struct ID3D11LinkingNode : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11LinkingNode +{ + public static ref readonly Guid IID_ID3D11LinkingNode + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0C, 0xD7, 0x0D, 0xD8, + 0x2F, 0x8D, + 0x51, 0x47, + 0x94, + 0xA1, + 0x03, + 0xC7, + 0x9B, + 0x35, + 0x56, + 0xDB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11LinkingNode)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Module.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Module.cs new file mode 100644 index 0000000..4497d11 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Module.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Module +[Guid("cac701ee-80fc-4122-8242-10b39c8cec34")] +[NativeTypeName("struct ID3D11Module : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11Module +{ + public static ref readonly Guid IID_ID3D11Module + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEE, 0x01, 0xC7, 0xCA, + 0xFC, 0x80, + 0x22, 0x41, + 0x82, + 0x42, + 0x10, + 0xB3, + 0x9C, + 0x8C, + 0xEC, + 0x34 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Module)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateInstance(sbyte* pNamespace, ID3D11ModuleInstance** ppModuleInstance) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Module*)Unsafe.AsPointer(ref this), pNamespace, ppModuleInstance); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ModuleInstance.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ModuleInstance.cs new file mode 100644 index 0000000..3f34951 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ModuleInstance.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11ModuleInstance +[Guid("469e07f7-045a-48d5-aa12-68a478cdf75d")] +[NativeTypeName("struct ID3D11ModuleInstance : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11ModuleInstance +{ + public static ref readonly Guid IID_ID3D11ModuleInstance + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF7, 0x07, 0x9E, 0x46, + 0x5A, 0x04, + 0xD5, 0x48, + 0xAA, + 0x12, + 0x68, + 0xA4, + 0x78, + 0xCD, + 0xF7, + 0x5D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ModuleInstance)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult BindConstantBuffer(uint uSrcSlot, uint uDstSlot, uint cbDstOffset) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), uSrcSlot, uDstSlot, cbDstOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult BindConstantBufferByName(sbyte* pName, uint uDstSlot, uint cbDstOffset) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), pName, uDstSlot, cbDstOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult BindResource(uint uSrcSlot, uint uDstSlot, uint uCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), uSrcSlot, uDstSlot, uCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult BindResourceByName(sbyte* pName, uint uDstSlot, uint uCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), pName, uDstSlot, uCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult BindSampler(uint uSrcSlot, uint uDstSlot, uint uCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), uSrcSlot, uDstSlot, uCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult BindSamplerByName(sbyte* pName, uint uDstSlot, uint uCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), pName, uDstSlot, uCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult BindUnorderedAccessView(uint uSrcSlot, uint uDstSlot, uint uCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), uSrcSlot, uDstSlot, uCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult BindUnorderedAccessViewByName(sbyte* pName, uint uDstSlot, uint uCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), pName, uDstSlot, uCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult BindResourceAsUnorderedAccessView(uint uSrcSrvSlot, uint uDstUavSlot, uint uCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), uSrcSrvSlot, uDstUavSlot, uCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult BindResourceAsUnorderedAccessViewByName(sbyte* pSrvName, uint uDstUavSlot, uint uCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), pSrvName, uDstUavSlot, uCount); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Multithread.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Multithread.cs new file mode 100644 index 0000000..c7ef0fd --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Multithread.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Multithread +[Guid("9b7e4e00-342c-4106-a19f-4f2704f689f0")] +[NativeTypeName("struct ID3D11Multithread : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11Multithread +{ + public static ref readonly Guid IID_ID3D11Multithread + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x4E, 0x7E, 0x9B, + 0x2C, 0x34, + 0x06, 0x41, + 0xA1, + 0x9F, + 0x4F, + 0x27, + 0x04, + 0xF6, + 0x89, + 0xF0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Multithread)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void Enter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Multithread*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void Leave() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Multithread*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public Bool32 SetMultithreadProtected(Bool32 bMTProtect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Multithread*)Unsafe.AsPointer(ref this), bMTProtect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public Bool32 GetMultithreadProtected() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Multithread*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11PixelShader.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11PixelShader.cs new file mode 100644 index 0000000..cc3da8e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11PixelShader.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11PixelShader +[Guid("ea82e40d-51dc-4f33-93d4-db7c9125ae8c")] +[NativeTypeName("struct ID3D11PixelShader : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11PixelShader +{ + public static ref readonly Guid IID_ID3D11PixelShader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0D, 0xE4, 0x82, 0xEA, + 0xDC, 0x51, + 0x33, 0x4F, + 0x93, + 0xD4, + 0xDB, + 0x7C, + 0x91, + 0x25, + 0xAE, + 0x8C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11PixelShader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11PixelShader*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11PixelShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11PixelShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11PixelShader*)Unsafe.AsPointer(ref this), guid, pData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Predicate.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Predicate.cs new file mode 100644 index 0000000..7bad589 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Predicate.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Predicate +[Guid("9eb576dd-9f77-4d86-81aa-8bab5fe490e2")] +[NativeTypeName("struct ID3D11Predicate : ID3D11Query")] +[NativeInheritance("ID3D11Query")] +public unsafe partial struct ID3D11Predicate +{ + public static ref readonly Guid IID_ID3D11Predicate + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDD, 0x76, 0xB5, 0x9E, + 0x77, 0x9F, + 0x86, 0x4D, + 0x81, + 0xAA, + 0x8B, + 0xAB, + 0x5F, + 0xE4, + 0x90, + 0xE2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Predicate)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Predicate*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Predicate*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Predicate*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Predicate*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetDataSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Predicate*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(QueryDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Predicate*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Query.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Query.cs new file mode 100644 index 0000000..9f10b18 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Query.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Query +[Guid("d6c00747-87b7-425e-b84d-44d108560afd")] +[NativeTypeName("struct ID3D11Query : ID3D11Asynchronous")] +[NativeInheritance("ID3D11Asynchronous")] +public unsafe partial struct ID3D11Query +{ + public static ref readonly Guid IID_ID3D11Query + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x47, 0x07, 0xC0, 0xD6, + 0xB7, 0x87, + 0x5E, 0x42, + 0xB8, + 0x4D, + 0x44, + 0xD1, + 0x08, + 0x56, + 0x0A, + 0xFD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Query)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Query*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Query*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Query*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Query*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetDataSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Query*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(QueryDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Query*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Query1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Query1.cs new file mode 100644 index 0000000..6fc2a16 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Query1.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Query1 +[Guid("631b4766-36dc-461d-8db6-c47e13e60916")] +[NativeTypeName("struct ID3D11Query1 : ID3D11Query")] +[NativeInheritance("ID3D11Query")] +public unsafe partial struct ID3D11Query1 +{ + public static ref readonly Guid IID_ID3D11Query1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x66, 0x47, 0x1B, 0x63, + 0xDC, 0x36, + 0x1D, 0x46, + 0x8D, + 0xB6, + 0xC4, + 0x7E, + 0x13, + 0xE6, + 0x09, + 0x16 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Query1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Query1*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Query1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Query1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Query1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetDataSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Query1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(QueryDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Query1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void GetDesc1(QueryDescription1* pDesc1) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Query1*)Unsafe.AsPointer(ref this), pDesc1); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RasterizerState.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RasterizerState.cs new file mode 100644 index 0000000..0c6a01a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RasterizerState.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11RasterizerState +[Guid("9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7")] +[NativeTypeName("struct ID3D11RasterizerState : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11RasterizerState +{ + public static ref readonly Guid IID_ID3D11RasterizerState + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x81, 0xAB, 0xB4, 0x9B, + 0x1A, 0xAB, + 0x8F, 0x4D, + 0xB5, + 0x06, + 0xFC, + 0x04, + 0x20, + 0x0B, + 0x6E, + 0xE7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RasterizerState)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetDesc(RasterizerDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RasterizerState1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RasterizerState1.cs new file mode 100644 index 0000000..059779a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RasterizerState1.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11RasterizerState1 +[Guid("1217d7a6-5039-418c-b042-9cbe256afd6e")] +[NativeTypeName("struct ID3D11RasterizerState1 : ID3D11RasterizerState")] +[NativeInheritance("ID3D11RasterizerState")] +public unsafe partial struct ID3D11RasterizerState1 +{ + public static ref readonly Guid IID_ID3D11RasterizerState1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA6, 0xD7, 0x17, 0x12, + 0x39, 0x50, + 0x8C, 0x41, + 0xB0, + 0x42, + 0x9C, + 0xBE, + 0x25, + 0x6A, + 0xFD, + 0x6E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RasterizerState1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetDesc(RasterizerDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc1(RasterizerDescription1* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RasterizerState2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RasterizerState2.cs new file mode 100644 index 0000000..db93500 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RasterizerState2.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11RasterizerState2 +[Guid("6fbd02fb-209f-46c4-b059-2ed15586a6ac")] +[NativeTypeName("struct ID3D11RasterizerState2 : ID3D11RasterizerState1")] +[NativeInheritance("ID3D11RasterizerState1")] +public unsafe partial struct ID3D11RasterizerState2 +{ + public static ref readonly Guid IID_ID3D11RasterizerState2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFB, 0x02, 0xBD, 0x6F, + 0x9F, 0x20, + 0xC4, 0x46, + 0xB0, + 0x59, + 0x2E, + 0xD1, + 0x55, + 0x86, + 0xA6, + 0xAC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RasterizerState2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetDesc(RasterizerDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc1(RasterizerDescription1* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void GetDesc2(RasterizerDescription2* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RefDefaultTrackingOptions.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RefDefaultTrackingOptions.cs new file mode 100644 index 0000000..892ba7d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RefDefaultTrackingOptions.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11RefDefaultTrackingOptions +[Guid("03916615-c644-418c-9bf4-75db5be63ca0")] +[NativeTypeName("struct ID3D11RefDefaultTrackingOptions : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11RefDefaultTrackingOptions +{ + public static ref readonly Guid IID_ID3D11RefDefaultTrackingOptions + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x15, 0x66, 0x91, 0x03, + 0x44, 0xC6, + 0x8C, 0x41, + 0x9B, + 0xF4, + 0x75, + 0xDB, + 0x5B, + 0xE6, + 0x3C, + 0xA0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RefDefaultTrackingOptions)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetTrackingOptions(uint ResourceTypeFlags, uint Options) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RefDefaultTrackingOptions*)Unsafe.AsPointer(ref this), ResourceTypeFlags, Options); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RefTrackingOptions.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RefTrackingOptions.cs new file mode 100644 index 0000000..20c563a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RefTrackingOptions.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11RefTrackingOptions +[Guid("193dacdf-0db2-4c05-a55c-ef06cac56fd9")] +[NativeTypeName("struct ID3D11RefTrackingOptions : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11RefTrackingOptions +{ + public static ref readonly Guid IID_ID3D11RefTrackingOptions + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDF, 0xAC, 0x3D, 0x19, + 0xB2, 0x0D, + 0x05, 0x4C, + 0xA5, + 0x5C, + 0xEF, + 0x06, + 0xCA, + 0xC5, + 0x6F, + 0xD9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RefTrackingOptions)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetTrackingOptions(uint uOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RefTrackingOptions*)Unsafe.AsPointer(ref this), uOptions); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RenderTargetView.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RenderTargetView.cs new file mode 100644 index 0000000..78492a1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RenderTargetView.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11RenderTargetView +[Guid("dfdba067-0b8d-4865-875b-d7b4516cc164")] +[NativeTypeName("struct ID3D11RenderTargetView : ID3D11View")] +[NativeInheritance("ID3D11View")] +public unsafe partial struct ID3D11RenderTargetView +{ + public static ref readonly Guid IID_ID3D11RenderTargetView + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x67, 0xA0, 0xDB, 0xDF, + 0x8D, 0x0B, + 0x65, 0x48, + 0x87, + 0x5B, + 0xD7, + 0xB4, + 0x51, + 0x6C, + 0xC1, + 0x64 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RenderTargetView)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetResource(ID3D11Resource** ppResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(RenderTargetViewDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RenderTargetView1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RenderTargetView1.cs new file mode 100644 index 0000000..d555b8e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11RenderTargetView1.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11RenderTargetView1 +[Guid("ffbe2e23-f011-418a-ac56-5ceed7c5b94b")] +[NativeTypeName("struct ID3D11RenderTargetView1 : ID3D11RenderTargetView")] +[NativeInheritance("ID3D11RenderTargetView")] +public unsafe partial struct ID3D11RenderTargetView1 +{ + public static ref readonly Guid IID_ID3D11RenderTargetView1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x23, 0x2E, 0xBE, 0xFF, + 0x11, 0xF0, + 0x8A, 0x41, + 0xAC, + 0x56, + 0x5C, + 0xEE, + 0xD7, + 0xC5, + 0xB9, + 0x4B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11RenderTargetView1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetResource(ID3D11Resource** ppResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(RenderTargetViewDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void GetDesc1(RenderTargetViewDescription1* pDesc1) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), pDesc1); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Resource.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Resource.cs new file mode 100644 index 0000000..75a339a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Resource.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Resource +[Guid("dc8e63f3-d12b-4952-b47b-5e45026a862d")] +[NativeTypeName("struct ID3D11Resource : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11Resource +{ + public static ref readonly Guid IID_ID3D11Resource + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF3, 0x63, 0x8E, 0xDC, + 0x2B, 0xD1, + 0x52, 0x49, + 0xB4, + 0x7B, + 0x5E, + 0x45, + 0x02, + 0x6A, + 0x86, + 0x2D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Resource)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Resource*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Resource*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Resource*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Resource*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetType(ResourceDimension* pResourceDimension) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Resource*)Unsafe.AsPointer(ref this), pResourceDimension); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetEvictionPriority(uint EvictionPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Resource*)Unsafe.AsPointer(ref this), EvictionPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public uint GetEvictionPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Resource*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11SamplerState.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11SamplerState.cs new file mode 100644 index 0000000..f45443e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11SamplerState.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11SamplerState +[Guid("da6fea51-564c-4487-9810-f0d0f9b4e3a5")] +[NativeTypeName("struct ID3D11SamplerState : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11SamplerState +{ + public static ref readonly Guid IID_ID3D11SamplerState + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x51, 0xEA, 0x6F, 0xDA, + 0x4C, 0x56, + 0x87, 0x44, + 0x98, + 0x10, + 0xF0, + 0xD0, + 0xF9, + 0xB4, + 0xE3, + 0xA5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11SamplerState)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11SamplerState*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11SamplerState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11SamplerState*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11SamplerState*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetDesc(SamplerDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11SamplerState*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflection.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflection.cs new file mode 100644 index 0000000..eed3044 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflection.cs @@ -0,0 +1,235 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11ShaderReflection +[Guid("8d536ca1-0cca-4956-a837-786963755584")] +[NativeTypeName("struct ID3D11ShaderReflection : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11ShaderReflection +{ + public static ref readonly Guid IID_ID3D11ShaderReflection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA1, 0x6C, 0x53, 0x8D, + 0xCA, 0x0C, + 0x56, 0x49, + 0xA8, + 0x37, + 0x78, + 0x69, + 0x63, + 0x75, + 0x55, + 0x84 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderReflection)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetDesc(ShaderDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public ID3D11ShaderReflectionConstantBuffer GetConstantBufferByIndex(uint Index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public ID3D11ShaderReflectionConstantBuffer GetConstantBufferByName(sbyte* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetResourceBindingDesc(uint ResourceIndex, ShaderInputBindDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), ResourceIndex, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetInputParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetOutputParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetPatchConstantParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ID3D11ShaderReflectionVariable GetVariableByName(sbyte* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetResourceBindingDescByName(sbyte* Name, ShaderInputBindDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), Name, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public uint GetMovInstructionCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public uint GetMovcInstructionCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public uint GetConversionInstructionCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetBitwiseInstructionCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public Graphics.Direct3D.Primitive GetGSInputPrimitive() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public Bool32 IsSampleFrequencyShader() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public uint GetNumInterfaceSlots() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetMinFeatureLevel(Graphics.Direct3D.FeatureLevel* pLevel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), pLevel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetThreadGroupSize(uint* pSizeX, uint* pSizeY, uint* pSizeZ) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this), pSizeX, pSizeY, pSizeZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public ulong GetRequiresFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflectionConstantBuffer.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflectionConstantBuffer.cs new file mode 100644 index 0000000..f450f7c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflectionConstantBuffer.cs @@ -0,0 +1,79 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11ShaderReflectionConstantBuffer +[Guid("eb62d63d-93dd-4318-8ae8-c6f83ad371b8")] +public unsafe partial struct ID3D11ShaderReflectionConstantBuffer +{ + public static ref readonly Guid IID_ID3D11ShaderReflectionConstantBuffer + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3D, 0xD6, 0x62, 0xEB, + 0xDD, 0x93, + 0x18, 0x43, + 0x8A, + 0xE8, + 0xC6, + 0xF8, + 0x3A, + 0xD3, + 0x71, + 0xB8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderReflectionConstantBuffer)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult GetDesc(ShaderBufferDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D11ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public ID3D11ShaderReflectionVariable GetVariableByIndex(uint Index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D11ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public ID3D11ShaderReflectionVariable GetVariableByName(sbyte* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D11ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Name); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflectionType.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflectionType.cs new file mode 100644 index 0000000..74ddf8b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflectionType.cs @@ -0,0 +1,143 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11ShaderReflectionType +[Guid("6e6ffa6a-9bae-4613-a51e-91652d508c21")] +public unsafe partial struct ID3D11ShaderReflectionType +{ + public static ref readonly Guid IID_ID3D11ShaderReflectionType + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6A, 0xFA, 0x6F, 0x6E, + 0xAE, 0x9B, + 0x13, 0x46, + 0xA5, + 0x1E, + 0x91, + 0x65, + 0x2D, + 0x50, + 0x8C, + 0x21 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderReflectionType)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult GetDesc(ShaderTypeDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public ID3D11ShaderReflectionType GetMemberTypeByIndex(uint Index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public ID3D11ShaderReflectionType GetMemberTypeByName(sbyte* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public sbyte* GetMemberTypeName(uint Index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult IsEqual(ID3D11ShaderReflectionType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public ID3D11ShaderReflectionType GetSubType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ID3D11ShaderReflectionType GetBaseClass() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNumInterfaces() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public ID3D11ShaderReflectionType GetInterfaceByIndex(uint uIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), uIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult IsOfType(ID3D11ShaderReflectionType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult ImplementsInterface(ID3D11ShaderReflectionType* pBase) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), pBase); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflectionVariable.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflectionVariable.cs new file mode 100644 index 0000000..45cf0a4 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderReflectionVariable.cs @@ -0,0 +1,87 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11ShaderReflectionVariable +[Guid("51f23923-f3e5-4bd1-91cb-606177d8db4c")] +public unsafe partial struct ID3D11ShaderReflectionVariable +{ + public static ref readonly Guid IID_ID3D11ShaderReflectionVariable + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x23, 0x39, 0xF2, 0x51, + 0xE5, 0xF3, + 0xD1, 0x4B, + 0x91, + 0xCB, + 0x60, + 0x61, + 0x77, + 0xD8, + 0xDB, + 0x4C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderReflectionVariable)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult GetDesc(ShaderVariableDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D11ShaderReflectionVariable*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public new ID3D11ShaderReflectionType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D11ShaderReflectionVariable*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public ID3D11ShaderReflectionConstantBuffer GetBuffer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D11ShaderReflectionVariable*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInterfaceSlot(uint uArrayIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderReflectionVariable*)Unsafe.AsPointer(ref this), uArrayIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderResourceView.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderResourceView.cs new file mode 100644 index 0000000..95bc644 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderResourceView.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11ShaderResourceView +[Guid("b0e06fe0-8192-4e1a-b1ca-36d7414710b2")] +[NativeTypeName("struct ID3D11ShaderResourceView : ID3D11View")] +[NativeInheritance("ID3D11View")] +public unsafe partial struct ID3D11ShaderResourceView +{ + public static ref readonly Guid IID_ID3D11ShaderResourceView + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE0, 0x6F, 0xE0, 0xB0, + 0x92, 0x81, + 0x1A, 0x4E, + 0xB1, + 0xCA, + 0x36, + 0xD7, + 0x41, + 0x47, + 0x10, + 0xB2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderResourceView)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetResource(ID3D11Resource** ppResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(ShaderResourceViewDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderResourceView1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderResourceView1.cs new file mode 100644 index 0000000..84fef44 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderResourceView1.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11ShaderResourceView1 +[Guid("91308b87-9040-411d-8c67-c39253ce3802")] +[NativeTypeName("struct ID3D11ShaderResourceView1 : ID3D11ShaderResourceView")] +[NativeInheritance("ID3D11ShaderResourceView")] +public unsafe partial struct ID3D11ShaderResourceView1 +{ + public static ref readonly Guid IID_ID3D11ShaderResourceView1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x87, 0x8B, 0x30, 0x91, + 0x40, 0x90, + 0x1D, 0x41, + 0x8C, + 0x67, + 0xC3, + 0x92, + 0x53, + 0xCE, + 0x38, + 0x02 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderResourceView1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetResource(ID3D11Resource** ppResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(ShaderResourceViewDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void GetDesc1(ShaderResourceViewDescription1* pDesc1) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), pDesc1); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderTrace.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderTrace.cs new file mode 100644 index 0000000..ca745b5 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderTrace.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11ShaderTrace +[Guid("36b013e6-2811-4845-baa7-d623fe0df104")] +[NativeTypeName("struct ID3D11ShaderTrace : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11ShaderTrace +{ + public static ref readonly Guid IID_ID3D11ShaderTrace + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE6, 0x13, 0xB0, 0x36, + 0x11, 0x28, + 0x45, 0x48, + 0xBA, + 0xA7, + 0xD6, + 0x23, + 0xFE, + 0x0D, + 0xF1, + 0x04 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderTrace)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult TraceReady(ulong* pTestCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), pTestCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void ResetTrace() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetTraceStats(TraceStats* pTraceStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), pTraceStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult PSSelectStamp(uint stampIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), stampIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetInitialRegisterContents(TraceRegister* pRegister, TraceValue* pValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), pRegister, pValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetStep(uint stepIndex, TraceStep* pTraceStep) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), stepIndex, pTraceStep); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetWrittenRegister(uint stepIndex, uint writtenRegisterIndex, TraceRegister* pRegister, TraceValue* pValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), stepIndex, writtenRegisterIndex, pRegister, pValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetReadRegister(uint stepIndex, uint readRegisterIndex, TraceRegister* pRegister, TraceValue* pValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), stepIndex, readRegisterIndex, pRegister, pValue); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderTraceFactory.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderTraceFactory.cs new file mode 100644 index 0000000..2ad975d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11ShaderTraceFactory.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11ShaderTraceFactory +[Guid("1fbad429-66ab-41cc-9617-667ac10e4459")] +[NativeTypeName("struct ID3D11ShaderTraceFactory : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11ShaderTraceFactory +{ + public static ref readonly Guid IID_ID3D11ShaderTraceFactory + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x29, 0xD4, 0xBA, 0x1F, + 0xAB, 0x66, + 0xCC, 0x41, + 0x96, + 0x17, + 0x66, + 0x7A, + 0xC1, + 0x0E, + 0x44, + 0x59 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11ShaderTraceFactory)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateShaderTrace(IUnknown* pShader, ShaderTraceDescription* pTraceDesc, ID3D11ShaderTrace** ppShaderTrace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderTraceFactory*)Unsafe.AsPointer(ref this), pShader, pTraceDesc, ppShaderTrace); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11SwitchToRef.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11SwitchToRef.cs new file mode 100644 index 0000000..9384045 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11SwitchToRef.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11SwitchToRef +[Guid("1ef337e3-58e7-4f83-a692-db221f5ed47e")] +[NativeTypeName("struct ID3D11SwitchToRef : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11SwitchToRef +{ + public static ref readonly Guid IID_ID3D11SwitchToRef + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE3, 0x37, 0xF3, 0x1E, + 0xE7, 0x58, + 0x83, 0x4F, + 0xA6, + 0x92, + 0xDB, + 0x22, + 0x1F, + 0x5E, + 0xD4, + 0x7E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11SwitchToRef)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public Bool32 SetUseRef(Bool32 UseRef) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11SwitchToRef*)Unsafe.AsPointer(ref this), UseRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public Bool32 GetUseRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11SwitchToRef*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture1D.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture1D.cs new file mode 100644 index 0000000..7f1de58 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture1D.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Texture1D +[Guid("f8fb5c27-c6b3-4f75-a4c8-439af2ef564c")] +[NativeTypeName("struct ID3D11Texture1D : ID3D11Resource")] +[NativeInheritance("ID3D11Resource")] +public unsafe partial struct ID3D11Texture1D +{ + public static ref readonly Guid IID_ID3D11Texture1D + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x27, 0x5C, 0xFB, 0xF8, + 0xB3, 0xC6, + 0x75, 0x4F, + 0xA4, + 0xC8, + 0x43, + 0x9A, + 0xF2, + 0xEF, + 0x56, + 0x4C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture1D)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetType(ResourceDimension* pResourceDimension) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), pResourceDimension); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetEvictionPriority(uint EvictionPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), EvictionPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public uint GetEvictionPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void GetDesc(Texture1DDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture2D.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture2D.cs new file mode 100644 index 0000000..7ef6502 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture2D.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Texture2D +[Guid("6f15aaf2-d208-4e89-9ab4-489535d34f9c")] +[NativeTypeName("struct ID3D11Texture2D : ID3D11Resource")] +[NativeInheritance("ID3D11Resource")] +public unsafe partial struct ID3D11Texture2D +{ + public static ref readonly Guid IID_ID3D11Texture2D + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF2, 0xAA, 0x15, 0x6F, + 0x08, 0xD2, + 0x89, 0x4E, + 0x9A, + 0xB4, + 0x48, + 0x95, + 0x35, + 0xD3, + 0x4F, + 0x9C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture2D)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetType(ResourceDimension* pResourceDimension) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), pResourceDimension); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetEvictionPriority(uint EvictionPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), EvictionPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public uint GetEvictionPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void GetDesc(Texture2DDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture2D1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture2D1.cs new file mode 100644 index 0000000..53c71a0 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture2D1.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Texture2D1 +[Guid("51218251-1e33-4617-9ccb-4d3a4367e7bb")] +[NativeTypeName("struct ID3D11Texture2D1 : ID3D11Texture2D")] +[NativeInheritance("ID3D11Texture2D")] +public unsafe partial struct ID3D11Texture2D1 +{ + public static ref readonly Guid IID_ID3D11Texture2D1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x51, 0x82, 0x21, 0x51, + 0x33, 0x1E, + 0x17, 0x46, + 0x9C, + 0xCB, + 0x4D, + 0x3A, + 0x43, + 0x67, + 0xE7, + 0xBB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture2D1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetType(ResourceDimension* pResourceDimension) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), pResourceDimension); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetEvictionPriority(uint EvictionPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), EvictionPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public uint GetEvictionPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void GetDesc(Texture2DDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void GetDesc1(Texture2DDescription1* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture3D.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture3D.cs new file mode 100644 index 0000000..f3d00cf --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture3D.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Texture3D +[Guid("037e866e-f56d-4357-a8af-9dabbe6e250e")] +[NativeTypeName("struct ID3D11Texture3D : ID3D11Resource")] +[NativeInheritance("ID3D11Resource")] +public unsafe partial struct ID3D11Texture3D +{ + public static ref readonly Guid IID_ID3D11Texture3D + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6E, 0x86, 0x7E, 0x03, + 0x6D, 0xF5, + 0x57, 0x43, + 0xA8, + 0xAF, + 0x9D, + 0xAB, + 0xBE, + 0x6E, + 0x25, + 0x0E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture3D)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetType(ResourceDimension* pResourceDimension) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), pResourceDimension); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetEvictionPriority(uint EvictionPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), EvictionPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public uint GetEvictionPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void GetDesc(Texture3DDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture3D1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture3D1.cs new file mode 100644 index 0000000..b4fbdb3 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11Texture3D1.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11Texture3D1 +[Guid("0c711683-2853-4846-9bb0-f3e60639e46a")] +[NativeTypeName("struct ID3D11Texture3D1 : ID3D11Texture3D")] +[NativeInheritance("ID3D11Texture3D")] +public unsafe partial struct ID3D11Texture3D1 +{ + public static ref readonly Guid IID_ID3D11Texture3D1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x83, 0x16, 0x71, 0x0C, + 0x53, 0x28, + 0x46, 0x48, + 0x9B, + 0xB0, + 0xF3, + 0xE6, + 0x06, + 0x39, + 0xE4, + 0x6A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11Texture3D1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetType(ResourceDimension* pResourceDimension) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), pResourceDimension); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetEvictionPriority(uint EvictionPriority) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), EvictionPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public uint GetEvictionPriority() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void GetDesc(Texture3DDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void GetDesc1(Texture3DDescription1* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11TracingDevice.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11TracingDevice.cs new file mode 100644 index 0000000..df09425 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11TracingDevice.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11TracingDevice +[Guid("1911c771-1587-413e-a7e0-fb26c3de0268")] +[NativeTypeName("struct ID3D11TracingDevice : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11TracingDevice +{ + public static ref readonly Guid IID_ID3D11TracingDevice + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x71, 0xC7, 0x11, 0x19, + 0x87, 0x15, + 0x3E, 0x41, + 0xA7, + 0xE0, + 0xFB, + 0x26, + 0xC3, + 0xDE, + 0x02, + 0x68 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11TracingDevice)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetShaderTrackingOptionsByType(uint ResourceTypeFlags, uint Options) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11TracingDevice*)Unsafe.AsPointer(ref this), ResourceTypeFlags, Options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetShaderTrackingOptions(IUnknown* pShader, uint Options) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11TracingDevice*)Unsafe.AsPointer(ref this), pShader, Options); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11UnorderedAccessView.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11UnorderedAccessView.cs new file mode 100644 index 0000000..745bc45 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11UnorderedAccessView.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11UnorderedAccessView +[Guid("28acf509-7f5c-48f6-8611-f316010a6380")] +[NativeTypeName("struct ID3D11UnorderedAccessView : ID3D11View")] +[NativeInheritance("ID3D11View")] +public unsafe partial struct ID3D11UnorderedAccessView +{ + public static ref readonly Guid IID_ID3D11UnorderedAccessView + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x09, 0xF5, 0xAC, 0x28, + 0x5C, 0x7F, + 0xF6, 0x48, + 0x86, + 0x11, + 0xF3, + 0x16, + 0x01, + 0x0A, + 0x63, + 0x80 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11UnorderedAccessView)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetResource(ID3D11Resource** ppResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(UnorderedAccessViewDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11UnorderedAccessView1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11UnorderedAccessView1.cs new file mode 100644 index 0000000..83b2140 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11UnorderedAccessView1.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11UnorderedAccessView1 +[Guid("7b3b6153-a886-4544-ab37-6537c8500403")] +[NativeTypeName("struct ID3D11UnorderedAccessView1 : ID3D11UnorderedAccessView")] +[NativeInheritance("ID3D11UnorderedAccessView")] +public unsafe partial struct ID3D11UnorderedAccessView1 +{ + public static ref readonly Guid IID_ID3D11UnorderedAccessView1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x53, 0x61, 0x3B, 0x7B, + 0x86, 0xA8, + 0x44, 0x45, + 0xAB, + 0x37, + 0x65, + 0x37, + 0xC8, + 0x50, + 0x04, + 0x03 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11UnorderedAccessView1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetResource(ID3D11Resource** ppResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(UnorderedAccessViewDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void GetDesc1(UnorderedAccessViewDescription1* pDesc1) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), pDesc1); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VertexShader.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VertexShader.cs new file mode 100644 index 0000000..51dad6c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VertexShader.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VertexShader +[Guid("3b301d64-d678-4289-8897-22f8928b72f3")] +[NativeTypeName("struct ID3D11VertexShader : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11VertexShader +{ + public static ref readonly Guid IID_ID3D11VertexShader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x1D, 0x30, 0x3B, + 0x78, 0xD6, + 0x89, 0x42, + 0x88, + 0x97, + 0x22, + 0xF8, + 0x92, + 0x8B, + 0x72, + 0xF3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VertexShader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, pData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext.cs new file mode 100644 index 0000000..bda394f --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext.cs @@ -0,0 +1,579 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoContext +[Guid("61f21c45-3c0e-4a74-9cea-67100d9ad5e4")] +[NativeTypeName("struct ID3D11VideoContext : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11VideoContext +{ + public static ref readonly Guid IID_ID3D11VideoContext + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x45, 0x1C, 0xF2, 0x61, + 0x0E, 0x3C, + 0x74, 0x4A, + 0x9C, + 0xEA, + 0x67, + 0x10, + 0x0D, + 0x9A, + 0xD5, + 0xE4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoContext)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type, uint* pBufferSize, void** ppBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pDecoder, Type, pBufferSize, ppBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult ReleaseDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pDecoder, Type); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult DecoderBeginFrame(ID3D11VideoDecoder* pDecoder, ID3D11VideoDecoderOutputView* pView, uint ContentKeySize, void* pContentKey) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pDecoder, pView, ContentKeySize, pContentKey); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult DecoderEndFrame(ID3D11VideoDecoder* pDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult SubmitDecoderBuffers(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription* pBufferDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public int DecoderExtension(ID3D11VideoDecoder* pDecoder, VideoDecoderExtension* pExtensionData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pDecoder, pExtensionData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void VideoProcessorSetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void VideoProcessorSetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32 YCbCr, VideoColor* pColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, YCbCr, pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void VideoProcessorSetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void VideoProcessorSetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode AlphaFillMode, uint StreamIndex) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, AlphaFillMode, StreamIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void VideoProcessorSetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, System.Drawing.Size Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void VideoProcessorSetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public int VideoProcessorSetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void VideoProcessorGetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32* Enabled, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, Enabled, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void VideoProcessorGetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32* pYCbCr, VideoColor* pColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pYCbCr, pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void VideoProcessorGetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void VideoProcessorGetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode* pAlphaFillMode, uint* pStreamIndex) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pAlphaFillMode, pStreamIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void VideoProcessorGetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled, System.Drawing.Size* pSize) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled, pSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void VideoProcessorGetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public int VideoProcessorGetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void VideoProcessorSetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat FrameFormat) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, FrameFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void VideoProcessorSetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void VideoProcessorSetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate OutputRate, Bool32 RepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, OutputRate, RepeatFrame, pCustomRate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void VideoProcessorSetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void VideoProcessorSetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void VideoProcessorSetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Alpha) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Alpha); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void VideoProcessorSetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void VideoProcessorSetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pSourceAspectRatio, pDestinationAspectRatio); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void VideoProcessorSetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Lower, float Upper) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Lower, Upper); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void VideoProcessorSetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorStereoFormat Format, Bool32 LeftViewFrame0, Bool32 BaseViewFrame0, VideoProcessorStereoFlipMode FlipMode, int MonoOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Format, LeftViewFrame0, BaseViewFrame0, FlipMode, MonoOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void VideoProcessorSetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void VideoProcessorSetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32 Enable, int Level) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, Enable, Level); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public int VideoProcessorSetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void VideoProcessorGetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat* pFrameFormat) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pFrameFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void VideoProcessorGetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void VideoProcessorGetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate* pOutputRate, Bool32* pRepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pOutputRate, pRepeatFrame, pCustomRate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void VideoProcessorGetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void VideoProcessorGetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void VideoProcessorGetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pAlpha) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pAlpha); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void VideoProcessorGetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void VideoProcessorGetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pSourceAspectRatio, pDestinationAspectRatio); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void VideoProcessorGetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pLower, float* pUpper) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pLower, pUpper); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void VideoProcessorGetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorStereoFormat* pFormat, Bool32* pLeftViewFrame0, Bool32* pBaseViewFrame0, VideoProcessorStereoFlipMode* pFlipMode, int* MonoOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFormat, pLeftViewFrame0, pBaseViewFrame0, pFlipMode, MonoOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void VideoProcessorGetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void VideoProcessorGetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32* pEnabled, int* pLevel) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, pEnabled, pLevel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public int VideoProcessorGetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult VideoProcessorBlt(ID3D11VideoProcessor* pVideoProcessor, ID3D11VideoProcessorOutputView* pView, uint OutputFrame, uint StreamCount, VideoProcessorStream* pStreams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, pView, OutputFrame, StreamCount, pStreams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult NegotiateCryptoSessionKeyExchange(ID3D11CryptoSession* pCryptoSession, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pCryptoSession, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void EncryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, uint IVSize, void* pIV) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, IVSize, pIV); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public void DecryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, EncryptedBlockInfo* pEncryptedBlockInfo, uint ContentKeySize, void* pContentKey, uint IVSize, void* pIV) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, pEncryptedBlockInfo, ContentKeySize, pContentKey, IVSize, pIV); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void StartSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession, uint RandomNumberSize, void* pRandomNumber) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pCryptoSession, RandomNumberSize, pRandomNumber); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void FinishSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pCryptoSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult GetEncryptionBltKey(ID3D11CryptoSession* pCryptoSession, uint KeySize, void* pReadbackKey) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pCryptoSession, KeySize, pReadbackKey); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult NegotiateAuthenticatedChannelKeyExchange(ID3D11AuthenticatedChannel* pChannel, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pChannel, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult QueryAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, uint OutputSize, void* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, OutputSize, pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult ConfigureAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, AuthenticatedConfigureOutput* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void VideoProcessorSetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorRotation Rotation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Rotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void VideoProcessorGetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorRotation* pRotation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pRotation); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext1.cs new file mode 100644 index 0000000..fcf507d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext1.cs @@ -0,0 +1,691 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoContext1 +[Guid("a7f026da-a5f8-4487-a564-15e34357651e")] +[NativeTypeName("struct ID3D11VideoContext1 : ID3D11VideoContext")] +[NativeInheritance("ID3D11VideoContext")] +public unsafe partial struct ID3D11VideoContext1 +{ + public static ref readonly Guid IID_ID3D11VideoContext1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDA, 0x26, 0xF0, 0xA7, + 0xF8, 0xA5, + 0x87, 0x44, + 0xA5, + 0x64, + 0x15, + 0xE3, + 0x43, + 0x57, + 0x65, + 0x1E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoContext1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type, uint* pBufferSize, void** ppBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, Type, pBufferSize, ppBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult ReleaseDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, Type); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult DecoderBeginFrame(ID3D11VideoDecoder* pDecoder, ID3D11VideoDecoderOutputView* pView, uint ContentKeySize, void* pContentKey) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, pView, ContentKeySize, pContentKey); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult DecoderEndFrame(ID3D11VideoDecoder* pDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult SubmitDecoderBuffers(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription* pBufferDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public int DecoderExtension(ID3D11VideoDecoder* pDecoder, VideoDecoderExtension* pExtensionData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, pExtensionData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void VideoProcessorSetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void VideoProcessorSetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32 YCbCr, VideoColor* pColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, YCbCr, pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void VideoProcessorSetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void VideoProcessorSetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode AlphaFillMode, uint StreamIndex) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, AlphaFillMode, StreamIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void VideoProcessorSetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, System.Drawing.Size Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void VideoProcessorSetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public int VideoProcessorSetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void VideoProcessorGetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32* Enabled, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, Enabled, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void VideoProcessorGetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32* pYCbCr, VideoColor* pColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pYCbCr, pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void VideoProcessorGetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void VideoProcessorGetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode* pAlphaFillMode, uint* pStreamIndex) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pAlphaFillMode, pStreamIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void VideoProcessorGetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled, System.Drawing.Size* pSize) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled, pSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void VideoProcessorGetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public int VideoProcessorGetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void VideoProcessorSetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat FrameFormat) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, FrameFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void VideoProcessorSetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void VideoProcessorSetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate OutputRate, Bool32 RepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, OutputRate, RepeatFrame, pCustomRate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void VideoProcessorSetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void VideoProcessorSetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void VideoProcessorSetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Alpha) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Alpha); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void VideoProcessorSetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void VideoProcessorSetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pSourceAspectRatio, pDestinationAspectRatio); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void VideoProcessorSetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Lower, float Upper) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Lower, Upper); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void VideoProcessorSetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorStereoFormat Format, Bool32 LeftViewFrame0, Bool32 BaseViewFrame0, VideoProcessorStereoFlipMode FlipMode, int MonoOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Format, LeftViewFrame0, BaseViewFrame0, FlipMode, MonoOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void VideoProcessorSetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void VideoProcessorSetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32 Enable, int Level) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, Enable, Level); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public int VideoProcessorSetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void VideoProcessorGetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat* pFrameFormat) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pFrameFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void VideoProcessorGetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void VideoProcessorGetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate* pOutputRate, Bool32* pRepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pOutputRate, pRepeatFrame, pCustomRate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void VideoProcessorGetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void VideoProcessorGetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void VideoProcessorGetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pAlpha) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pAlpha); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void VideoProcessorGetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void VideoProcessorGetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pSourceAspectRatio, pDestinationAspectRatio); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void VideoProcessorGetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pLower, float* pUpper) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pLower, pUpper); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void VideoProcessorGetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorStereoFormat* pFormat, Bool32* pLeftViewFrame0, Bool32* pBaseViewFrame0, VideoProcessorStereoFlipMode* pFlipMode, int* MonoOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFormat, pLeftViewFrame0, pBaseViewFrame0, pFlipMode, MonoOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void VideoProcessorGetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void VideoProcessorGetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32* pEnabled, int* pLevel) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, pEnabled, pLevel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public int VideoProcessorGetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult VideoProcessorBlt(ID3D11VideoProcessor* pVideoProcessor, ID3D11VideoProcessorOutputView* pView, uint OutputFrame, uint StreamCount, VideoProcessorStream* pStreams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pView, OutputFrame, StreamCount, pStreams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult NegotiateCryptoSessionKeyExchange(ID3D11CryptoSession* pCryptoSession, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void EncryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, uint IVSize, void* pIV) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, IVSize, pIV); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public void DecryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, EncryptedBlockInfo* pEncryptedBlockInfo, uint ContentKeySize, void* pContentKey, uint IVSize, void* pIV) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, pEncryptedBlockInfo, ContentKeySize, pContentKey, IVSize, pIV); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void StartSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession, uint RandomNumberSize, void* pRandomNumber) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, RandomNumberSize, pRandomNumber); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void FinishSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult GetEncryptionBltKey(ID3D11CryptoSession* pCryptoSession, uint KeySize, void* pReadbackKey) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, KeySize, pReadbackKey); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult NegotiateAuthenticatedChannelKeyExchange(ID3D11AuthenticatedChannel* pChannel, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pChannel, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult QueryAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, uint OutputSize, void* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, OutputSize, pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult ConfigureAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, AuthenticatedConfigureOutput* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void VideoProcessorSetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorRotation Rotation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Rotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void VideoProcessorGetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorRotation* pRotation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pRotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult SubmitDecoderBuffers1(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription1* pBufferDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult GetDataForNewHardwareKey(ID3D11CryptoSession* pCryptoSession, uint PrivateInputSize, void* pPrivatInputData, ulong* pPrivateOutputData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, PrivateInputSize, pPrivatInputData, pPrivateOutputData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CheckCryptoSessionStatus(ID3D11CryptoSession* pCryptoSession, CryptoSessionStatus* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pCryptoSession, pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public HResult DecoderEnableDownsampling(ID3D11VideoDecoder* pDecoder, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoSampleDescription* pOutputDesc, uint ReferenceFrameCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, InputColorSpace, pOutputDesc, ReferenceFrameCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public HResult DecoderUpdateDownsampling(ID3D11VideoDecoder* pDecoder, VideoSampleDescription* pOutputDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pDecoder, pOutputDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public void VideoProcessorSetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType ColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, ColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void VideoProcessorSetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32 ShaderUsage) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, ShaderUsage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void VideoProcessorGetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void VideoProcessorGetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32* pShaderUsage) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, pShaderUsage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void VideoProcessorSetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType ColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, ColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void VideoProcessorSetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Bool32 FlipHorizontal, Bool32 FlipVertical) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, FlipHorizontal, FlipVertical); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void VideoProcessorGetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void VideoProcessorGetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, Bool32* pFlipHorizontal, Bool32* pFlipVertical) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFlipHorizontal, pFlipVertical); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public HResult VideoProcessorGetBehaviorHints(ID3D11VideoProcessor* pVideoProcessor, uint OutputWidth, uint OutputHeight, Graphics.Dxgi.Common.Format OutputFormat, uint StreamCount, VideoProcessorStreamBehaviorHint* pStreams, uint* pBehaviorHints) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, OutputWidth, OutputHeight, OutputFormat, StreamCount, pStreams, pBehaviorHints); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext2.cs new file mode 100644 index 0000000..73278d7 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext2.cs @@ -0,0 +1,723 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoContext2 +[Guid("c4e7374c-6243-4d1b-ae87-52b4f740e261")] +[NativeTypeName("struct ID3D11VideoContext2 : ID3D11VideoContext1")] +[NativeInheritance("ID3D11VideoContext1")] +public unsafe partial struct ID3D11VideoContext2 +{ + public static ref readonly Guid IID_ID3D11VideoContext2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4C, 0x37, 0xE7, 0xC4, + 0x43, 0x62, + 0x1B, 0x4D, + 0xAE, + 0x87, + 0x52, + 0xB4, + 0xF7, + 0x40, + 0xE2, + 0x61 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoContext2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type, uint* pBufferSize, void** ppBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, Type, pBufferSize, ppBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult ReleaseDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, Type); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult DecoderBeginFrame(ID3D11VideoDecoder* pDecoder, ID3D11VideoDecoderOutputView* pView, uint ContentKeySize, void* pContentKey) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, pView, ContentKeySize, pContentKey); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult DecoderEndFrame(ID3D11VideoDecoder* pDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult SubmitDecoderBuffers(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription* pBufferDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public int DecoderExtension(ID3D11VideoDecoder* pDecoder, VideoDecoderExtension* pExtensionData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, pExtensionData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void VideoProcessorSetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void VideoProcessorSetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32 YCbCr, VideoColor* pColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, YCbCr, pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void VideoProcessorSetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void VideoProcessorSetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode AlphaFillMode, uint StreamIndex) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, AlphaFillMode, StreamIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void VideoProcessorSetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, System.Drawing.Size Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void VideoProcessorSetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public int VideoProcessorSetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void VideoProcessorGetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32* Enabled, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, Enabled, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void VideoProcessorGetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32* pYCbCr, VideoColor* pColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pYCbCr, pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void VideoProcessorGetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void VideoProcessorGetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode* pAlphaFillMode, uint* pStreamIndex) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pAlphaFillMode, pStreamIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void VideoProcessorGetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled, System.Drawing.Size* pSize) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled, pSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void VideoProcessorGetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public int VideoProcessorGetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void VideoProcessorSetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat FrameFormat) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, FrameFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void VideoProcessorSetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void VideoProcessorSetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate OutputRate, Bool32 RepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, OutputRate, RepeatFrame, pCustomRate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void VideoProcessorSetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void VideoProcessorSetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void VideoProcessorSetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Alpha) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Alpha); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void VideoProcessorSetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void VideoProcessorSetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pSourceAspectRatio, pDestinationAspectRatio); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void VideoProcessorSetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Lower, float Upper) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Lower, Upper); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void VideoProcessorSetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorStereoFormat Format, Bool32 LeftViewFrame0, Bool32 BaseViewFrame0, VideoProcessorStereoFlipMode FlipMode, int MonoOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Format, LeftViewFrame0, BaseViewFrame0, FlipMode, MonoOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void VideoProcessorSetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void VideoProcessorSetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32 Enable, int Level) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, Enable, Level); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public int VideoProcessorSetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void VideoProcessorGetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat* pFrameFormat) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pFrameFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void VideoProcessorGetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void VideoProcessorGetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate* pOutputRate, Bool32* pRepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pOutputRate, pRepeatFrame, pCustomRate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void VideoProcessorGetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void VideoProcessorGetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void VideoProcessorGetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pAlpha) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pAlpha); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void VideoProcessorGetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void VideoProcessorGetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pSourceAspectRatio, pDestinationAspectRatio); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void VideoProcessorGetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pLower, float* pUpper) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pLower, pUpper); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void VideoProcessorGetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorStereoFormat* pFormat, Bool32* pLeftViewFrame0, Bool32* pBaseViewFrame0, VideoProcessorStereoFlipMode* pFlipMode, int* MonoOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFormat, pLeftViewFrame0, pBaseViewFrame0, pFlipMode, MonoOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void VideoProcessorGetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void VideoProcessorGetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32* pEnabled, int* pLevel) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, pEnabled, pLevel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public int VideoProcessorGetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult VideoProcessorBlt(ID3D11VideoProcessor* pVideoProcessor, ID3D11VideoProcessorOutputView* pView, uint OutputFrame, uint StreamCount, VideoProcessorStream* pStreams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pView, OutputFrame, StreamCount, pStreams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult NegotiateCryptoSessionKeyExchange(ID3D11CryptoSession* pCryptoSession, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void EncryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, uint IVSize, void* pIV) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, IVSize, pIV); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public void DecryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, EncryptedBlockInfo* pEncryptedBlockInfo, uint ContentKeySize, void* pContentKey, uint IVSize, void* pIV) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, pEncryptedBlockInfo, ContentKeySize, pContentKey, IVSize, pIV); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void StartSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession, uint RandomNumberSize, void* pRandomNumber) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, RandomNumberSize, pRandomNumber); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void FinishSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult GetEncryptionBltKey(ID3D11CryptoSession* pCryptoSession, uint KeySize, void* pReadbackKey) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, KeySize, pReadbackKey); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult NegotiateAuthenticatedChannelKeyExchange(ID3D11AuthenticatedChannel* pChannel, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pChannel, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult QueryAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, uint OutputSize, void* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, OutputSize, pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult ConfigureAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, AuthenticatedConfigureOutput* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void VideoProcessorSetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorRotation Rotation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Rotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void VideoProcessorGetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorRotation* pRotation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pRotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult SubmitDecoderBuffers1(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription1* pBufferDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult GetDataForNewHardwareKey(ID3D11CryptoSession* pCryptoSession, uint PrivateInputSize, void* pPrivatInputData, ulong* pPrivateOutputData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, PrivateInputSize, pPrivatInputData, pPrivateOutputData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CheckCryptoSessionStatus(ID3D11CryptoSession* pCryptoSession, CryptoSessionStatus* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pCryptoSession, pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public HResult DecoderEnableDownsampling(ID3D11VideoDecoder* pDecoder, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoSampleDescription* pOutputDesc, uint ReferenceFrameCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, InputColorSpace, pOutputDesc, ReferenceFrameCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public HResult DecoderUpdateDownsampling(ID3D11VideoDecoder* pDecoder, VideoSampleDescription* pOutputDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pDecoder, pOutputDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public void VideoProcessorSetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType ColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, ColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void VideoProcessorSetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32 ShaderUsage) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, ShaderUsage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void VideoProcessorGetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void VideoProcessorGetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32* pShaderUsage) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pShaderUsage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void VideoProcessorSetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType ColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, ColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void VideoProcessorSetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Bool32 FlipHorizontal, Bool32 FlipVertical) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, FlipHorizontal, FlipVertical); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void VideoProcessorGetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void VideoProcessorGetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, Bool32* pFlipHorizontal, Bool32* pFlipVertical) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFlipHorizontal, pFlipVertical); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public HResult VideoProcessorGetBehaviorHints(ID3D11VideoProcessor* pVideoProcessor, uint OutputWidth, uint OutputHeight, Graphics.Dxgi.Common.Format OutputFormat, uint StreamCount, VideoProcessorStreamBehaviorHint* pStreams, uint* pBehaviorHints) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, OutputWidth, OutputHeight, OutputFormat, StreamCount, pStreams, pBehaviorHints); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public void VideoProcessorSetOutputHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.HdrMetadataType Type, uint Size, void* pHDRMetaData) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, Type, Size, pHDRMetaData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void VideoProcessorGetOutputHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.HdrMetadataType* pType, uint Size, void* pMetaData) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, pType, Size, pMetaData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public void VideoProcessorSetStreamHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.HdrMetadataType Type, uint Size, void* pHDRMetaData) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Type, Size, pHDRMetaData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void VideoProcessorGetStreamHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.HdrMetadataType* pType, uint Size, void* pMetaData) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pType, Size, pMetaData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext3.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext3.cs new file mode 100644 index 0000000..a48b9ea --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoContext3.cs @@ -0,0 +1,739 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoContext3 +[Guid("a9e2faa0-cb39-418f-a0b7-d8aad4de672e")] +[NativeTypeName("struct ID3D11VideoContext3 : ID3D11VideoContext2")] +[NativeInheritance("ID3D11VideoContext2")] +public unsafe partial struct ID3D11VideoContext3 +{ + public static ref readonly Guid IID_ID3D11VideoContext3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA0, 0xFA, 0xE2, 0xA9, + 0x39, 0xCB, + 0x8F, 0x41, + 0xA0, + 0xB7, + 0xD8, + 0xAA, + 0xD4, + 0xDE, + 0x67, + 0x2E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoContext3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type, uint* pBufferSize, void** ppBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, Type, pBufferSize, ppBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult ReleaseDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, Type); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult DecoderBeginFrame(ID3D11VideoDecoder* pDecoder, ID3D11VideoDecoderOutputView* pView, uint ContentKeySize, void* pContentKey) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, pView, ContentKeySize, pContentKey); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult DecoderEndFrame(ID3D11VideoDecoder* pDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult SubmitDecoderBuffers(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription* pBufferDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public int DecoderExtension(ID3D11VideoDecoder* pDecoder, VideoDecoderExtension* pExtensionData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, pExtensionData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void VideoProcessorSetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void VideoProcessorSetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32 YCbCr, VideoColor* pColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, YCbCr, pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void VideoProcessorSetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void VideoProcessorSetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode AlphaFillMode, uint StreamIndex) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, AlphaFillMode, StreamIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void VideoProcessorSetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, System.Drawing.Size Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void VideoProcessorSetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public int VideoProcessorSetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void VideoProcessorGetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32* Enabled, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, Enabled, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void VideoProcessorGetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32* pYCbCr, VideoColor* pColor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pYCbCr, pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void VideoProcessorGetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void VideoProcessorGetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode* pAlphaFillMode, uint* pStreamIndex) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pAlphaFillMode, pStreamIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void VideoProcessorGetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled, System.Drawing.Size* pSize) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled, pSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void VideoProcessorGetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public int VideoProcessorGetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void VideoProcessorSetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat FrameFormat) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, FrameFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void VideoProcessorSetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void VideoProcessorSetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate OutputRate, Bool32 RepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, OutputRate, RepeatFrame, pCustomRate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void VideoProcessorSetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void VideoProcessorSetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void VideoProcessorSetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Alpha) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Alpha); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void VideoProcessorSetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void VideoProcessorSetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, pSourceAspectRatio, pDestinationAspectRatio); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void VideoProcessorSetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Lower, float Upper) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Lower, Upper); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void VideoProcessorSetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorStereoFormat Format, Bool32 LeftViewFrame0, Bool32 BaseViewFrame0, VideoProcessorStereoFlipMode FlipMode, int MonoOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Format, LeftViewFrame0, BaseViewFrame0, FlipMode, MonoOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void VideoProcessorSetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void VideoProcessorSetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32 Enable, int Level) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, Enable, Level); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public int VideoProcessorSetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void VideoProcessorGetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat* pFrameFormat) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pFrameFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void VideoProcessorGetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void VideoProcessorGetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate* pOutputRate, Bool32* pRepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pOutputRate, pRepeatFrame, pCustomRate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void VideoProcessorGetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void VideoProcessorGetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void VideoProcessorGetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pAlpha) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pAlpha); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void VideoProcessorGetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Count, pEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void VideoProcessorGetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pSourceAspectRatio, pDestinationAspectRatio); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void VideoProcessorGetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pLower, float* pUpper) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled, pLower, pUpper); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void VideoProcessorGetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorStereoFormat* pFormat, Bool32* pLeftViewFrame0, Bool32* pBaseViewFrame0, VideoProcessorStereoFlipMode* pFlipMode, int* MonoOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFormat, pLeftViewFrame0, pBaseViewFrame0, pFlipMode, MonoOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void VideoProcessorGetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void VideoProcessorGetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32* pEnabled, int* pLevel) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Filter, pEnabled, pLevel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public int VideoProcessorGetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pExtensionGuid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult VideoProcessorBlt(ID3D11VideoProcessor* pVideoProcessor, ID3D11VideoProcessorOutputView* pView, uint OutputFrame, uint StreamCount, VideoProcessorStream* pStreams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pView, OutputFrame, StreamCount, pStreams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult NegotiateCryptoSessionKeyExchange(ID3D11CryptoSession* pCryptoSession, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void EncryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, uint IVSize, void* pIV) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, IVSize, pIV); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public void DecryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, EncryptedBlockInfo* pEncryptedBlockInfo, uint ContentKeySize, void* pContentKey, uint IVSize, void* pIV) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, pSrcSurface, pDstSurface, pEncryptedBlockInfo, ContentKeySize, pContentKey, IVSize, pIV); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void StartSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession, uint RandomNumberSize, void* pRandomNumber) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, RandomNumberSize, pRandomNumber); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void FinishSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult GetEncryptionBltKey(ID3D11CryptoSession* pCryptoSession, uint KeySize, void* pReadbackKey) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, KeySize, pReadbackKey); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult NegotiateAuthenticatedChannelKeyExchange(ID3D11AuthenticatedChannel* pChannel, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pChannel, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult QueryAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, uint OutputSize, void* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, OutputSize, pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult ConfigureAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, AuthenticatedConfigureOutput* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pChannel, InputSize, pInput, pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void VideoProcessorSetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorRotation Rotation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, Rotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void VideoProcessorGetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorRotation* pRotation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pRotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult SubmitDecoderBuffers1(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription1* pBufferDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult GetDataForNewHardwareKey(ID3D11CryptoSession* pCryptoSession, uint PrivateInputSize, void* pPrivatInputData, ulong* pPrivateOutputData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, PrivateInputSize, pPrivatInputData, pPrivateOutputData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CheckCryptoSessionStatus(ID3D11CryptoSession* pCryptoSession, CryptoSessionStatus* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pCryptoSession, pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public HResult DecoderEnableDownsampling(ID3D11VideoDecoder* pDecoder, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoSampleDescription* pOutputDesc, uint ReferenceFrameCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, InputColorSpace, pOutputDesc, ReferenceFrameCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public HResult DecoderUpdateDownsampling(ID3D11VideoDecoder* pDecoder, VideoSampleDescription* pOutputDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, pOutputDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public void VideoProcessorSetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType ColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, ColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void VideoProcessorSetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32 ShaderUsage) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, ShaderUsage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void VideoProcessorGetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void VideoProcessorGetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32* pShaderUsage) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pShaderUsage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void VideoProcessorSetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType ColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, ColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void VideoProcessorSetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Bool32 FlipHorizontal, Bool32 FlipVertical) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Enable, FlipHorizontal, FlipVertical); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void VideoProcessorGetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void VideoProcessorGetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, Bool32* pFlipHorizontal, Bool32* pFlipVertical) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pFlipHorizontal, pFlipVertical); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public HResult VideoProcessorGetBehaviorHints(ID3D11VideoProcessor* pVideoProcessor, uint OutputWidth, uint OutputHeight, Graphics.Dxgi.Common.Format OutputFormat, uint StreamCount, VideoProcessorStreamBehaviorHint* pStreams, uint* pBehaviorHints) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, OutputWidth, OutputHeight, OutputFormat, StreamCount, pStreams, pBehaviorHints); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public void VideoProcessorSetOutputHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.HdrMetadataType Type, uint Size, void* pHDRMetaData) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, Type, Size, pHDRMetaData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void VideoProcessorGetOutputHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.HdrMetadataType* pType, uint Size, void* pMetaData) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, pType, Size, pMetaData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public void VideoProcessorSetStreamHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.HdrMetadataType Type, uint Size, void* pHDRMetaData) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, Type, Size, pHDRMetaData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void VideoProcessorGetStreamHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.HdrMetadataType* pType, uint Size, void* pMetaData) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pType, Size, pMetaData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public HResult DecoderBeginFrame1(ID3D11VideoDecoder* pDecoder, ID3D11VideoDecoderOutputView* pView, uint ContentKeySize, void* pContentKey, uint NumComponentHistograms, uint* pHistogramOffsets, ID3D11Buffer** ppHistogramBuffers) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, pView, ContentKeySize, pContentKey, NumComponentHistograms, pHistogramOffsets, ppHistogramBuffers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public HResult SubmitDecoderBuffers2(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription2* pBufferDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDecoder.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDecoder.cs new file mode 100644 index 0000000..59cbb88 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDecoder.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoDecoder +[Guid("3c9c5b51-995d-48d1-9b8d-fa5caeded65c")] +[NativeTypeName("struct ID3D11VideoDecoder : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11VideoDecoder +{ + public static ref readonly Guid IID_ID3D11VideoDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x51, 0x5B, 0x9C, 0x3C, + 0x5D, 0x99, + 0xD1, 0x48, + 0x9B, + 0x8D, + 0xFA, + 0x5C, + 0xAE, + 0xDE, + 0xD6, + 0x5C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDecoder)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetCreationParameters(VideoDecoderDescription* pVideoDesc, VideoDecoderConfig* pConfig) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), pVideoDesc, pConfig); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDriverHandle(IntPtr* pDriverHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), pDriverHandle); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDecoderOutputView.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDecoderOutputView.cs new file mode 100644 index 0000000..b05bffd --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDecoderOutputView.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoDecoderOutputView +[Guid("c2931aea-2a85-4f20-860f-fba1fd256e18")] +[NativeTypeName("struct ID3D11VideoDecoderOutputView : ID3D11View")] +[NativeInheritance("ID3D11View")] +public unsafe partial struct ID3D11VideoDecoderOutputView +{ + public static ref readonly Guid IID_ID3D11VideoDecoderOutputView + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEA, 0x1A, 0x93, 0xC2, + 0x85, 0x2A, + 0x20, 0x4F, + 0x86, + 0x0F, + 0xFB, + 0xA1, + 0xFD, + 0x25, + 0x6E, + 0x18 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDecoderOutputView)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetResource(ID3D11Resource** ppResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(VideoDecoderOutputViewDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDevice.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDevice.cs new file mode 100644 index 0000000..d93a6ce --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDevice.cs @@ -0,0 +1,219 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoDevice +[Guid("10ec4d5b-975a-4689-b9e4-d0aac30fe333")] +[NativeTypeName("struct ID3D11VideoDevice : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D11VideoDevice +{ + public static ref readonly Guid IID_ID3D11VideoDevice + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5B, 0x4D, 0xEC, 0x10, + 0x5A, 0x97, + 0x89, 0x46, + 0xB9, + 0xE4, + 0xD0, + 0xAA, + 0xC3, + 0x0F, + 0xE3, + 0x33 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDevice)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateVideoDecoder(VideoDecoderDescription* pVideoDesc, VideoDecoderConfig* pConfig, ID3D11VideoDecoder** ppDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pVideoDesc, pConfig, ppDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateVideoProcessor(ID3D11VideoProcessorEnumerator* pEnum, uint RateConversionIndex, ID3D11VideoProcessor** ppVideoProcessor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pEnum, RateConversionIndex, ppVideoProcessor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateAuthenticatedChannel(AuthenticatedChannelType ChannelType, ID3D11AuthenticatedChannel** ppAuthenticatedChannel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), ChannelType, ppAuthenticatedChannel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateCryptoSession(Guid* pCryptoType, Guid* pDecoderProfile, Guid* pKeyExchangeType, ID3D11CryptoSession** ppCryptoSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pKeyExchangeType, ppCryptoSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateVideoDecoderOutputView(ID3D11Resource* pResource, VideoDecoderOutputViewDescription* pDesc, ID3D11VideoDecoderOutputView** ppVDOVView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pResource, pDesc, ppVDOVView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateVideoProcessorInputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorInputViewDescription* pDesc, ID3D11VideoProcessorInputView** ppVPIView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPIView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateVideoProcessorOutputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorOutputViewDescription* pDesc, ID3D11VideoProcessorOutputView** ppVPOView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPOView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateVideoProcessorEnumerator(VideoProcessorContentDescription* pDesc, ID3D11VideoProcessorEnumerator** ppEnum) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pDesc, ppEnum); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public uint GetVideoDecoderProfileCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetVideoDecoderProfile(uint Index, Guid* pDecoderProfile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), Index, pDecoderProfile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckVideoDecoderFormat(Guid* pDecoderProfile, Graphics.Dxgi.Common.Format Format, Bool32* pSupported) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pDecoderProfile, Format, pSupported); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetVideoDecoderConfigCount(VideoDecoderDescription* pDesc, uint* pCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pDesc, pCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetVideoDecoderConfig(VideoDecoderDescription* pDesc, uint Index, VideoDecoderConfig* pConfig) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pDesc, Index, pConfig); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetContentProtectionCaps(Guid* pCryptoType, Guid* pDecoderProfile, VideoContentProtectionCaps* pCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CheckCryptoKeyExchange(Guid* pCryptoType, Guid* pDecoderProfile, uint Index, Guid* pKeyExchangeType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, Index, pKeyExchangeType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), guid, pData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDevice1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDevice1.cs new file mode 100644 index 0000000..ee72aae --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDevice1.cs @@ -0,0 +1,251 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoDevice1 +[Guid("29da1d51-1321-4454-804b-f5fc9f861f0f")] +[NativeTypeName("struct ID3D11VideoDevice1 : ID3D11VideoDevice")] +[NativeInheritance("ID3D11VideoDevice")] +public unsafe partial struct ID3D11VideoDevice1 +{ + public static ref readonly Guid IID_ID3D11VideoDevice1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x51, 0x1D, 0xDA, 0x29, + 0x21, 0x13, + 0x54, 0x44, + 0x80, + 0x4B, + 0xF5, + 0xFC, + 0x9F, + 0x86, + 0x1F, + 0x0F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDevice1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateVideoDecoder(VideoDecoderDescription* pVideoDesc, VideoDecoderConfig* pConfig, ID3D11VideoDecoder** ppDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pVideoDesc, pConfig, ppDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateVideoProcessor(ID3D11VideoProcessorEnumerator* pEnum, uint RateConversionIndex, ID3D11VideoProcessor** ppVideoProcessor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pEnum, RateConversionIndex, ppVideoProcessor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateAuthenticatedChannel(AuthenticatedChannelType ChannelType, ID3D11AuthenticatedChannel** ppAuthenticatedChannel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), ChannelType, ppAuthenticatedChannel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateCryptoSession(Guid* pCryptoType, Guid* pDecoderProfile, Guid* pKeyExchangeType, ID3D11CryptoSession** ppCryptoSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pKeyExchangeType, ppCryptoSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateVideoDecoderOutputView(ID3D11Resource* pResource, VideoDecoderOutputViewDescription* pDesc, ID3D11VideoDecoderOutputView** ppVDOVView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pResource, pDesc, ppVDOVView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateVideoProcessorInputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorInputViewDescription* pDesc, ID3D11VideoProcessorInputView** ppVPIView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPIView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateVideoProcessorOutputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorOutputViewDescription* pDesc, ID3D11VideoProcessorOutputView** ppVPOView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPOView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateVideoProcessorEnumerator(VideoProcessorContentDescription* pDesc, ID3D11VideoProcessorEnumerator** ppEnum) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pDesc, ppEnum); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public uint GetVideoDecoderProfileCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetVideoDecoderProfile(uint Index, Guid* pDecoderProfile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), Index, pDecoderProfile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckVideoDecoderFormat(Guid* pDecoderProfile, Graphics.Dxgi.Common.Format Format, Bool32* pSupported) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pDecoderProfile, Format, pSupported); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetVideoDecoderConfigCount(VideoDecoderDescription* pDesc, uint* pCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pDesc, pCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetVideoDecoderConfig(VideoDecoderDescription* pDesc, uint Index, VideoDecoderConfig* pConfig) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pDesc, Index, pConfig); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetContentProtectionCaps(Guid* pCryptoType, Guid* pDecoderProfile, VideoContentProtectionCaps* pCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CheckCryptoKeyExchange(Guid* pCryptoType, Guid* pDecoderProfile, uint Index, Guid* pKeyExchangeType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, Index, pKeyExchangeType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult GetCryptoSessionPrivateDataSize(Guid* pCryptoType, Guid* pDecoderProfile, Guid* pKeyExchangeType, uint* pPrivateInputSize, uint* pPrivateOutputSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pKeyExchangeType, pPrivateInputSize, pPrivateOutputSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetVideoDecoderCaps(Guid* pDecoderProfile, uint SampleWidth, uint SampleHeight, Graphics.Dxgi.Common.Rational* pFrameRate, uint BitRate, Guid* pCryptoType, uint* pDecoderCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pDecoderProfile, SampleWidth, SampleHeight, pFrameRate, BitRate, pCryptoType, pDecoderCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CheckVideoDecoderDownsampling(VideoDecoderDescription* pInputDesc, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoDecoderConfig* pInputConfig, Graphics.Dxgi.Common.Rational* pFrameRate, VideoSampleDescription* pOutputDesc, Bool32* pSupported, Bool32* pRealTimeHint) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pInputDesc, InputColorSpace, pInputConfig, pFrameRate, pOutputDesc, pSupported, pRealTimeHint); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult RecommendVideoDecoderDownsampleParameters(VideoDecoderDescription* pInputDesc, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoDecoderConfig* pInputConfig, Graphics.Dxgi.Common.Rational* pFrameRate, VideoSampleDescription* pRecommendedOutputDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pInputDesc, InputColorSpace, pInputConfig, pFrameRate, pRecommendedOutputDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDevice2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDevice2.cs new file mode 100644 index 0000000..081a10a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoDevice2.cs @@ -0,0 +1,267 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoDevice2 +[Guid("59c0cb01-35f0-4a70-8f67-87905c906a53")] +[NativeTypeName("struct ID3D11VideoDevice2 : ID3D11VideoDevice1")] +[NativeInheritance("ID3D11VideoDevice1")] +public unsafe partial struct ID3D11VideoDevice2 +{ + public static ref readonly Guid IID_ID3D11VideoDevice2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x01, 0xCB, 0xC0, 0x59, + 0xF0, 0x35, + 0x70, 0x4A, + 0x8F, + 0x67, + 0x87, + 0x90, + 0x5C, + 0x90, + 0x6A, + 0x53 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoDevice2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateVideoDecoder(VideoDecoderDescription* pVideoDesc, VideoDecoderConfig* pConfig, ID3D11VideoDecoder** ppDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pVideoDesc, pConfig, ppDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateVideoProcessor(ID3D11VideoProcessorEnumerator* pEnum, uint RateConversionIndex, ID3D11VideoProcessor** ppVideoProcessor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pEnum, RateConversionIndex, ppVideoProcessor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateAuthenticatedChannel(AuthenticatedChannelType ChannelType, ID3D11AuthenticatedChannel** ppAuthenticatedChannel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), ChannelType, ppAuthenticatedChannel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateCryptoSession(Guid* pCryptoType, Guid* pDecoderProfile, Guid* pKeyExchangeType, ID3D11CryptoSession** ppCryptoSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pKeyExchangeType, ppCryptoSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateVideoDecoderOutputView(ID3D11Resource* pResource, VideoDecoderOutputViewDescription* pDesc, ID3D11VideoDecoderOutputView** ppVDOVView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pResource, pDesc, ppVDOVView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateVideoProcessorInputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorInputViewDescription* pDesc, ID3D11VideoProcessorInputView** ppVPIView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPIView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateVideoProcessorOutputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorOutputViewDescription* pDesc, ID3D11VideoProcessorOutputView** ppVPOView) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pResource, pEnum, pDesc, ppVPOView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateVideoProcessorEnumerator(VideoProcessorContentDescription* pDesc, ID3D11VideoProcessorEnumerator** ppEnum) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pDesc, ppEnum); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public uint GetVideoDecoderProfileCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetVideoDecoderProfile(uint Index, Guid* pDecoderProfile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), Index, pDecoderProfile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckVideoDecoderFormat(Guid* pDecoderProfile, Graphics.Dxgi.Common.Format Format, Bool32* pSupported) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pDecoderProfile, Format, pSupported); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetVideoDecoderConfigCount(VideoDecoderDescription* pDesc, uint* pCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pDesc, pCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetVideoDecoderConfig(VideoDecoderDescription* pDesc, uint Index, VideoDecoderConfig* pConfig) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pDesc, Index, pConfig); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetContentProtectionCaps(Guid* pCryptoType, Guid* pDecoderProfile, VideoContentProtectionCaps* pCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CheckCryptoKeyExchange(Guid* pCryptoType, Guid* pDecoderProfile, uint Index, Guid* pKeyExchangeType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, Index, pKeyExchangeType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult GetCryptoSessionPrivateDataSize(Guid* pCryptoType, Guid* pDecoderProfile, Guid* pKeyExchangeType, uint* pPrivateInputSize, uint* pPrivateOutputSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pCryptoType, pDecoderProfile, pKeyExchangeType, pPrivateInputSize, pPrivateOutputSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetVideoDecoderCaps(Guid* pDecoderProfile, uint SampleWidth, uint SampleHeight, Graphics.Dxgi.Common.Rational* pFrameRate, uint BitRate, Guid* pCryptoType, uint* pDecoderCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pDecoderProfile, SampleWidth, SampleHeight, pFrameRate, BitRate, pCryptoType, pDecoderCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CheckVideoDecoderDownsampling(VideoDecoderDescription* pInputDesc, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoDecoderConfig* pInputConfig, Graphics.Dxgi.Common.Rational* pFrameRate, VideoSampleDescription* pOutputDesc, Bool32* pSupported, Bool32* pRealTimeHint) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pInputDesc, InputColorSpace, pInputConfig, pFrameRate, pOutputDesc, pSupported, pRealTimeHint); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult RecommendVideoDecoderDownsampleParameters(VideoDecoderDescription* pInputDesc, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoDecoderConfig* pInputConfig, Graphics.Dxgi.Common.Rational* pFrameRate, VideoSampleDescription* pRecommendedOutputDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pInputDesc, InputColorSpace, pInputConfig, pFrameRate, pRecommendedOutputDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CheckFeatureSupport(FeatureVideo Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult NegotiateCryptoSessionKeyExchangeMT(ID3D11CryptoSession* pCryptoSession, CryptoSessionKeyExchangeFlags flags, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pCryptoSession, flags, DataSize, pData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessor.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessor.cs new file mode 100644 index 0000000..367fbe1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessor.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoProcessor +[Guid("1d7b0652-185f-41c6-85ce-0c5be3d4ae6c")] +[NativeTypeName("struct ID3D11VideoProcessor : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11VideoProcessor +{ + public static ref readonly Guid IID_ID3D11VideoProcessor + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x52, 0x06, 0x7B, 0x1D, + 0x5F, 0x18, + 0xC6, 0x41, + 0x85, + 0xCE, + 0x0C, + 0x5B, + 0xE3, + 0xD4, + 0xAE, + 0x6C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessor)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetContentDesc(VideoProcessorContentDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetRateConversionCaps(VideoProcessorRateConversionCaps* pCaps) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), pCaps); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorEnumerator.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorEnumerator.cs new file mode 100644 index 0000000..d38014f --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorEnumerator.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoProcessorEnumerator +[Guid("31627037-53ab-4200-9061-05faa9ab45f9")] +[NativeTypeName("struct ID3D11VideoProcessorEnumerator : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11VideoProcessorEnumerator +{ + public static ref readonly Guid IID_ID3D11VideoProcessorEnumerator + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x37, 0x70, 0x62, 0x31, + 0xAB, 0x53, + 0x00, 0x42, + 0x90, + 0x61, + 0x05, + 0xFA, + 0xA9, + 0xAB, + 0x45, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessorEnumerator)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetVideoProcessorContentDesc(VideoProcessorContentDescription* pContentDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), pContentDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CheckVideoProcessorFormat(Graphics.Dxgi.Common.Format Format, uint* pFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), Format, pFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetVideoProcessorCaps(VideoProcessorCaps* pCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), pCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetVideoProcessorRateConversionCaps(uint TypeIndex, VideoProcessorRateConversionCaps* pCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), TypeIndex, pCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetVideoProcessorCustomRate(uint TypeIndex, uint CustomRateIndex, VideoProcessorCustomRate* pRate) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), TypeIndex, CustomRateIndex, pRate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetVideoProcessorFilterRange(VideoProcessorFilter Filter, VideoProcessorFilterRange* pRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), Filter, pRange); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorEnumerator1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorEnumerator1.cs new file mode 100644 index 0000000..51d56a2 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorEnumerator1.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoProcessorEnumerator1 +[Guid("465217f2-5568-43cf-b5b9-f61d54531ca1")] +[NativeTypeName("struct ID3D11VideoProcessorEnumerator1 : ID3D11VideoProcessorEnumerator")] +[NativeInheritance("ID3D11VideoProcessorEnumerator")] +public unsafe partial struct ID3D11VideoProcessorEnumerator1 +{ + public static ref readonly Guid IID_ID3D11VideoProcessorEnumerator1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF2, 0x17, 0x52, 0x46, + 0x68, 0x55, + 0xCF, 0x43, + 0xB5, + 0xB9, + 0xF6, + 0x1D, + 0x54, + 0x53, + 0x1C, + 0xA1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessorEnumerator1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetVideoProcessorContentDesc(VideoProcessorContentDescription* pContentDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), pContentDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CheckVideoProcessorFormat(Graphics.Dxgi.Common.Format Format, uint* pFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), Format, pFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetVideoProcessorCaps(VideoProcessorCaps* pCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), pCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetVideoProcessorRateConversionCaps(uint TypeIndex, VideoProcessorRateConversionCaps* pCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), TypeIndex, pCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetVideoProcessorCustomRate(uint TypeIndex, uint CustomRateIndex, VideoProcessorCustomRate* pRate) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), TypeIndex, CustomRateIndex, pRate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetVideoProcessorFilterRange(VideoProcessorFilter Filter, VideoProcessorFilterRange* pRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), Filter, pRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckVideoProcessorFormatConversion(Graphics.Dxgi.Common.Format InputFormat, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, Graphics.Dxgi.Common.Format OutputFormat, Graphics.Dxgi.Common.ColorSpaceType OutputColorSpace, Bool32* pSupported) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), InputFormat, InputColorSpace, OutputFormat, OutputColorSpace, pSupported); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorInputView.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorInputView.cs new file mode 100644 index 0000000..9e91dac --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorInputView.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoProcessorInputView +[Guid("11ec5a5f-51dc-4945-ab34-6e8c21300ea5")] +[NativeTypeName("struct ID3D11VideoProcessorInputView : ID3D11View")] +[NativeInheritance("ID3D11View")] +public unsafe partial struct ID3D11VideoProcessorInputView +{ + public static ref readonly Guid IID_ID3D11VideoProcessorInputView + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5F, 0x5A, 0xEC, 0x11, + 0xDC, 0x51, + 0x45, 0x49, + 0xAB, + 0x34, + 0x6E, + 0x8C, + 0x21, + 0x30, + 0x0E, + 0xA5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessorInputView)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetResource(ID3D11Resource** ppResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(VideoProcessorInputViewDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorOutputView.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorOutputView.cs new file mode 100644 index 0000000..ede8668 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11VideoProcessorOutputView.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11VideoProcessorOutputView +[Guid("a048285e-25a9-4527-bd93-d68b68c44254")] +[NativeTypeName("struct ID3D11VideoProcessorOutputView : ID3D11View")] +[NativeInheritance("ID3D11View")] +public unsafe partial struct ID3D11VideoProcessorOutputView +{ + public static ref readonly Guid IID_ID3D11VideoProcessorOutputView + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5E, 0x28, 0x48, 0xA0, + 0xA9, 0x25, + 0x27, 0x45, + 0xBD, + 0x93, + 0xD6, + 0x8B, + 0x68, + 0xC4, + 0x42, + 0x54 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11VideoProcessorOutputView)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetResource(ID3D11Resource** ppResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), ppResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetDesc(VideoProcessorOutputViewDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11View.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11View.cs new file mode 100644 index 0000000..6e23817 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3D11View.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3D11View +[Guid("839d1216-bb2e-412b-b7f4-a9dbebe08ed1")] +[NativeTypeName("struct ID3D11View : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3D11View +{ + public static ref readonly Guid IID_ID3D11View + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x16, 0x12, 0x9D, 0x83, + 0x2E, 0xBB, + 0x2B, 0x41, + 0xB7, + 0xF4, + 0xA9, + 0xDB, + 0xEB, + 0xE0, + 0x8E, + 0xD1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D11View)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11View*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11View*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11View*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11View*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetResource(ID3D11Resource** ppResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11View*)Unsafe.AsPointer(ref this), ppResource); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3DDeviceContextState.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3DDeviceContextState.cs new file mode 100644 index 0000000..a50dae1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3DDeviceContextState.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3DDeviceContextState +[Guid("5c1e0d8a-7c23-48f9-8c59-a92958ceff11")] +[NativeTypeName("struct ID3DDeviceContextState : ID3D11DeviceChild")] +[NativeInheritance("ID3D11DeviceChild")] +public unsafe partial struct ID3DDeviceContextState +{ + public static ref readonly Guid IID_ID3DDeviceContextState + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8A, 0x0D, 0x1E, 0x5C, + 0x23, 0x7C, + 0xF9, 0x48, + 0x8C, + 0x59, + 0xA9, + 0x29, + 0x58, + 0xCE, + 0xFF, + 0x11 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DDeviceContextState)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetDevice(ID3D11Device** ppDevice) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3DDeviceContextState*)Unsafe.AsPointer(ref this), ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3DDeviceContextState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3DDeviceContextState*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3DDeviceContextState*)Unsafe.AsPointer(ref this), guid, pData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3DUserDefinedAnnotation.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3DUserDefinedAnnotation.cs new file mode 100644 index 0000000..5c1aa84 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11/ID3DUserDefinedAnnotation.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D11; + +/// +/// ID3DUserDefinedAnnotation +[Guid("b2daad8b-03d4-4dbf-95eb-32ab4b63d0ab")] +[NativeTypeName("struct ID3DUserDefinedAnnotation : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3DUserDefinedAnnotation +{ + public static ref readonly Guid IID_ID3DUserDefinedAnnotation + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8B, 0xAD, 0xDA, 0xB2, + 0xD4, 0x03, + 0xBF, 0x4D, + 0x95, + 0xEB, + 0x32, + 0xAB, + 0x4B, + 0x63, + 0xD0, + 0xAB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3DUserDefinedAnnotation)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public int BeginEvent(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public int EndEvent() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetMarker(ushort* Name) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public Bool32 GetStatus() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12.cs index 242bca3..fad9d18 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D12.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12.cs @@ -12080,16422 +12080,6 @@ public partial struct ParameterDescription #endregion Structs #region COM Types -/// -/// ID3D12Object -[Guid("c4fec28f-7966-4e95-9f94-f431cb56c3b8")] -[NativeTypeName("struct ID3D12Object : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Object -{ - public static ref readonly Guid IID_ID3D12Object - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8F, 0xC2, 0xFE, 0xC4, - 0x66, 0x79, - 0x95, 0x4E, - 0x9F, - 0x94, - 0xF4, - 0x31, - 0xCB, - 0x56, - 0xC3, - 0xB8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Object)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Object*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Object*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Object*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Object*)Unsafe.AsPointer(ref this), Name); - } -} - -/// -/// ID3D12DeviceChild -[Guid("905db94b-a00c-4140-9df5-2b64ca9ea357")] -[NativeTypeName("struct ID3D12DeviceChild : ID3D12Object")] -[NativeInheritance("ID3D12Object")] -public unsafe partial struct ID3D12DeviceChild -{ - public static ref readonly Guid IID_ID3D12DeviceChild - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4B, 0xB9, 0x5D, 0x90, - 0x0C, 0xA0, - 0x40, 0x41, - 0x9D, - 0xF5, - 0x2B, - 0x64, - 0xCA, - 0x9E, - 0xA3, - 0x57 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceChild)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceChild*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceChild*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceChild*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DeviceChild*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12DeviceChild*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } -} - -/// -/// ID3D12RootSignature -[Guid("c54a6b66-72df-4ee8-8be5-a946a1429214")] -[NativeTypeName("struct ID3D12RootSignature : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12RootSignature -{ - public static ref readonly Guid IID_ID3D12RootSignature - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x66, 0x6B, 0x4A, 0xC5, - 0xDF, 0x72, - 0xE8, 0x4E, - 0x8B, - 0xE5, - 0xA9, - 0x46, - 0xA1, - 0x42, - 0x92, - 0x14 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12RootSignature)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12RootSignature*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12RootSignature*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12RootSignature*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12RootSignature*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12RootSignature*)Unsafe.AsPointer(ref this), Name); - } -} - -/// -/// ID3D12RootSignatureDeserializer -[Guid("34ab647b-3cc8-46ac-841b-c0965645c046")] -[NativeTypeName("struct ID3D12RootSignatureDeserializer : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12RootSignatureDeserializer -{ - public static ref readonly Guid IID_ID3D12RootSignatureDeserializer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7B, 0x64, 0xAB, 0x34, - 0xC8, 0x3C, - 0xAC, 0x46, - 0x84, - 0x1B, - 0xC0, - 0x96, - 0x56, - 0x45, - 0xC0, - 0x46 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12RootSignatureDeserializer)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public RootSignatureDescription* GetRootSignatureDesc() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12RootSignatureDeserializer*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12VersionedRootSignatureDeserializer -[Guid("7f91ce67-090c-4bb7-b78e-ed8ff2e31da0")] -[NativeTypeName("struct ID3D12VersionedRootSignatureDeserializer : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12VersionedRootSignatureDeserializer -{ - public static ref readonly Guid IID_ID3D12VersionedRootSignatureDeserializer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x67, 0xCE, 0x91, 0x7F, - 0x0C, 0x09, - 0xB7, 0x4B, - 0xB7, - 0x8E, - 0xED, - 0x8F, - 0xF2, - 0xE3, - 0x1D, - 0xA0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VersionedRootSignatureDeserializer)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetRootSignatureDescAtVersion(RootSignatureVersion convertToVersion, VersionedRootSignatureDescription** ppDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12VersionedRootSignatureDeserializer*)Unsafe.AsPointer(ref this), convertToVersion, ppDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public VersionedRootSignatureDescription* GetUnconvertedRootSignatureDesc() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12VersionedRootSignatureDeserializer*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12Pageable -[Guid("63ee58fb-1268-4835-86da-f008ce62f0d6")] -[NativeTypeName("struct ID3D12Pageable : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12Pageable -{ - public static ref readonly Guid IID_ID3D12Pageable - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFB, 0x58, 0xEE, 0x63, - 0x68, 0x12, - 0x35, 0x48, - 0x86, - 0xDA, - 0xF0, - 0x08, - 0xCE, - 0x62, - 0xF0, - 0xD6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Pageable)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Pageable*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Pageable*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Pageable*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Pageable*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Pageable*)Unsafe.AsPointer(ref this), Name); - } -} - -/// -/// ID3D12Heap -[Guid("6b3b2502-6e51-45b3-90ee-9884265e8df3")] -[NativeTypeName("struct ID3D12Heap : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12Heap -{ - public static ref readonly Guid IID_ID3D12Heap - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x02, 0x25, 0x3B, 0x6B, - 0x51, 0x6E, - 0xB3, 0x45, - 0x90, - 0xEE, - 0x98, - 0x84, - 0x26, - 0x5E, - 0x8D, - 0xF3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Heap)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Heap*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Heap*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Heap*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Heap*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Heap*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HeapDescription GetDesc() - { - HeapDescription result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Heap*)Unsafe.AsPointer(ref this), &result); - } -} - -/// -/// ID3D12Resource -[Guid("696442be-a72e-4059-bc79-5b5c98040fad")] -[NativeTypeName("struct ID3D12Resource : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12Resource -{ - public static ref readonly Guid IID_ID3D12Resource - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBE, 0x42, 0x64, 0x69, - 0x2E, 0xA7, - 0x59, 0x40, - 0xBC, - 0x79, - 0x5B, - 0x5C, - 0x98, - 0x04, - 0x0F, - 0xAD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Resource)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Resource*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Resource*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Resource*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Resource*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Resource*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Map(uint Subresource, Range* pReadRange, void** ppData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Resource*)Unsafe.AsPointer(ref this), Subresource, pReadRange, ppData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void Unmap(uint Subresource, Range* pWrittenRange) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Resource*)Unsafe.AsPointer(ref this), Subresource, pWrittenRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public ResourceDescription GetDesc() - { - ResourceDescription result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Resource*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public ulong GetGPUVirtualAddress() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Resource*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult WriteToSubresource(uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Resource*)Unsafe.AsPointer(ref this), DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, uint SrcSubresource, Box* pSrcBox) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Resource*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, SrcSubresource, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetHeapProperties(HeapProperties* pHeapProperties, HeapFlags* pHeapFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Resource*)Unsafe.AsPointer(ref this), pHeapProperties, pHeapFlags); - } -} - -/// -/// ID3D12CommandAllocator -[Guid("6102dee4-af59-4b09-b999-b44d73f09b24")] -[NativeTypeName("struct ID3D12CommandAllocator : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12CommandAllocator -{ - public static ref readonly Guid IID_ID3D12CommandAllocator - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE4, 0xDE, 0x02, 0x61, - 0x59, 0xAF, - 0x09, 0x4B, - 0xB9, - 0x99, - 0xB4, - 0x4D, - 0x73, - 0xF0, - 0x9B, - 0x24 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandAllocator)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Reset() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12Fence -[Guid("0a753dcf-c4d8-4b91-adf6-be5a60d95a76")] -[NativeTypeName("struct ID3D12Fence : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12Fence -{ - public static ref readonly Guid IID_ID3D12Fence - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCF, 0x3D, 0x75, 0x0A, - 0xD8, 0xC4, - 0x91, 0x4B, - 0xAD, - 0xF6, - 0xBE, - 0x5A, - 0x60, - 0xD9, - 0x5A, - 0x76 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Fence)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Fence*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Fence*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Fence*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Fence*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Fence*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ulong GetCompletedValue() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Fence*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetEventOnCompletion(ulong Value, IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Fence*)Unsafe.AsPointer(ref this), Value, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult Signal(ulong Value) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Fence*)Unsafe.AsPointer(ref this), Value); - } -} - -/// -/// ID3D12Fence1 -[Guid("433685fe-e22b-4ca0-a8db-b5b4f4dd0e4a")] -[NativeTypeName("struct ID3D12Fence1 : ID3D12Fence")] -[NativeInheritance("ID3D12Fence")] -public unsafe partial struct ID3D12Fence1 -{ - public static ref readonly Guid IID_ID3D12Fence1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFE, 0x85, 0x36, 0x43, - 0x2B, 0xE2, - 0xA0, 0x4C, - 0xA8, - 0xDB, - 0xB5, - 0xB4, - 0xF4, - 0xDD, - 0x0E, - 0x4A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Fence1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public ulong GetCompletedValue() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Fence1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetEventOnCompletion(ulong Value, IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), Value, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult Signal(ulong Value) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), Value); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public FenceFlags GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Fence1*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12PipelineState -[Guid("765a30f3-f624-4c6f-a828-ace948622445")] -[NativeTypeName("struct ID3D12PipelineState : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12PipelineState -{ - public static ref readonly Guid IID_ID3D12PipelineState - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF3, 0x30, 0x5A, 0x76, - 0x24, 0xF6, - 0x6F, 0x4C, - 0xA8, - 0x28, - 0xAC, - 0xE9, - 0x48, - 0x62, - 0x24, - 0x45 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12PipelineState)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12PipelineState*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12PipelineState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12PipelineState*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12PipelineState*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12PipelineState*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetCachedBlob(Graphics.Direct3D.ID3DBlob** ppBlob) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12PipelineState*)Unsafe.AsPointer(ref this), ppBlob); - } -} - -/// -/// ID3D12DescriptorHeap -[Guid("8efb471d-616c-4f49-90f7-127bb763fa51")] -[NativeTypeName("struct ID3D12DescriptorHeap : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12DescriptorHeap -{ - public static ref readonly Guid IID_ID3D12DescriptorHeap - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1D, 0x47, 0xFB, 0x8E, - 0x6C, 0x61, - 0x49, 0x4F, - 0x90, - 0xF7, - 0x12, - 0x7B, - 0xB7, - 0x63, - 0xFA, - 0x51 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DescriptorHeap)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public DescriptorHeapDescription GetDesc() - { - DescriptorHeapDescription result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public CpuDescriptorHandle GetCPUDescriptorHandleForHeapStart() - { - CpuDescriptorHandle result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public GpuDescriptorHandle GetGPUDescriptorHandleForHeapStart() - { - GpuDescriptorHandle result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), &result); - } -} - -/// -/// ID3D12QueryHeap -[Guid("0d9658ae-ed45-469e-a61d-970ec583cab4")] -[NativeTypeName("struct ID3D12QueryHeap : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12QueryHeap -{ - public static ref readonly Guid IID_ID3D12QueryHeap - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAE, 0x58, 0x96, 0x0D, - 0x45, 0xED, - 0x9E, 0x46, - 0xA6, - 0x1D, - 0x97, - 0x0E, - 0xC5, - 0x83, - 0xCA, - 0xB4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12QueryHeap)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12QueryHeap*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12QueryHeap*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12QueryHeap*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12QueryHeap*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12QueryHeap*)Unsafe.AsPointer(ref this), Name); - } -} - -/// -/// ID3D12CommandSignature -[Guid("c36a797c-ec80-4f0a-8985-a7b2475082d1")] -[NativeTypeName("struct ID3D12CommandSignature : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12CommandSignature -{ - public static ref readonly Guid IID_ID3D12CommandSignature - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7C, 0x79, 0x6A, 0xC3, - 0x80, 0xEC, - 0x0A, 0x4F, - 0x89, - 0x85, - 0xA7, - 0xB2, - 0x47, - 0x50, - 0x82, - 0xD1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandSignature)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), Name); - } -} - -/// -/// ID3D12CommandList -[Guid("7116d91c-e7e4-47ce-b8c6-ec8168f437e5")] -[NativeTypeName("struct ID3D12CommandList : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12CommandList -{ - public static ref readonly Guid IID_ID3D12CommandList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1C, 0xD9, 0x16, 0x71, - 0xE4, 0xE7, - 0xCE, 0x47, - 0xB8, - 0xC6, - 0xEC, - 0x81, - 0x68, - 0xF4, - 0x37, - 0xE5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandList)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12CommandList*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12CommandList*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12CommandList*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12CommandList*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12CommandList*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public new CommandListType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12CommandList*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12GraphicsCommandList -[Guid("5b160d0f-ac1b-4185-8ba8-b3ae42a5a455")] -[NativeTypeName("struct ID3D12GraphicsCommandList : ID3D12CommandList")] -[NativeInheritance("ID3D12CommandList")] -public unsafe partial struct ID3D12GraphicsCommandList -{ - public static ref readonly Guid IID_ID3D12GraphicsCommandList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0F, 0x0D, 0x16, 0x5B, - 0x1B, 0xAC, - 0x85, 0x41, - 0x8B, - 0xA8, - 0xB3, - 0xAE, - 0x42, - 0xA5, - 0xA4, - 0x55 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public new CommandListType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult Close() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void RSSetViewports(uint NumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void RSSetScissorRects(uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void OMSetBlendFactor(float* BlendFactor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), BlendFactor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), StencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void IASetIndexBuffer(IndexBufferView* pView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SetMarker(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void BeginEvent(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void EndEvent() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); - } -} - -/// -/// ID3D12GraphicsCommandList1 -[Guid("553103fb-1fe7-4557-bb38-946d7d0e7ca7")] -[NativeTypeName("struct ID3D12GraphicsCommandList1 : ID3D12GraphicsCommandList")] -[NativeInheritance("ID3D12GraphicsCommandList")] -public unsafe partial struct ID3D12GraphicsCommandList1 -{ - public static ref readonly Guid IID_ID3D12GraphicsCommandList1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFB, 0x03, 0x31, 0x55, - 0xE7, 0x1F, - 0x57, 0x45, - 0xBB, - 0x38, - 0x94, - 0x6D, - 0x7D, - 0x0E, - 0x7C, - 0xA7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Close() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void RSSetViewports(uint NumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void RSSetScissorRects(uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void OMSetBlendFactor(float* BlendFactor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), BlendFactor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), StencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void IASetIndexBuffer(IndexBufferView* pView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void SetMarker(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void BeginEvent(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void EndEvent() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public new CommandListType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void AtomicCopyBufferUINT(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void AtomicCopyBufferUINT64(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void OMSetDepthBounds(float Min, float Max) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), Min, Max); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumSamplesPerPixel, NumPixels, pSamplePositions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void ResolveSubresourceRegion(ID3D12Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, ID3D12Resource* pSrcResource, uint SrcSubresource, RawRect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, pSrcResource, SrcSubresource, pSrcRect, Format, ResolveMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void SetViewInstanceMask(uint Mask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), Mask); - } -} - -/// -/// ID3D12GraphicsCommandList2 -[Guid("38c3e585-ff17-412c-9150-4fc6f9d72a28")] -[NativeTypeName("struct ID3D12GraphicsCommandList2 : ID3D12GraphicsCommandList1")] -[NativeInheritance("ID3D12GraphicsCommandList1")] -public unsafe partial struct ID3D12GraphicsCommandList2 -{ - public static ref readonly Guid IID_ID3D12GraphicsCommandList2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x85, 0xE5, 0xC3, 0x38, - 0x17, 0xFF, - 0x2C, 0x41, - 0x91, - 0x50, - 0x4F, - 0xC6, - 0xF9, - 0xD7, - 0x2A, - 0x28 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void AtomicCopyBufferUINT(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void AtomicCopyBufferUINT64(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void OMSetDepthBounds(float Min, float Max) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Min, Max); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumSamplesPerPixel, NumPixels, pSamplePositions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void ResolveSubresourceRegion(ID3D12Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, ID3D12Resource* pSrcResource, uint SrcSubresource, RawRect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, pSrcResource, SrcSubresource, pSrcRect, Format, ResolveMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void SetViewInstanceMask(uint Mask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Mask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult Close() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void RSSetViewports(uint NumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void RSSetScissorRects(uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void OMSetBlendFactor(float* BlendFactor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), BlendFactor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), StencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void IASetIndexBuffer(IndexBufferView* pView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SetMarker(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void BeginEvent(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void EndEvent() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public new CommandListType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void WriteBufferImmediate(uint Count, WriteBufferImmediateParameter* pParams, WriteBufferImmediateMode* pModes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } -} - -/// -/// ID3D12CommandQueue -[Guid("0ec870a6-5d7e-4c22-8cfc-5baae07616ed")] -[NativeTypeName("struct ID3D12CommandQueue : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12CommandQueue -{ - public static ref readonly Guid IID_ID3D12CommandQueue - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA6, 0x70, 0xC8, 0x0E, - 0x7E, 0x5D, - 0x22, 0x4C, - 0x8C, - 0xFC, - 0x5B, - 0xAA, - 0xE0, - 0x76, - 0x16, - 0xED - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandQueue)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void UpdateTileMappings(ID3D12Resource* pResource, uint NumResourceRegions, TiledResourceCoordinate* pResourceRegionStartCoordinates, TileRegionSize* pResourceRegionSizes, ID3D12Heap* pHeap, uint NumRanges, TileRangeFlags* pRangeFlags, uint* pHeapRangeStartOffsets, uint* pRangeTileCounts, TileMappingFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), pResource, NumResourceRegions, pResourceRegionStartCoordinates, pResourceRegionSizes, pHeap, NumRanges, pRangeFlags, pHeapRangeStartOffsets, pRangeTileCounts, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void CopyTileMappings(ID3D12Resource* pDstResource, TiledResourceCoordinate* pDstRegionStartCoordinate, ID3D12Resource* pSrcResource, TiledResourceCoordinate* pSrcRegionStartCoordinate, TileRegionSize* pRegionSize, TileMappingFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), pDstResource, pDstRegionStartCoordinate, pSrcResource, pSrcRegionStartCoordinate, pRegionSize, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void ExecuteCommandLists(uint NumCommandLists, ID3D12CommandList** ppCommandLists) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), NumCommandLists, ppCommandLists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void SetMarker(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void BeginEvent(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void EndEvent() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult Signal(ID3D12Fence* pFence, ulong Value) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), pFence, Value); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult Wait(ID3D12Fence* pFence, ulong Value) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), pFence, Value); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetTimestampFrequency(ulong* pFrequency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), pFrequency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetClockCalibration(ulong* pGpuTimestamp, ulong* pCpuTimestamp) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), pGpuTimestamp, pCpuTimestamp); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public CommandQueueDescription GetDesc() - { - CommandQueueDescription result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), &result); - } -} - -/// -/// ID3D12Device -[Guid("189819f1-1db6-4b57-be54-1821339b85f7")] -[NativeTypeName("struct ID3D12Device : ID3D12Object")] -[NativeInheritance("ID3D12Object")] -public unsafe partial struct ID3D12Device -{ - public static ref readonly Guid IID_ID3D12Device - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF1, 0x19, 0x98, 0x18, - 0xB6, 0x1D, - 0x57, 0x4B, - 0xBE, - 0x54, - 0x18, - 0x21, - 0x33, - 0x9B, - 0x85, - 0xF7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) - { - HeapProperties result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult SetStablePowerState(Bool32 Enable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public Luid GetAdapterLuid() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12PipelineLibrary -[Guid("c64226a8-9201-46af-b4cc-53fb9ff7414f")] -[NativeTypeName("struct ID3D12PipelineLibrary : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12PipelineLibrary -{ - public static ref readonly Guid IID_ID3D12PipelineLibrary - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA8, 0x26, 0x42, 0xC6, - 0x01, 0x92, - 0xAF, 0x46, - 0xB4, - 0xCC, - 0x53, - 0xFB, - 0x9F, - 0xF7, - 0x41, - 0x4F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12PipelineLibrary)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult StorePipeline(ushort* pName, ID3D12PipelineState* pPipeline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), pName, pPipeline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult LoadGraphicsPipeline(ushort* pName, GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult LoadComputePipeline(ushort* pName, ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public nuint GetSerializedSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult Serialize(void* pData, nuint DataSizeInBytes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), pData, DataSizeInBytes); - } -} - -/// -/// ID3D12PipelineLibrary1 -[Guid("80eabf42-2568-4e5e-bd82-c37f86961dc3")] -[NativeTypeName("struct ID3D12PipelineLibrary1 : ID3D12PipelineLibrary")] -[NativeInheritance("ID3D12PipelineLibrary")] -public unsafe partial struct ID3D12PipelineLibrary1 -{ - public static ref readonly Guid IID_ID3D12PipelineLibrary1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x42, 0xBF, 0xEA, 0x80, - 0x68, 0x25, - 0x5E, 0x4E, - 0xBD, - 0x82, - 0xC3, - 0x7F, - 0x86, - 0x96, - 0x1D, - 0xC3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12PipelineLibrary1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult StorePipeline(ushort* pName, ID3D12PipelineState* pPipeline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pName, pPipeline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult LoadGraphicsPipeline(ushort* pName, GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult LoadComputePipeline(ushort* pName, ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public nuint GetSerializedSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult Serialize(void* pData, nuint DataSizeInBytes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pData, DataSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult LoadPipeline(ushort* pName, PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); - } -} - -/// -/// ID3D12Device1 -[Guid("77acce80-638e-4e65-8895-c1f23386863e")] -[NativeTypeName("struct ID3D12Device1 : ID3D12Device")] -[NativeInheritance("ID3D12Device")] -public unsafe partial struct ID3D12Device1 -{ - public static ref readonly Guid IID_ID3D12Device1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x80, 0xCE, 0xAC, 0x77, - 0x8E, 0x63, - 0x65, 0x4E, - 0x88, - 0x95, - 0xC1, - 0xF2, - 0x33, - 0x86, - 0x86, - 0x3E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetNodeCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device1*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device1*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device1*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device1*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device1*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device1*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device1*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device1*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) - { - HeapProperties result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device1*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device1*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device1*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device1*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device1*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device1*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult SetStablePowerState(Bool32 Enable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device1*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public Luid GetAdapterLuid() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device1*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device1*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device1*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } -} - -/// -/// ID3D12Device2 -[Guid("30baa41e-b15b-475c-a0bb-1af5c5b64328")] -[NativeTypeName("struct ID3D12Device2 : ID3D12Device1")] -[NativeInheritance("ID3D12Device1")] -public unsafe partial struct ID3D12Device2 -{ - public static ref readonly Guid IID_ID3D12Device2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1E, 0xA4, 0xBA, 0x30, - 0x5B, 0xB1, - 0x5C, 0x47, - 0xA0, - 0xBB, - 0x1A, - 0xF5, - 0xC5, - 0xB6, - 0x43, - 0x28 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device2*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device2*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public uint GetNodeCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device2*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device2*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device2*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device2*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device2*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device2*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device2*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device2*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) - { - HeapProperties result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device2*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device2*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device2*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device2*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device2*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device2*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult SetStablePowerState(Bool32 Enable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device2*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public Luid GetAdapterLuid() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device2*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device2*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } -} - -/// -/// ID3D12Device3 -[Guid("81dadc15-2bad-4392-93c5-101345c4aa98")] -[NativeTypeName("struct ID3D12Device3 : ID3D12Device2")] -[NativeInheritance("ID3D12Device2")] -public unsafe partial struct ID3D12Device3 -{ - public static ref readonly Guid IID_ID3D12Device3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x15, 0xDC, 0xDA, 0x81, - 0xAD, 0x2B, - 0x92, 0x43, - 0x93, - 0xC5, - 0x10, - 0x13, - 0x45, - 0xC4, - 0xAA, - 0x98 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device3*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device3*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNodeCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device3*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device3*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device3*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device3*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device3*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device3*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device3*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device3*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) - { - HeapProperties result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device3*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device3*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device3*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device3*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device3*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device3*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult SetStablePowerState(Bool32 Enable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device3*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public Luid GetAdapterLuid() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device3*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device3*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device3*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device3*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); - } -} - -/// -/// ID3D12ProtectedSession -[Guid("a1533d18-0ac1-4084-85b9-89a96116806b")] -[NativeTypeName("struct ID3D12ProtectedSession : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12ProtectedSession -{ - public static ref readonly Guid IID_ID3D12ProtectedSession - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x18, 0x3D, 0x53, 0xA1, - 0xC1, 0x0A, - 0x84, 0x40, - 0x85, - 0xB9, - 0x89, - 0xA9, - 0x61, - 0x16, - 0x80, - 0x6B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ProtectedSession)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetStatusFence(Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public ProtectedSessionStatus GetSessionStatus() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12ProtectedResourceSession -[Guid("6cd696f4-f289-40cc-8091-5a6c0a099c3d")] -[NativeTypeName("struct ID3D12ProtectedResourceSession : ID3D12ProtectedSession")] -[NativeInheritance("ID3D12ProtectedSession")] -public unsafe partial struct ID3D12ProtectedResourceSession -{ - public static ref readonly Guid IID_ID3D12ProtectedResourceSession - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF4, 0x96, 0xD6, 0x6C, - 0x89, 0xF2, - 0xCC, 0x40, - 0x80, - 0x91, - 0x5A, - 0x6C, - 0x0A, - 0x09, - 0x9C, - 0x3D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ProtectedResourceSession)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetStatusFence(Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public ProtectedSessionStatus GetSessionStatus() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public ProtectedResourceSessionDescription GetDesc() - { - ProtectedResourceSessionDescription result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), &result); - } -} - -/// -/// ID3D12Device4 -[Guid("e865df17-a9ee-46f9-a463-3098315aa2e5")] -[NativeTypeName("struct ID3D12Device4 : ID3D12Device3")] -[NativeInheritance("ID3D12Device3")] -public unsafe partial struct ID3D12Device4 -{ - public static ref readonly Guid IID_ID3D12Device4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x17, 0xDF, 0x65, 0xE8, - 0xEE, 0xA9, - 0xF9, 0x46, - 0xA4, - 0x63, - 0x30, - 0x98, - 0x31, - 0x5A, - 0xA2, - 0xE5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device4*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device4*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device4*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device4*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public uint GetNodeCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device4*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device4*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device4*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device4*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device4*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device4*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device4*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device4*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) - { - HeapProperties result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device4*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device4*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device4*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device4*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device4*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device4*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult SetStablePowerState(Bool32 Enable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device4*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public Luid GetAdapterLuid() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device4*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device4*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device4*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device4*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult CreateCommandList1(uint nodeMask, CommandListType type, CommandListFlags flags, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12Device4*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult CreateProtectedResourceSession(ProtectedResourceSessionDescription* pDesc, Guid* riid, void** ppSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult CreateCommittedResource1(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult CreateHeap1(HeapDescription* pDesc, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult CreateReservedResource1(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, pProtectedSession, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public ResourceAllocationInfo GetResourceAllocationInfo1(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12Device4*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); - } -} - -/// -/// ID3D12LifetimeOwner -[Guid("e667af9f-cd56-4f46-83ce-032e595d70a8")] -[NativeTypeName("struct ID3D12LifetimeOwner : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12LifetimeOwner -{ - public static ref readonly Guid IID_ID3D12LifetimeOwner - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9F, 0xAF, 0x67, 0xE6, - 0x56, 0xCD, - 0x46, 0x4F, - 0x83, - 0xCE, - 0x03, - 0x2E, - 0x59, - 0x5D, - 0x70, - 0xA8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12LifetimeOwner)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void LifetimeStateUpdated(LifetimeState NewState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12LifetimeOwner*)Unsafe.AsPointer(ref this), NewState); - } -} - -/// -/// ID3D12SwapChainAssistant -[Guid("f1df64b6-57fd-49cd-8807-c0eb88b45c8f")] -[NativeTypeName("struct ID3D12SwapChainAssistant : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12SwapChainAssistant -{ - public static ref readonly Guid IID_ID3D12SwapChainAssistant - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB6, 0x64, 0xDF, 0xF1, - 0xFD, 0x57, - 0xCD, 0x49, - 0x88, - 0x07, - 0xC0, - 0xEB, - 0x88, - 0xB4, - 0x5C, - 0x8F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SwapChainAssistant)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Luid GetLUID() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetSwapChainObject(Guid* riid, void** ppv) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this), riid, ppv); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetCurrentResourceAndCommandQueue(Guid* riidResource, void** ppvResource, Guid* riidQueue, void** ppvQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this), riidResource, ppvResource, riidQueue, ppvQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult InsertImplicitSync() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12LifetimeTracker -[Guid("3fd03d36-4eb1-424a-a582-494ecb8ba813")] -[NativeTypeName("struct ID3D12LifetimeTracker : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12LifetimeTracker -{ - public static ref readonly Guid IID_ID3D12LifetimeTracker - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x36, 0x3D, 0xD0, 0x3F, - 0xB1, 0x4E, - 0x4A, 0x42, - 0xA5, - 0x82, - 0x49, - 0x4E, - 0xCB, - 0x8B, - 0xA8, - 0x13 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12LifetimeTracker)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult DestroyOwnedObject(ID3D12DeviceChild* pObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), pObject); - } -} - -/// -/// ID3D12StateObject -[Guid("47016943-fca8-4594-93ea-af258b55346d")] -[NativeTypeName("struct ID3D12StateObject : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12StateObject -{ - public static ref readonly Guid IID_ID3D12StateObject - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x43, 0x69, 0x01, 0x47, - 0xA8, 0xFC, - 0x94, 0x45, - 0x93, - 0xEA, - 0xAF, - 0x25, - 0x8B, - 0x55, - 0x34, - 0x6D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12StateObject)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12StateObject*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12StateObject*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12StateObject*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12StateObject*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12StateObject*)Unsafe.AsPointer(ref this), Name); - } -} - -/// -/// ID3D12StateObjectProperties -[Guid("de5fa827-9bf9-4f26-89ff-d7f56fde3860")] -[NativeTypeName("struct ID3D12StateObjectProperties : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12StateObjectProperties -{ - public static ref readonly Guid IID_ID3D12StateObjectProperties - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x27, 0xA8, 0x5F, 0xDE, - 0xF9, 0x9B, - 0x26, 0x4F, - 0x89, - 0xFF, - 0xD7, - 0xF5, - 0x6F, - 0xDE, - 0x38, - 0x60 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12StateObjectProperties)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void* GetShaderIdentifier(ushort* pExportName) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this), pExportName); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public ulong GetShaderStackSize(ushort* pExportName) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this), pExportName); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ulong GetPipelineStackSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetPipelineStackSize(ulong PipelineStackSizeInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this), PipelineStackSizeInBytes); - } -} - -/// -/// ID3D12Device5 -[Guid("8b4f173b-2fea-4b80-8f58-4307191ab95d")] -[NativeTypeName("struct ID3D12Device5 : ID3D12Device4")] -[NativeInheritance("ID3D12Device4")] -public unsafe partial struct ID3D12Device5 -{ - public static ref readonly Guid IID_ID3D12Device5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3B, 0x17, 0x4F, 0x8B, - 0xEA, 0x2F, - 0x80, 0x4B, - 0x8F, - 0x58, - 0x43, - 0x07, - 0x19, - 0x1A, - 0xB9, - 0x5D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device5)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateCommandList1(uint nodeMask, CommandListType type, CommandListFlags flags, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device5*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateProtectedResourceSession(ProtectedResourceSessionDescription* pDesc, Guid* riid, void** ppSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateCommittedResource1(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateHeap1(HeapDescription* pDesc, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateReservedResource1(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, pProtectedSession, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ResourceAllocationInfo GetResourceAllocationInfo1(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device5*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device5*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device5*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device5*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device5*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public uint GetNodeCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device5*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device5*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device5*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device5*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device5*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device5*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device5*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device5*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) - { - HeapProperties result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device5*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device5*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device5*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device5*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device5*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device5*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult SetStablePowerState(Bool32 Enable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device5*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public Luid GetAdapterLuid() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12Device5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12Device5*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12Device5*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12Device5*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12Device5*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult CreateLifetimeTracker(ID3D12LifetimeOwner* pOwner, Guid* riid, void** ppvTracker) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void RemoveDevice() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12Device5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult EnumerateMetaCommands(uint* pNumMetaCommands, MetaCommandDescription* pDescs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult EnumerateMetaCommandParameters(Guid* CommandId, MetaCommandParameterStage Stage, uint* pTotalStructureSizeInBytes, uint* pParameterCount, MetaCommandParameterDescription* pParameterDescs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12Device5*)Unsafe.AsPointer(ref this), CommandId, Stage, pTotalStructureSizeInBytes, pParameterCount, pParameterDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult CreateMetaCommand(Guid* CommandId, uint NodeMask, void* pCreationParametersData, nuint CreationParametersDataSizeInBytes, Guid* riid, void** ppMetaCommand) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12Device5*)Unsafe.AsPointer(ref this), CommandId, NodeMask, pCreationParametersData, CreationParametersDataSizeInBytes, riid, ppMetaCommand); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult CreateStateObject(StateObjectDescription* pDesc, Guid* riid, void** ppStateObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void GetRaytracingAccelerationStructurePrebuildInfo(BuildRaytracingAccelerationStructureInputs* pDesc, RaytracingAccelerationStructurePrebuildInfo* pInfo) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, pInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public DriverMatchingIdentifierStatus CheckDriverMatchingIdentifier(SerializedDataType SerializedDataType, SerializedDataDriverMatchingIdentifier* pIdentifierToCheck) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12Device5*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); - } -} - -/// -/// ID3D12DeviceRemovedExtendedDataSettings -[Guid("82bc481c-6b9b-4030-aedb-7ee3d1df1e63")] -[NativeTypeName("struct ID3D12DeviceRemovedExtendedDataSettings : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings -{ - public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedDataSettings - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1C, 0x48, 0xBC, 0x82, - 0x9B, 0x6B, - 0x30, 0x40, - 0xAE, - 0xDB, - 0x7E, - 0xE3, - 0xD1, - 0xDF, - 0x1E, - 0x63 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedDataSettings)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetAutoBreadcrumbsEnablement(DredEnablement Enablement) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetPageFaultEnablement(DredEnablement Enablement) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetWatsonDumpEnablement(DredEnablement Enablement) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); - } -} - -/// -/// ID3D12DeviceRemovedExtendedDataSettings1 -[Guid("dbd5ae51-3317-4f0a-adf9-1d7cedcaae0b")] -[NativeTypeName("struct ID3D12DeviceRemovedExtendedDataSettings1 : ID3D12DeviceRemovedExtendedDataSettings")] -[NativeInheritance("ID3D12DeviceRemovedExtendedDataSettings")] -public unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings1 -{ - public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedDataSettings1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x51, 0xAE, 0xD5, 0xDB, - 0x17, 0x33, - 0x0A, 0x4F, - 0xAD, - 0xF9, - 0x1D, - 0x7C, - 0xED, - 0xCA, - 0xAE, - 0x0B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedDataSettings1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetAutoBreadcrumbsEnablement(DredEnablement Enablement) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetPageFaultEnablement(DredEnablement Enablement) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetWatsonDumpEnablement(DredEnablement Enablement) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetBreadcrumbContextEnablement(DredEnablement Enablement) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); - } -} - -/// -/// ID3D12DeviceRemovedExtendedData -[Guid("98931d33-5ae8-4791-aa3c-1a73a2934e71")] -[NativeTypeName("struct ID3D12DeviceRemovedExtendedData : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DeviceRemovedExtendedData -{ - public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedData - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x33, 0x1D, 0x93, 0x98, - 0xE8, 0x5A, - 0x91, 0x47, - 0xAA, - 0x3C, - 0x1A, - 0x73, - 0xA2, - 0x93, - 0x4E, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedData)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetAutoBreadcrumbsOutput(DredAutoBreadcrumbsOutput* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedData*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPageFaultAllocationOutput(DredPageFaultOutput* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedData*)Unsafe.AsPointer(ref this), pOutput); - } -} - -/// -/// ID3D12DeviceRemovedExtendedData1 -[Guid("9727a022-cf1d-4dda-9eba-effa653fc506")] -[NativeTypeName("struct ID3D12DeviceRemovedExtendedData1 : ID3D12DeviceRemovedExtendedData")] -[NativeInheritance("ID3D12DeviceRemovedExtendedData")] -public unsafe partial struct ID3D12DeviceRemovedExtendedData1 -{ - public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedData1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x22, 0xA0, 0x27, 0x97, - 0x1D, 0xCF, - 0xDA, 0x4D, - 0x9E, - 0xBA, - 0xEF, - 0xFA, - 0x65, - 0x3F, - 0xC5, - 0x06 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedData1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetAutoBreadcrumbsOutput(DredAutoBreadcrumbsOutput* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPageFaultAllocationOutput(DredPageFaultOutput* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetAutoBreadcrumbsOutput1(DredAutoBreadcrumbsOutput1* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPageFaultAllocationOutput1(DredPageFaultOutput1* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); - } -} - -/// -/// ID3D12DeviceRemovedExtendedData2 -[Guid("67fc5816-e4ca-4915-bf18-42541272da54")] -[NativeTypeName("struct ID3D12DeviceRemovedExtendedData2 : ID3D12DeviceRemovedExtendedData1")] -[NativeInheritance("ID3D12DeviceRemovedExtendedData1")] -public unsafe partial struct ID3D12DeviceRemovedExtendedData2 -{ - public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedData2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x16, 0x58, 0xFC, 0x67, - 0xCA, 0xE4, - 0x15, 0x49, - 0xBF, - 0x18, - 0x42, - 0x54, - 0x12, - 0x72, - 0xDA, - 0x54 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedData2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetAutoBreadcrumbsOutput1(DredAutoBreadcrumbsOutput1* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPageFaultAllocationOutput1(DredPageFaultOutput1* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetAutoBreadcrumbsOutput(DredAutoBreadcrumbsOutput* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPageFaultAllocationOutput(DredPageFaultOutput* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetPageFaultAllocationOutput2(DredPageFaultOutput2* pOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public DredDeviceState GetDeviceState() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12Device6 -[Guid("c70b221b-40e4-4a17-89af-025a0727a6dc")] -[NativeTypeName("struct ID3D12Device6 : ID3D12Device5")] -[NativeInheritance("ID3D12Device5")] -public unsafe partial struct ID3D12Device6 -{ - public static ref readonly Guid IID_ID3D12Device6 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1B, 0x22, 0x0B, 0xC7, - 0xE4, 0x40, - 0x17, 0x4A, - 0x89, - 0xAF, - 0x02, - 0x5A, - 0x07, - 0x27, - 0xA6, - 0xDC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device6)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateLifetimeTracker(ID3D12LifetimeOwner* pOwner, Guid* riid, void** ppvTracker) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void RemoveDevice() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult EnumerateMetaCommands(uint* pNumMetaCommands, MetaCommandDescription* pDescs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult EnumerateMetaCommandParameters(Guid* CommandId, MetaCommandParameterStage Stage, uint* pTotalStructureSizeInBytes, uint* pParameterCount, MetaCommandParameterDescription* pParameterDescs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device6*)Unsafe.AsPointer(ref this), CommandId, Stage, pTotalStructureSizeInBytes, pParameterCount, pParameterDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateMetaCommand(Guid* CommandId, uint NodeMask, void* pCreationParametersData, nuint CreationParametersDataSizeInBytes, Guid* riid, void** ppMetaCommand) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device6*)Unsafe.AsPointer(ref this), CommandId, NodeMask, pCreationParametersData, CreationParametersDataSizeInBytes, riid, ppMetaCommand); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateStateObject(StateObjectDescription* pDesc, Guid* riid, void** ppStateObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void GetRaytracingAccelerationStructurePrebuildInfo(BuildRaytracingAccelerationStructureInputs* pDesc, RaytracingAccelerationStructurePrebuildInfo* pInfo) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, pInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public DriverMatchingIdentifierStatus CheckDriverMatchingIdentifier(SerializedDataType SerializedDataType, SerializedDataDriverMatchingIdentifier* pIdentifierToCheck) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device6*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateCommandList1(uint nodeMask, CommandListType type, CommandListFlags flags, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device6*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateProtectedResourceSession(ProtectedResourceSessionDescription* pDesc, Guid* riid, void** ppSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateCommittedResource1(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateHeap1(HeapDescription* pDesc, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateReservedResource1(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, pProtectedSession, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public ResourceAllocationInfo GetResourceAllocationInfo1(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device6*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device6*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device6*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device6*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device6*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public uint GetNodeCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device6*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device6*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device6*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device6*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device6*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device6*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device6*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device6*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) - { - HeapProperties result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device6*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device6*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device6*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12Device6*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12Device6*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12Device6*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12Device6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult SetStablePowerState(Bool32 Enable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12Device6*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public Luid GetAdapterLuid() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12Device6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12Device6*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12Device6*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12Device6*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12Device6*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult SetBackgroundProcessingMode(BackgroundProcessingMode Mode, MeasurementsAction MeasurementsAction, IntPtr hEventToSignalUponCompletion, Bool32* pbFurtherMeasurementsDesired) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12Device6*)Unsafe.AsPointer(ref this), Mode, MeasurementsAction, hEventToSignalUponCompletion, pbFurtherMeasurementsDesired); - } -} - -/// -/// ID3D12ProtectedResourceSession1 -[Guid("d6f12dd6-76fb-406e-8961-4296eefc0409")] -[NativeTypeName("struct ID3D12ProtectedResourceSession1 : ID3D12ProtectedResourceSession")] -[NativeInheritance("ID3D12ProtectedResourceSession")] -public unsafe partial struct ID3D12ProtectedResourceSession1 -{ - public static ref readonly Guid IID_ID3D12ProtectedResourceSession1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD6, 0x2D, 0xF1, 0xD6, - 0xFB, 0x76, - 0x6E, 0x40, - 0x89, - 0x61, - 0x42, - 0x96, - 0xEE, - 0xFC, - 0x04, - 0x09 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ProtectedResourceSession1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public ProtectedResourceSessionDescription GetDesc() - { - ProtectedResourceSessionDescription result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetStatusFence(Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ProtectedSessionStatus GetSessionStatus() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public ProtectedResourceSessionDescription1 GetDesc1() - { - ProtectedResourceSessionDescription1 result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), &result); - } -} - -/// -/// ID3D12Device7 -[Guid("5c014b53-68a1-4b9b-8bd1-dd6046b9358b")] -[NativeTypeName("struct ID3D12Device7 : ID3D12Device6")] -[NativeInheritance("ID3D12Device6")] -public unsafe partial struct ID3D12Device7 -{ - public static ref readonly Guid IID_ID3D12Device7 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x53, 0x4B, 0x01, 0x5C, - 0xA1, 0x68, - 0x9B, 0x4B, - 0x8B, - 0xD1, - 0xDD, - 0x60, - 0x46, - 0xB9, - 0x35, - 0x8B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device7)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetBackgroundProcessingMode(BackgroundProcessingMode Mode, MeasurementsAction MeasurementsAction, IntPtr hEventToSignalUponCompletion, Bool32* pbFurtherMeasurementsDesired) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device7*)Unsafe.AsPointer(ref this), Mode, MeasurementsAction, hEventToSignalUponCompletion, pbFurtherMeasurementsDesired); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateLifetimeTracker(ID3D12LifetimeOwner* pOwner, Guid* riid, void** ppvTracker) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void RemoveDevice() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device7*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult EnumerateMetaCommands(uint* pNumMetaCommands, MetaCommandDescription* pDescs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult EnumerateMetaCommandParameters(Guid* CommandId, MetaCommandParameterStage Stage, uint* pTotalStructureSizeInBytes, uint* pParameterCount, MetaCommandParameterDescription* pParameterDescs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device7*)Unsafe.AsPointer(ref this), CommandId, Stage, pTotalStructureSizeInBytes, pParameterCount, pParameterDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateMetaCommand(Guid* CommandId, uint NodeMask, void* pCreationParametersData, nuint CreationParametersDataSizeInBytes, Guid* riid, void** ppMetaCommand) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device7*)Unsafe.AsPointer(ref this), CommandId, NodeMask, pCreationParametersData, CreationParametersDataSizeInBytes, riid, ppMetaCommand); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateStateObject(StateObjectDescription* pDesc, Guid* riid, void** ppStateObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GetRaytracingAccelerationStructurePrebuildInfo(BuildRaytracingAccelerationStructureInputs* pDesc, RaytracingAccelerationStructurePrebuildInfo* pInfo) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, pInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public DriverMatchingIdentifierStatus CheckDriverMatchingIdentifier(SerializedDataType SerializedDataType, SerializedDataDriverMatchingIdentifier* pIdentifierToCheck) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device7*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateCommandList1(uint nodeMask, CommandListType type, CommandListFlags flags, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device7*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateProtectedResourceSession(ProtectedResourceSessionDescription* pDesc, Guid* riid, void** ppSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateCommittedResource1(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateHeap1(HeapDescription* pDesc, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateReservedResource1(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, pProtectedSession, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public ResourceAllocationInfo GetResourceAllocationInfo1(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device7*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device7*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device7*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device7*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device7*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public uint GetNodeCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device7*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device7*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device7*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device7*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device7*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device7*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device7*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device7*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device7*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) - { - HeapProperties result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device7*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device7*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12Device7*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12Device7*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12Device7*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12Device7*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12Device7*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult SetStablePowerState(Bool32 Enable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12Device7*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public Luid GetAdapterLuid() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12Device7*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12Device7*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12Device7*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12Device7*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12Device7*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HResult AddToStateObject(StateObjectDescription* pAddition, ID3D12StateObject* pStateObjectToGrowFrom, Guid* riid, void** ppNewStateObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pAddition, pStateObjectToGrowFrom, riid, ppNewStateObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HResult CreateProtectedResourceSession1(ProtectedResourceSessionDescription1* pDesc, Guid* riid, void** ppSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } -} - -/// -/// ID3D12Device8 -[Guid("9218e6bb-f944-4f7e-a75c-b1b2c7b701f3")] -[NativeTypeName("struct ID3D12Device8 : ID3D12Device7")] -[NativeInheritance("ID3D12Device7")] -public unsafe partial struct ID3D12Device8 -{ - public static ref readonly Guid IID_ID3D12Device8 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBB, 0xE6, 0x18, 0x92, - 0x44, 0xF9, - 0x7E, 0x4F, - 0xA7, - 0x5C, - 0xB1, - 0xB2, - 0xC7, - 0xB7, - 0x01, - 0xF3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device8)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult AddToStateObject(StateObjectDescription* pAddition, ID3D12StateObject* pStateObjectToGrowFrom, Guid* riid, void** ppNewStateObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pAddition, pStateObjectToGrowFrom, riid, ppNewStateObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateProtectedResourceSession1(ProtectedResourceSessionDescription1* pDesc, Guid* riid, void** ppSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetBackgroundProcessingMode(BackgroundProcessingMode Mode, MeasurementsAction MeasurementsAction, IntPtr hEventToSignalUponCompletion, Bool32* pbFurtherMeasurementsDesired) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device8*)Unsafe.AsPointer(ref this), Mode, MeasurementsAction, hEventToSignalUponCompletion, pbFurtherMeasurementsDesired); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateLifetimeTracker(ID3D12LifetimeOwner* pOwner, Guid* riid, void** ppvTracker) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void RemoveDevice() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device8*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult EnumerateMetaCommands(uint* pNumMetaCommands, MetaCommandDescription* pDescs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult EnumerateMetaCommandParameters(Guid* CommandId, MetaCommandParameterStage Stage, uint* pTotalStructureSizeInBytes, uint* pParameterCount, MetaCommandParameterDescription* pParameterDescs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device8*)Unsafe.AsPointer(ref this), CommandId, Stage, pTotalStructureSizeInBytes, pParameterCount, pParameterDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateMetaCommand(Guid* CommandId, uint NodeMask, void* pCreationParametersData, nuint CreationParametersDataSizeInBytes, Guid* riid, void** ppMetaCommand) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device8*)Unsafe.AsPointer(ref this), CommandId, NodeMask, pCreationParametersData, CreationParametersDataSizeInBytes, riid, ppMetaCommand); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateStateObject(StateObjectDescription* pDesc, Guid* riid, void** ppStateObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void GetRaytracingAccelerationStructurePrebuildInfo(BuildRaytracingAccelerationStructureInputs* pDesc, RaytracingAccelerationStructurePrebuildInfo* pInfo) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, pInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public DriverMatchingIdentifierStatus CheckDriverMatchingIdentifier(SerializedDataType SerializedDataType, SerializedDataDriverMatchingIdentifier* pIdentifierToCheck) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device8*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateCommandList1(uint nodeMask, CommandListType type, CommandListFlags flags, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device8*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateProtectedResourceSession(ProtectedResourceSessionDescription* pDesc, Guid* riid, void** ppSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateCommittedResource1(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateHeap1(HeapDescription* pDesc, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateReservedResource1(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, pProtectedSession, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public ResourceAllocationInfo GetResourceAllocationInfo1(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device8*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device8*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device8*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device8*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device8*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public uint GetNodeCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device8*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device8*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device8*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device8*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device8*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device8*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device8*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device8*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device8*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) - { - HeapProperties result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device8*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12Device8*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12Device8*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12Device8*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12Device8*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12Device8*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12Device8*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult SetStablePowerState(Bool32 Enable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12Device8*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public Luid GetAdapterLuid() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12Device8*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12Device8*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12Device8*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12Device8*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12Device8*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public ResourceAllocationInfo GetResourceAllocationInfo2(uint visibleMask, uint numResourceDescs, ResourceDescription1* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D12Device8*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public HResult CreateCommittedResource2(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription1* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HResult CreatePlacedResource1(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription1* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void CreateSamplerFeedbackUnorderedAccessView(ID3D12Resource* pTargetedResource, ID3D12Resource* pFeedbackResource, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pTargetedResource, pFeedbackResource, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void GetCopyableFootprints1(ResourceDescription1* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); - } -} - -/// -/// ID3D12Resource1 -[Guid("9d5e227a-4430-4161-88b3-3eca6bb16e19")] -[NativeTypeName("struct ID3D12Resource1 : ID3D12Resource")] -[NativeInheritance("ID3D12Resource")] -public unsafe partial struct ID3D12Resource1 -{ - public static ref readonly Guid IID_ID3D12Resource1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7A, 0x22, 0x5E, 0x9D, - 0x30, 0x44, - 0x61, 0x41, - 0x88, - 0xB3, - 0x3E, - 0xCA, - 0x6B, - 0xB1, - 0x6E, - 0x19 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Resource1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Map(uint Subresource, Range* pReadRange, void** ppData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), Subresource, pReadRange, ppData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void Unmap(uint Subresource, Range* pWrittenRange) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), Subresource, pWrittenRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ResourceDescription GetDesc() - { - ResourceDescription result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ulong GetGPUVirtualAddress() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Resource1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult WriteToSubresource(uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, uint SrcSubresource, Box* pSrcBox) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, SrcSubresource, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetHeapProperties(HeapProperties* pHeapProperties, HeapFlags* pHeapFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), pHeapProperties, pHeapFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetProtectedResourceSession(Guid* riid, void** ppProtectedSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), riid, ppProtectedSession); - } -} - -/// -/// ID3D12Resource2 -[Guid("be36ec3b-ea85-4aeb-a45a-e9d76404a495")] -[NativeTypeName("struct ID3D12Resource2 : ID3D12Resource1")] -[NativeInheritance("ID3D12Resource1")] -public unsafe partial struct ID3D12Resource2 -{ - public static ref readonly Guid IID_ID3D12Resource2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3B, 0xEC, 0x36, 0xBE, - 0x85, 0xEA, - 0xEB, 0x4A, - 0xA4, - 0x5A, - 0xE9, - 0xD7, - 0x64, - 0x04, - 0xA4, - 0x95 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Resource2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetProtectedResourceSession(Guid* riid, void** ppProtectedSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), riid, ppProtectedSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Map(uint Subresource, Range* pReadRange, void** ppData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), Subresource, pReadRange, ppData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void Unmap(uint Subresource, Range* pWrittenRange) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), Subresource, pWrittenRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ResourceDescription GetDesc() - { - ResourceDescription result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public ulong GetGPUVirtualAddress() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Resource2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult WriteToSubresource(uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, uint SrcSubresource, Box* pSrcBox) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, SrcSubresource, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetHeapProperties(HeapProperties* pHeapProperties, HeapFlags* pHeapFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), pHeapProperties, pHeapFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public ResourceDescription1 GetDesc1() - { - ResourceDescription1 result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), &result); - } -} - -/// -/// ID3D12Heap1 -[Guid("572f7389-2168-49e3-9693-d6df5871bf6d")] -[NativeTypeName("struct ID3D12Heap1 : ID3D12Heap")] -[NativeInheritance("ID3D12Heap")] -public unsafe partial struct ID3D12Heap1 -{ - public static ref readonly Guid IID_ID3D12Heap1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x89, 0x73, 0x2F, 0x57, - 0x68, 0x21, - 0xE3, 0x49, - 0x96, - 0x93, - 0xD6, - 0xDF, - 0x58, - 0x71, - 0xBF, - 0x6D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Heap1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HeapDescription GetDesc() - { - HeapDescription result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), &result); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetProtectedResourceSession(Guid* riid, void** ppProtectedSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), riid, ppProtectedSession); - } -} - -/// -/// ID3D12GraphicsCommandList3 -[Guid("6fda83a7-b84c-4e38-9ac8-c7bd22016b3d")] -[NativeTypeName("struct ID3D12GraphicsCommandList3 : ID3D12GraphicsCommandList2")] -[NativeInheritance("ID3D12GraphicsCommandList2")] -public unsafe partial struct ID3D12GraphicsCommandList3 -{ - public static ref readonly Guid IID_ID3D12GraphicsCommandList3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA7, 0x83, 0xDA, 0x6F, - 0x4C, 0xB8, - 0x38, 0x4E, - 0x9A, - 0xC8, - 0xC7, - 0xBD, - 0x22, - 0x01, - 0x6B, - 0x3D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void WriteBufferImmediate(uint Count, WriteBufferImmediateParameter* pParams, WriteBufferImmediateMode* pModes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void AtomicCopyBufferUINT(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void AtomicCopyBufferUINT64(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void OMSetDepthBounds(float Min, float Max) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Min, Max); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumSamplesPerPixel, NumPixels, pSamplePositions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void ResolveSubresourceRegion(ID3D12Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, ID3D12Resource* pSrcResource, uint SrcSubresource, RawRect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, pSrcResource, SrcSubresource, pSrcRect, Format, ResolveMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void SetViewInstanceMask(uint Mask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Mask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult Close() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void RSSetViewports(uint NumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void RSSetScissorRects(uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void OMSetBlendFactor(float* BlendFactor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), BlendFactor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), StencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void IASetIndexBuffer(IndexBufferView* pView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void SetMarker(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void BeginEvent(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void EndEvent() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public new CommandListType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } -} - -/// -/// ID3D12MetaCommand -[Guid("dbb84c27-36ce-4fc9-b801-f048c46ac570")] -[NativeTypeName("struct ID3D12MetaCommand : ID3D12Pageable")] -[NativeInheritance("ID3D12Pageable")] -public unsafe partial struct ID3D12MetaCommand -{ - public static ref readonly Guid IID_ID3D12MetaCommand - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x27, 0x4C, 0xB8, 0xDB, - 0xCE, 0x36, - 0xC9, 0x4F, - 0xB8, - 0x01, - 0xF0, - 0x48, - 0xC4, - 0x6A, - 0xC5, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12MetaCommand)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ulong GetRequiredParameterResourceSize(MetaCommandParameterStage Stage, uint ParameterIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), Stage, ParameterIndex); - } -} - -/// -/// ID3D12GraphicsCommandList4 -[Guid("8754318e-d3a9-4541-98cf-645b50dc4874")] -[NativeTypeName("struct ID3D12GraphicsCommandList4 : ID3D12GraphicsCommandList3")] -[NativeInheritance("ID3D12GraphicsCommandList3")] -public unsafe partial struct ID3D12GraphicsCommandList4 -{ - public static ref readonly Guid IID_ID3D12GraphicsCommandList4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8E, 0x31, 0x54, 0x87, - 0xA9, 0xD3, - 0x41, 0x45, - 0x98, - 0xCF, - 0x64, - 0x5B, - 0x50, - 0xDC, - 0x48, - 0x74 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void WriteBufferImmediate(uint Count, WriteBufferImmediateParameter* pParams, WriteBufferImmediateMode* pModes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void AtomicCopyBufferUINT(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void AtomicCopyBufferUINT64(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void OMSetDepthBounds(float Min, float Max) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Min, Max); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumSamplesPerPixel, NumPixels, pSamplePositions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void ResolveSubresourceRegion(ID3D12Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, ID3D12Resource* pSrcResource, uint SrcSubresource, RawRect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, pSrcResource, SrcSubresource, pSrcRect, Format, ResolveMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void SetViewInstanceMask(uint Mask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Mask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult Close() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void RSSetViewports(uint NumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void RSSetScissorRects(uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void OMSetBlendFactor(float* BlendFactor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), BlendFactor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), StencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void IASetIndexBuffer(IndexBufferView* pView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void SetMarker(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void BeginEvent(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void EndEvent() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public new CommandListType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void BeginRenderPass(uint NumRenderTargets, RenderPassRenderTargetDescription* pRenderTargets, RenderPassDepthStencilDescription* pDepthStencil, RenderPassFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumRenderTargets, pRenderTargets, pDepthStencil, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void EndRenderPass() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void InitializeMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pInitializationParametersData, nuint InitializationParametersDataSizeInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pMetaCommand, pInitializationParametersData, InitializationParametersDataSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void ExecuteMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pExecutionParametersData, nuint ExecutionParametersDataSizeInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pMetaCommand, pExecutionParametersData, ExecutionParametersDataSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void BuildRaytracingAccelerationStructure(BuildRaytracingAccelerationStructureDescription* pDesc, uint NumPostbuildInfoDescs, RaytracingAccelerationStructurePostbuildInfoDescription* pPostbuildInfoDescs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDesc, NumPostbuildInfoDescs, pPostbuildInfoDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public void EmitRaytracingAccelerationStructurePostbuildInfo(RaytracingAccelerationStructurePostbuildInfoDescription* pDesc, uint NumSourceAccelerationStructures, ulong* pSourceAccelerationStructureData) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDesc, NumSourceAccelerationStructures, pSourceAccelerationStructureData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public void CopyRaytracingAccelerationStructure(ulong DestAccelerationStructureData, ulong SourceAccelerationStructureData, RaytracingAccelerationStructureCopyMode Mode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), DestAccelerationStructureData, SourceAccelerationStructureData, Mode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public void SetPipelineState1(ID3D12StateObject* pStateObject) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pStateObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public void DispatchRays(DispatchRaysDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// ID3D12ShaderCacheSession -[Guid("28e2495d-0f64-4ae4-a6ec-129255dc49a8")] -[NativeTypeName("struct ID3D12ShaderCacheSession : ID3D12DeviceChild")] -[NativeInheritance("ID3D12DeviceChild")] -public unsafe partial struct ID3D12ShaderCacheSession -{ - public static ref readonly Guid IID_ID3D12ShaderCacheSession - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5D, 0x49, 0xE2, 0x28, - 0x64, 0x0F, - 0xE4, 0x4A, - 0xA6, - 0xEC, - 0x12, - 0x92, - 0x55, - 0xDC, - 0x49, - 0xA8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderCacheSession)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult FindValue(void* pKey, uint KeySize, void* pValue, uint* pValueSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), pKey, KeySize, pValue, pValueSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult StoreValue(void* pKey, uint KeySize, void* pValue, uint ValueSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), pKey, KeySize, pValue, ValueSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void SetDeleteOnDestroy() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public ShaderCacheSessionDescription GetDesc() - { - ShaderCacheSessionDescription result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), &result); - } -} - -/// -/// ID3D12Device9 -[Guid("4c80e962-f032-4f60-bc9e-ebc2cfa1d83c")] -[NativeTypeName("struct ID3D12Device9 : ID3D12Device8")] -[NativeInheritance("ID3D12Device8")] -public unsafe partial struct ID3D12Device9 -{ - public static ref readonly Guid IID_ID3D12Device9 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x62, 0xE9, 0x80, 0x4C, - 0x32, 0xF0, - 0x60, 0x4F, - 0xBC, - 0x9E, - 0xEB, - 0xC2, - 0xCF, - 0xA1, - 0xD8, - 0x3C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device9)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public ResourceAllocationInfo GetResourceAllocationInfo2(uint visibleMask, uint numResourceDescs, ResourceDescription1* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device9*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateCommittedResource2(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription1* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreatePlacedResource1(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription1* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void CreateSamplerFeedbackUnorderedAccessView(ID3D12Resource* pTargetedResource, ID3D12Resource* pFeedbackResource, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pTargetedResource, pFeedbackResource, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetCopyableFootprints1(ResourceDescription1* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult AddToStateObject(StateObjectDescription* pAddition, ID3D12StateObject* pStateObjectToGrowFrom, Guid* riid, void** ppNewStateObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pAddition, pStateObjectToGrowFrom, riid, ppNewStateObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateProtectedResourceSession1(ProtectedResourceSessionDescription1* pDesc, Guid* riid, void** ppSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetBackgroundProcessingMode(BackgroundProcessingMode Mode, MeasurementsAction MeasurementsAction, IntPtr hEventToSignalUponCompletion, Bool32* pbFurtherMeasurementsDesired) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Mode, MeasurementsAction, hEventToSignalUponCompletion, pbFurtherMeasurementsDesired); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateLifetimeTracker(ID3D12LifetimeOwner* pOwner, Guid* riid, void** ppvTracker) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void RemoveDevice() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device9*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult EnumerateMetaCommands(uint* pNumMetaCommands, MetaCommandDescription* pDescs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult EnumerateMetaCommandParameters(Guid* CommandId, MetaCommandParameterStage Stage, uint* pTotalStructureSizeInBytes, uint* pParameterCount, MetaCommandParameterDescription* pParameterDescs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device9*)Unsafe.AsPointer(ref this), CommandId, Stage, pTotalStructureSizeInBytes, pParameterCount, pParameterDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateMetaCommand(Guid* CommandId, uint NodeMask, void* pCreationParametersData, nuint CreationParametersDataSizeInBytes, Guid* riid, void** ppMetaCommand) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device9*)Unsafe.AsPointer(ref this), CommandId, NodeMask, pCreationParametersData, CreationParametersDataSizeInBytes, riid, ppMetaCommand); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateStateObject(StateObjectDescription* pDesc, Guid* riid, void** ppStateObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void GetRaytracingAccelerationStructurePrebuildInfo(BuildRaytracingAccelerationStructureInputs* pDesc, RaytracingAccelerationStructurePrebuildInfo* pInfo) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, pInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public DriverMatchingIdentifierStatus CheckDriverMatchingIdentifier(SerializedDataType SerializedDataType, SerializedDataDriverMatchingIdentifier* pIdentifierToCheck) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device9*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateCommandList1(uint nodeMask, CommandListType type, CommandListFlags flags, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device9*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateProtectedResourceSession(ProtectedResourceSessionDescription* pDesc, Guid* riid, void** ppSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateCommittedResource1(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateHeap1(HeapDescription* pDesc, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateReservedResource1(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, pProtectedSession, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public ResourceAllocationInfo GetResourceAllocationInfo1(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device9*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device9*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device9*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device9*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public uint GetNodeCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device9*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device9*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device9*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device9*)Unsafe.AsPointer(ref this), DescriptorHeapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device9*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device9*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device9*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) - { - ResourceAllocationInfo result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device9*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) - { - HeapProperties result; - return *((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12Device9*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12Device9*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12Device9*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12Device9*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12Device9*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult GetDeviceRemovedReason() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12Device9*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult SetStablePowerState(Bool32 Enable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public Luid GetAdapterLuid() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D12Device9*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D12Device9*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D12Device9*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D12Device9*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public HResult CreateShaderCacheSession(ShaderCacheSessionDescription* pDesc, Guid* riid, void** ppvSession) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppvSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public HResult ShaderCacheControl(ShaderCacheKindFlags Kinds, ShaderCacheControlFlags Control) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Kinds, Control); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public HResult CreateCommandQueue1(CommandQueueDescription* pDesc, Guid* CreatorID, Guid* riid, void** ppCommandQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, CreatorID, riid, ppCommandQueue); - } -} - -/// -/// ID3D12Tools -[Guid("7071e1f0-e84b-4b33-974f-12fa49de65c5")] -[NativeTypeName("struct ID3D12Tools : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Tools -{ - public static ref readonly Guid IID_ID3D12Tools - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF0, 0xE1, 0x71, 0x70, - 0x4B, 0xE8, - 0x33, 0x4B, - 0x97, - 0x4F, - 0x12, - 0xFA, - 0x49, - 0xDE, - 0x65, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Tools)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void EnableShaderInstrumentation(Bool32 bEnable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Tools*)Unsafe.AsPointer(ref this), bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public Bool32 ShaderInstrumentationEnabled() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Tools*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12Debug -[Guid("344488b7-6846-474b-b989-f027448245e0")] -[NativeTypeName("struct ID3D12Debug : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Debug -{ - public static ref readonly Guid IID_ID3D12Debug - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB7, 0x88, 0x44, 0x34, - 0x46, 0x68, - 0x4B, 0x47, - 0xB9, - 0x89, - 0xF0, - 0x27, - 0x44, - 0x82, - 0x45, - 0xE0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void EnableDebugLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Debug*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12Debug1 -[Guid("affaa4ca-63fe-4d8e-b8ad-159000af4304")] -[NativeTypeName("struct ID3D12Debug1 : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Debug1 -{ - public static ref readonly Guid IID_ID3D12Debug1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCA, 0xA4, 0xFA, 0xAF, - 0xFE, 0x63, - 0x8E, 0x4D, - 0xB8, - 0xAD, - 0x15, - 0x90, - 0x00, - 0xAF, - 0x43, - 0x04 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void EnableDebugLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Debug1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEnableGPUBasedValidation(Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Debug1*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetEnableSynchronizedCommandQueueValidation(Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Debug1*)Unsafe.AsPointer(ref this), Enable); - } -} - -/// -/// ID3D12Debug2 -[Guid("93a665c4-a3b2-4e5d-b692-a26ae14e3374")] -[NativeTypeName("struct ID3D12Debug2 : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12Debug2 -{ - public static ref readonly Guid IID_ID3D12Debug2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC4, 0x65, 0xA6, 0x93, - 0xB2, 0xA3, - 0x5D, 0x4E, - 0xB6, - 0x92, - 0xA2, - 0x6A, - 0xE1, - 0x4E, - 0x33, - 0x74 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetGPUBasedValidationFlags(GpuBasedValidationFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Debug2*)Unsafe.AsPointer(ref this), Flags); - } -} - -/// -/// ID3D12Debug3 -[Guid("5cf4e58f-f671-4ff1-a542-3686e3d153d1")] -[NativeTypeName("struct ID3D12Debug3 : ID3D12Debug")] -[NativeInheritance("ID3D12Debug")] -public unsafe partial struct ID3D12Debug3 -{ - public static ref readonly Guid IID_ID3D12Debug3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8F, 0xE5, 0xF4, 0x5C, - 0x71, 0xF6, - 0xF1, 0x4F, - 0xA5, - 0x42, - 0x36, - 0x86, - 0xE3, - 0xD1, - 0x53, - 0xD1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void EnableDebugLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Debug3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEnableGPUBasedValidation(Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Debug3*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetEnableSynchronizedCommandQueueValidation(Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Debug3*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetGPUBasedValidationFlags(GpuBasedValidationFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Debug3*)Unsafe.AsPointer(ref this), Flags); - } -} - -/// -/// ID3D12Debug4 -[Guid("014b816e-9ec5-4a2f-a845-ffbe441ce13a")] -[NativeTypeName("struct ID3D12Debug4 : ID3D12Debug3")] -[NativeInheritance("ID3D12Debug3")] -public unsafe partial struct ID3D12Debug4 -{ - public static ref readonly Guid IID_ID3D12Debug4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6E, 0x81, 0x4B, 0x01, - 0xC5, 0x9E, - 0x2F, 0x4A, - 0xA8, - 0x45, - 0xFF, - 0xBE, - 0x44, - 0x1C, - 0xE1, - 0x3A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void SetEnableGPUBasedValidation(Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Debug4*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEnableSynchronizedCommandQueueValidation(Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Debug4*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetGPUBasedValidationFlags(GpuBasedValidationFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Debug4*)Unsafe.AsPointer(ref this), Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void EnableDebugLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Debug4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void DisableDebugLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Debug4*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12Debug5 -[Guid("548d6b12-09fa-40e0-9069-5dcd589a52c9")] -[NativeTypeName("struct ID3D12Debug5 : ID3D12Debug4")] -[NativeInheritance("ID3D12Debug4")] -public unsafe partial struct ID3D12Debug5 -{ - public static ref readonly Guid IID_ID3D12Debug5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x12, 0x6B, 0x8D, 0x54, - 0xFA, 0x09, - 0xE0, 0x40, - 0x90, - 0x69, - 0x5D, - 0xCD, - 0x58, - 0x9A, - 0x52, - 0xC9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug5)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void DisableDebugLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Debug5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetEnableGPUBasedValidation(Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Debug5*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetEnableSynchronizedCommandQueueValidation(Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Debug5*)Unsafe.AsPointer(ref this), Enable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void SetGPUBasedValidationFlags(GpuBasedValidationFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Debug5*)Unsafe.AsPointer(ref this), Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void EnableDebugLayer() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Debug5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void SetEnableAutoName(Bool32 Enable) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Debug5*)Unsafe.AsPointer(ref this), Enable); - } -} - -/// -/// ID3D12DebugDevice1 -[Guid("a9b71770-d099-4a65-a698-3dee10020f88")] -[NativeTypeName("struct ID3D12DebugDevice1 : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugDevice1 -{ - public static ref readonly Guid IID_ID3D12DebugDevice1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x70, 0x17, 0xB7, 0xA9, - 0x99, 0xD0, - 0x65, 0x4A, - 0xA6, - 0x98, - 0x3D, - 0xEE, - 0x10, - 0x02, - 0x0F, - 0x88 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugDevice1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetDebugParameter(DebugDeviceParameterType Type, void* pData, uint DataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugDevice1*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetDebugParameter(DebugDeviceParameterType Type, void* pData, uint DataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DebugDevice1*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult ReportLiveDeviceObjects(ReportLiveDeviceObjectFlags Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DebugDevice1*)Unsafe.AsPointer(ref this), Flags); - } -} - -/// -/// ID3D12DebugDevice -[Guid("3febd6dd-4973-4787-8194-e45f9e28923e")] -[NativeTypeName("struct ID3D12DebugDevice : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugDevice -{ - public static ref readonly Guid IID_ID3D12DebugDevice - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDD, 0xD6, 0xEB, 0x3F, - 0x73, 0x49, - 0x87, 0x47, - 0x81, - 0x94, - 0xE4, - 0x5F, - 0x9E, - 0x28, - 0x92, - 0x3E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugDevice)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetFeatureMask(DebugFeature Mask) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugDevice*)Unsafe.AsPointer(ref this), Mask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public DebugFeature GetFeatureMask() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DebugDevice*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult ReportLiveDeviceObjects(ReportLiveDeviceObjectFlags Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DebugDevice*)Unsafe.AsPointer(ref this), Flags); - } -} - -/// -/// ID3D12DebugDevice2 -[Guid("60eccbc1-378d-4df1-894c-f8ac5ce4d7dd")] -[NativeTypeName("struct ID3D12DebugDevice2 : ID3D12DebugDevice")] -[NativeInheritance("ID3D12DebugDevice")] -public unsafe partial struct ID3D12DebugDevice2 -{ - public static ref readonly Guid IID_ID3D12DebugDevice2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC1, 0xCB, 0xEC, 0x60, - 0x8D, 0x37, - 0xF1, 0x4D, - 0x89, - 0x4C, - 0xF8, - 0xAC, - 0x5C, - 0xE4, - 0xD7, - 0xDD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugDevice2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetFeatureMask(DebugFeature Mask) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), Mask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public DebugFeature GetFeatureMask() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DebugDevice2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult ReportLiveDeviceObjects(ReportLiveDeviceObjectFlags Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetDebugParameter(DebugDeviceParameterType Type, void* pData, uint DataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDebugParameter(DebugDeviceParameterType Type, void* pData, uint DataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } -} - -/// -/// ID3D12DebugCommandQueue -[Guid("09e0bf36-54ac-484f-8847-4baeeab6053a")] -[NativeTypeName("struct ID3D12DebugCommandQueue : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugCommandQueue -{ - public static ref readonly Guid IID_ID3D12DebugCommandQueue - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x36, 0xBF, 0xE0, 0x09, - 0xAC, 0x54, - 0x4F, 0x48, - 0x88, - 0x47, - 0x4B, - 0xAE, - 0xEA, - 0xB6, - 0x05, - 0x3A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandQueue)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Bool32 AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugCommandQueue*)Unsafe.AsPointer(ref this), pResource, Subresource, State); - } -} - -/// -/// ID3D12DebugCommandList1 -[Guid("102ca951-311b-4b01-b11f-ecb83e061b37")] -[NativeTypeName("struct ID3D12DebugCommandList1 : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugCommandList1 -{ - public static ref readonly Guid IID_ID3D12DebugCommandList1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x51, 0xA9, 0x2C, 0x10, - 0x1B, 0x31, - 0x01, 0x4B, - 0xB1, - 0x1F, - 0xEC, - 0xB8, - 0x3E, - 0x06, - 0x1B, - 0x37 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Bool32 AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugCommandList1*)Unsafe.AsPointer(ref this), pResource, Subresource, State); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetDebugParameter(DebugCommandListParameterType Type, void* pData, uint DataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DebugCommandList1*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetDebugParameter(DebugCommandListParameterType Type, void* pData, uint DataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DebugCommandList1*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } -} - -/// -/// ID3D12DebugCommandList -[Guid("09e0bf36-54ac-484f-8847-4baeeab6053f")] -[NativeTypeName("struct ID3D12DebugCommandList : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DebugCommandList -{ - public static ref readonly Guid IID_ID3D12DebugCommandList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x36, 0xBF, 0xE0, 0x09, - 0xAC, 0x54, - 0x4F, 0x48, - 0x88, - 0x47, - 0x4B, - 0xAE, - 0xEA, - 0xB6, - 0x05, - 0x3F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Bool32 AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugCommandList*)Unsafe.AsPointer(ref this), pResource, Subresource, State); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetFeatureMask(DebugFeature Mask) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DebugCommandList*)Unsafe.AsPointer(ref this), Mask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public DebugFeature GetFeatureMask() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DebugCommandList*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12DebugCommandList2 -[Guid("aeb575cf-4e06-48be-ba3b-c450fc96652e")] -[NativeTypeName("struct ID3D12DebugCommandList2 : ID3D12DebugCommandList")] -[NativeInheritance("ID3D12DebugCommandList")] -public unsafe partial struct ID3D12DebugCommandList2 -{ - public static ref readonly Guid IID_ID3D12DebugCommandList2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCF, 0x75, 0xB5, 0xAE, - 0x06, 0x4E, - 0xBE, 0x48, - 0xBA, - 0x3B, - 0xC4, - 0x50, - 0xFC, - 0x96, - 0x65, - 0x2E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Bool32 AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), pResource, Subresource, State); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetFeatureMask(DebugFeature Mask) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), Mask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public DebugFeature GetFeatureMask() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetDebugParameter(DebugCommandListParameterType Type, void* pData, uint DataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDebugParameter(DebugCommandListParameterType Type, void* pData, uint DataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), Type, pData, DataSize); - } -} - -/// -/// ID3D12SharingContract -[Guid("0adf7d52-929c-4e61-addb-ffed30de66ef")] -[NativeTypeName("struct ID3D12SharingContract : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12SharingContract -{ - public static ref readonly Guid IID_ID3D12SharingContract - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x52, 0x7D, 0xDF, 0x0A, - 0x9C, 0x92, - 0x61, 0x4E, - 0xAD, - 0xDB, - 0xFF, - 0xED, - 0x30, - 0xDE, - 0x66, - 0xEF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SharingContract)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void Present(ID3D12Resource* pResource, uint Subresource, IntPtr window) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12SharingContract*)Unsafe.AsPointer(ref this), pResource, Subresource, window); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SharedFenceSignal(ID3D12Fence* pFence, ulong FenceValue) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12SharingContract*)Unsafe.AsPointer(ref this), pFence, FenceValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void BeginCapturableWork(Guid* guid) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12SharingContract*)Unsafe.AsPointer(ref this), guid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void EndCapturableWork(Guid* guid) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12SharingContract*)Unsafe.AsPointer(ref this), guid); - } -} - -/// -/// ID3D12InfoQueue -[Guid("0742a90b-c387-483f-b946-30a7e4e61458")] -[NativeTypeName("struct ID3D12InfoQueue : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12InfoQueue -{ - public static ref readonly Guid IID_ID3D12InfoQueue - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0B, 0xA9, 0x42, 0x07, - 0x87, 0xC3, - 0x3F, 0x48, - 0xB9, - 0x46, - 0x30, - 0xA7, - 0xE4, - 0xE6, - 0x14, - 0x58 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12InfoQueue)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetMessageCountLimit(ulong MessageCountLimit) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), MessageCountLimit); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void ClearStoredMessages() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetMessage(ulong MessageIndex, Message* pMessage, nuint* pMessageByteLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), MessageIndex, pMessage, pMessageByteLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ulong GetNumMessagesAllowedByStorageFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public ulong GetNumMessagesDeniedByStorageFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ulong GetNumStoredMessages() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public ulong GetNumStoredMessagesAllowedByRetrievalFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public ulong GetNumMessagesDiscardedByMessageCountLimit() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public ulong GetMessageCountLimit() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult AddStorageFilterEntries(InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetStorageFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void ClearStorageFilter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult PushEmptyStorageFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult PushCopyOfStorageFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult PushStorageFilter(InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void PopStorageFilter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public uint GetStorageFilterStackSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult AddRetrievalFilterEntries(InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetRetrievalFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void ClearRetrievalFilter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult PushEmptyRetrievalFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult PushCopyOfRetrievalFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult PushRetrievalFilter(InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void PopRetrievalFilter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public uint GetRetrievalFilterStackSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult AddMessage(MessageCategory Category, MessageSeverity Severity, MessageId ID, sbyte* pDescription) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Category, Severity, ID, pDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult AddApplicationMessage(MessageSeverity Severity, sbyte* pDescription) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Severity, pDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult SetBreakOnCategory(MessageCategory Category, Bool32 bEnable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Category, bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult SetBreakOnSeverity(MessageSeverity Severity, Bool32 bEnable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Severity, bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult SetBreakOnID(MessageId ID, Bool32 bEnable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), ID, bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public Bool32 GetBreakOnCategory(MessageCategory Category) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Category); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public Bool32 GetBreakOnSeverity(MessageSeverity Severity) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Severity); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public Bool32 GetBreakOnID(MessageId ID) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), ID); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetMuteDebugOutput(Bool32 bMute) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), bMute); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public Bool32 GetMuteDebugOutput() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12InfoQueue1 -[Guid("2852dd88-b484-4c0c-b6b1-67168500e600")] -[NativeTypeName("struct ID3D12InfoQueue1 : ID3D12InfoQueue")] -[NativeInheritance("ID3D12InfoQueue")] -public unsafe partial struct ID3D12InfoQueue1 -{ - public static ref readonly Guid IID_ID3D12InfoQueue1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x88, 0xDD, 0x52, 0x28, - 0x84, 0xB4, - 0x0C, 0x4C, - 0xB6, - 0xB1, - 0x67, - 0x16, - 0x85, - 0x00, - 0xE6, - 0x00 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12InfoQueue1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetMessageCountLimit(ulong MessageCountLimit) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), MessageCountLimit); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void ClearStoredMessages() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetMessage(ulong MessageIndex, Message* pMessage, nuint* pMessageByteLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), MessageIndex, pMessage, pMessageByteLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ulong GetNumMessagesAllowedByStorageFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public ulong GetNumMessagesDeniedByStorageFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ulong GetNumStoredMessages() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public ulong GetNumStoredMessagesAllowedByRetrievalFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public ulong GetNumMessagesDiscardedByMessageCountLimit() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public ulong GetMessageCountLimit() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult AddStorageFilterEntries(InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetStorageFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void ClearStorageFilter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult PushEmptyStorageFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult PushCopyOfStorageFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult PushStorageFilter(InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void PopStorageFilter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public uint GetStorageFilterStackSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult AddRetrievalFilterEntries(InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetRetrievalFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void ClearRetrievalFilter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult PushEmptyRetrievalFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult PushCopyOfRetrievalFilter() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult PushRetrievalFilter(InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void PopRetrievalFilter() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public uint GetRetrievalFilterStackSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult AddMessage(MessageCategory Category, MessageSeverity Severity, MessageId ID, sbyte* pDescription) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Category, Severity, ID, pDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult AddApplicationMessage(MessageSeverity Severity, sbyte* pDescription) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Severity, pDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult SetBreakOnCategory(MessageCategory Category, Bool32 bEnable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Category, bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult SetBreakOnSeverity(MessageSeverity Severity, Bool32 bEnable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Severity, bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult SetBreakOnID(MessageId ID, Bool32 bEnable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), ID, bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public Bool32 GetBreakOnCategory(MessageCategory Category) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Category); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public Bool32 GetBreakOnSeverity(MessageSeverity Severity) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Severity); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public Bool32 GetBreakOnID(MessageId ID) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), ID); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetMuteDebugOutput(Bool32 bMute) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), bMute); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public Bool32 GetMuteDebugOutput() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult RegisterMessageCallback(delegate* unmanaged[Stdcall] CallbackFunc, MessageCallbackFlags CallbackFilterFlags, void* pContext, uint* pCallbackCookie) - { - return ((delegate* unmanaged[Stdcall], MessageCallbackFlags, void*, uint*, int>)(lpVtbl[38]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), CallbackFunc, CallbackFilterFlags, pContext, pCallbackCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult UnregisterMessageCallback(uint CallbackCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), CallbackCookie); - } -} - -/// -/// ID3D12SDKConfiguration -[Guid("e9eb5314-33aa-42b2-a718-d77f58b1f1c7")] -[NativeTypeName("struct ID3D12SDKConfiguration : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12SDKConfiguration -{ - public static ref readonly Guid IID_ID3D12SDKConfiguration - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x14, 0x53, 0xEB, 0xE9, - 0xAA, 0x33, - 0xB2, 0x42, - 0xA7, - 0x18, - 0xD7, - 0x7F, - 0x58, - 0xB1, - 0xF1, - 0xC7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SDKConfiguration)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetSDKVersion(uint SDKVersion, sbyte* SDKPath) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12SDKConfiguration*)Unsafe.AsPointer(ref this), SDKVersion, SDKPath); - } -} - -/// -/// ID3D12GraphicsCommandList5 -[Guid("55050859-4024-474c-87f5-6472eaee44ea")] -[NativeTypeName("struct ID3D12GraphicsCommandList5 : ID3D12GraphicsCommandList4")] -[NativeInheritance("ID3D12GraphicsCommandList4")] -public unsafe partial struct ID3D12GraphicsCommandList5 -{ - public static ref readonly Guid IID_ID3D12GraphicsCommandList5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x08, 0x05, 0x55, - 0x24, 0x40, - 0x4C, 0x47, - 0x87, - 0xF5, - 0x64, - 0x72, - 0xEA, - 0xEE, - 0x44, - 0xEA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList5)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void BeginRenderPass(uint NumRenderTargets, RenderPassRenderTargetDescription* pRenderTargets, RenderPassDepthStencilDescription* pDepthStencil, RenderPassFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumRenderTargets, pRenderTargets, pDepthStencil, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void EndRenderPass() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void InitializeMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pInitializationParametersData, nuint InitializationParametersDataSizeInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pMetaCommand, pInitializationParametersData, InitializationParametersDataSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void ExecuteMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pExecutionParametersData, nuint ExecutionParametersDataSizeInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pMetaCommand, pExecutionParametersData, ExecutionParametersDataSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void BuildRaytracingAccelerationStructure(BuildRaytracingAccelerationStructureDescription* pDesc, uint NumPostbuildInfoDescs, RaytracingAccelerationStructurePostbuildInfoDescription* pPostbuildInfoDescs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDesc, NumPostbuildInfoDescs, pPostbuildInfoDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void EmitRaytracingAccelerationStructurePostbuildInfo(RaytracingAccelerationStructurePostbuildInfoDescription* pDesc, uint NumSourceAccelerationStructures, ulong* pSourceAccelerationStructureData) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDesc, NumSourceAccelerationStructures, pSourceAccelerationStructureData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void CopyRaytracingAccelerationStructure(ulong DestAccelerationStructureData, ulong SourceAccelerationStructureData, RaytracingAccelerationStructureCopyMode Mode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), DestAccelerationStructureData, SourceAccelerationStructureData, Mode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void SetPipelineState1(ID3D12StateObject* pStateObject) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pStateObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void DispatchRays(DispatchRaysDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void WriteBufferImmediate(uint Count, WriteBufferImmediateParameter* pParams, WriteBufferImmediateMode* pModes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void AtomicCopyBufferUINT(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void AtomicCopyBufferUINT64(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void OMSetDepthBounds(float Min, float Max) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Min, Max); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumSamplesPerPixel, NumPixels, pSamplePositions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void ResolveSubresourceRegion(ID3D12Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, ID3D12Resource* pSrcResource, uint SrcSubresource, RawRect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, pSrcResource, SrcSubresource, pSrcRect, Format, ResolveMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void SetViewInstanceMask(uint Mask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Mask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult Close() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void RSSetViewports(uint NumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void RSSetScissorRects(uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void OMSetBlendFactor(float* BlendFactor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), BlendFactor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), StencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void IASetIndexBuffer(IndexBufferView* pView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void SetMarker(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void BeginEvent(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void EndEvent() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public new CommandListType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public void RSSetShadingRate(ShadingRate baseShadingRate, ShadingRateCombiner* combiners) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), baseShadingRate, combiners); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public void RSSetShadingRateImage(ID3D12Resource* shadingRateImage) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), shadingRateImage); - } -} - -/// -/// ID3D12GraphicsCommandList6 -[Guid("c3827890-e548-4cfa-96cf-5689a9370f80")] -[NativeTypeName("struct ID3D12GraphicsCommandList6 : ID3D12GraphicsCommandList5")] -[NativeInheritance("ID3D12GraphicsCommandList5")] -public unsafe partial struct ID3D12GraphicsCommandList6 -{ - public static ref readonly Guid IID_ID3D12GraphicsCommandList6 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x90, 0x78, 0x82, 0xC3, - 0x48, 0xE5, - 0xFA, 0x4C, - 0x96, - 0xCF, - 0x56, - 0x89, - 0xA9, - 0x37, - 0x0F, - 0x80 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList6)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void RSSetShadingRate(ShadingRate baseShadingRate, ShadingRateCombiner* combiners) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), baseShadingRate, combiners); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void RSSetShadingRateImage(ID3D12Resource* shadingRateImage) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), shadingRateImage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void BeginRenderPass(uint NumRenderTargets, RenderPassRenderTargetDescription* pRenderTargets, RenderPassDepthStencilDescription* pDepthStencil, RenderPassFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumRenderTargets, pRenderTargets, pDepthStencil, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void EndRenderPass() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void InitializeMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pInitializationParametersData, nuint InitializationParametersDataSizeInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pMetaCommand, pInitializationParametersData, InitializationParametersDataSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void ExecuteMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pExecutionParametersData, nuint ExecutionParametersDataSizeInBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pMetaCommand, pExecutionParametersData, ExecutionParametersDataSizeInBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void BuildRaytracingAccelerationStructure(BuildRaytracingAccelerationStructureDescription* pDesc, uint NumPostbuildInfoDescs, RaytracingAccelerationStructurePostbuildInfoDescription* pPostbuildInfoDescs) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDesc, NumPostbuildInfoDescs, pPostbuildInfoDescs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void EmitRaytracingAccelerationStructurePostbuildInfo(RaytracingAccelerationStructurePostbuildInfoDescription* pDesc, uint NumSourceAccelerationStructures, ulong* pSourceAccelerationStructureData) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDesc, NumSourceAccelerationStructures, pSourceAccelerationStructureData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void CopyRaytracingAccelerationStructure(ulong DestAccelerationStructureData, ulong SourceAccelerationStructureData, RaytracingAccelerationStructureCopyMode Mode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), DestAccelerationStructureData, SourceAccelerationStructureData, Mode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void SetPipelineState1(ID3D12StateObject* pStateObject) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pStateObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void DispatchRays(DispatchRaysDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pProtectedResourceSession); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void WriteBufferImmediate(uint Count, WriteBufferImmediateParameter* pParams, WriteBufferImmediateMode* pModes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Count, pParams, pModes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void AtomicCopyBufferUINT(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void AtomicCopyBufferUINT64(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void OMSetDepthBounds(float Min, float Max) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Min, Max); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumSamplesPerPixel, NumPixels, pSamplePositions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void ResolveSubresourceRegion(ID3D12Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, ID3D12Resource* pSrcResource, uint SrcSubresource, RawRect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, pSrcResource, SrcSubresource, pSrcRect, Format, ResolveMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public void SetViewInstanceMask(uint Mask) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Mask); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult Close() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void ClearState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), PrimitiveTopology); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public void RSSetViewports(uint NumViewports, Viewport* pViewports) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumViewports, pViewports); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public void RSSetScissorRects(uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void OMSetBlendFactor(float* BlendFactor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), BlendFactor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public void OMSetStencilRef(uint StencilRef) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), StencilRef); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetPipelineState(ID3D12PipelineState* pPipelineState) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pPipelineState); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pCommandList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pRootSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public void IASetIndexBuffer(IndexBufferView* pView) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pView); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pResource, pRegion); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public void SetMarker(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public void BeginEvent(uint Metadata, void* pData, uint Size) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Metadata, pData, Size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public void EndEvent() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public new CommandListType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public HResult GetDevice(Guid* riid, void** ppvDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), riid, ppvDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), guid, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), guid, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public HResult SetName(ushort* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public void DispatchMesh(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); - } -} - -/// -/// ID3D12ShaderReflectionType -[Guid("e913c351-783d-48ca-a1d1-4f306284ad56")] -public unsafe partial struct ID3D12ShaderReflectionType -{ - public static ref readonly Guid IID_ID3D12ShaderReflectionType - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x51, 0xC3, 0x13, 0xE9, - 0x3D, 0x78, - 0xCA, 0x48, - 0xA1, - 0xD1, - 0x4F, - 0x30, - 0x62, - 0x84, - 0xAD, - 0x56 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionType)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult GetDesc(ShaderTypeDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public ID3D12ShaderReflectionType GetMemberTypeByIndex(uint Index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public ID3D12ShaderReflectionType GetMemberTypeByName(sbyte* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public sbyte* GetMemberTypeName(uint Index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult IsEqual(ID3D12ShaderReflectionType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ID3D12ShaderReflectionType GetSubType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ID3D12ShaderReflectionType GetBaseClass() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetNumInterfaces() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ID3D12ShaderReflectionType GetInterfaceByIndex(uint uIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), uIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult IsOfType(ID3D12ShaderReflectionType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult ImplementsInterface(ID3D12ShaderReflectionType* pBase) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), pBase); - } -} - -/// -/// ID3D12ShaderReflectionVariable -[Guid("8337a8a6-a216-444a-b2f4-314733a73aea")] -public unsafe partial struct ID3D12ShaderReflectionVariable -{ - public static ref readonly Guid IID_ID3D12ShaderReflectionVariable - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA6, 0xA8, 0x37, 0x83, - 0x16, 0xA2, - 0x4A, 0x44, - 0xB2, - 0xF4, - 0x31, - 0x47, - 0x33, - 0xA7, - 0x3A, - 0xEA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionVariable)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult GetDesc(ShaderVariableDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12ShaderReflectionVariable*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public new ID3D12ShaderReflectionType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D12ShaderReflectionVariable*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public ID3D12ShaderReflectionConstantBuffer GetBuffer() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D12ShaderReflectionVariable*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetInterfaceSlot(uint uArrayIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ShaderReflectionVariable*)Unsafe.AsPointer(ref this), uArrayIndex); - } -} - -/// -/// ID3D12ShaderReflectionConstantBuffer -[Guid("c59598b4-48b3-4869-b9b1-b1618b14a8b7")] -public unsafe partial struct ID3D12ShaderReflectionConstantBuffer -{ - public static ref readonly Guid IID_ID3D12ShaderReflectionConstantBuffer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB4, 0x98, 0x95, 0xC5, - 0xB3, 0x48, - 0x69, 0x48, - 0xB9, - 0xB1, - 0xB1, - 0x61, - 0x8B, - 0x14, - 0xA8, - 0xB7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionConstantBuffer)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult GetDesc(ShaderBufferDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public ID3D12ShaderReflectionVariable GetVariableByIndex(uint Index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D12ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public ID3D12ShaderReflectionVariable GetVariableByName(sbyte* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D12ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Name); - } -} - -/// -/// ID3D12ShaderReflection -[Guid("5a58797d-a72c-478d-8ba2-efc6b0efe88e")] -[NativeTypeName("struct ID3D12ShaderReflection : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12ShaderReflection -{ - public static ref readonly Guid IID_ID3D12ShaderReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7D, 0x79, 0x58, 0x5A, - 0x2C, 0xA7, - 0x8D, 0x47, - 0x8B, - 0xA2, - 0xEF, - 0xC6, - 0xB0, - 0xEF, - 0xE8, - 0x8E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflection)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDesc(ShaderDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public ID3D12ShaderReflectionConstantBuffer GetConstantBufferByIndex(uint Index) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), Index); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ID3D12ShaderReflectionConstantBuffer GetConstantBufferByName(sbyte* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetResourceBindingDesc(uint ResourceIndex, ShaderInputBindDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), ResourceIndex, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetInputParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetOutputParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetPatchConstantParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public ID3D12ShaderReflectionVariable GetVariableByName(sbyte* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetResourceBindingDescByName(sbyte* Name, ShaderInputBindDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), Name, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public uint GetMovInstructionCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public uint GetMovcInstructionCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public uint GetConversionInstructionCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public uint GetBitwiseInstructionCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public Graphics.Direct3D.Primitive GetGSInputPrimitive() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public Bool32 IsSampleFrequencyShader() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public uint GetNumInterfaceSlots() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetMinFeatureLevel(Graphics.Direct3D.FeatureLevel* pLevel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), pLevel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public uint GetThreadGroupSize(uint* pSizeX, uint* pSizeY, uint* pSizeZ) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), pSizeX, pSizeY, pSizeZ); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public ulong GetRequiresFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// ID3D12LibraryReflection -[Guid("8e349d19-54db-4a56-9dc9-119d87bdb804")] -[NativeTypeName("struct ID3D12LibraryReflection : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12LibraryReflection -{ - public static ref readonly Guid IID_ID3D12LibraryReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x19, 0x9D, 0x34, 0x8E, - 0xDB, 0x54, - 0x56, 0x4A, - 0x9D, - 0xC9, - 0x11, - 0x9D, - 0x87, - 0xBD, - 0xB8, - 0x04 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12LibraryReflection)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDesc(LibraryDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12LibraryReflection*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public ID3D12FunctionReflection GetFunctionByIndex(int FunctionIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12LibraryReflection*)Unsafe.AsPointer(ref this), FunctionIndex); - } -} - -/// -/// ID3D12FunctionReflection -[Guid("1108795c-2772-4ba9-b2a8-d464dc7e2799")] -public unsafe partial struct ID3D12FunctionReflection -{ - public static ref readonly Guid IID_ID3D12FunctionReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5C, 0x79, 0x08, 0x11, - 0x72, 0x27, - 0xA9, 0x4B, - 0xB2, - 0xA8, - 0xD4, - 0x64, - 0xDC, - 0x7E, - 0x27, - 0x99 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12FunctionReflection)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult GetDesc(FunctionDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public ID3D12ShaderReflectionConstantBuffer GetConstantBufferByIndex(uint BufferIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), BufferIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public ID3D12ShaderReflectionConstantBuffer GetConstantBufferByName(sbyte* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetResourceBindingDesc(uint ResourceIndex, ShaderInputBindDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), ResourceIndex, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public ID3D12ShaderReflectionVariable GetVariableByName(sbyte* Name) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), Name); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetResourceBindingDescByName(sbyte* Name, ShaderInputBindDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), Name, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ID3D12FunctionParameterReflection GetFunctionParameter(int ParameterIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), ParameterIndex); - } -} - -/// -/// ID3D12FunctionParameterReflection -[Guid("ec25f42d-7006-4f2b-b33e-02cc3375733f")] -public unsafe partial struct ID3D12FunctionParameterReflection -{ - public static ref readonly Guid IID_ID3D12FunctionParameterReflection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2D, 0xF4, 0x25, 0xEC, - 0x06, 0x70, - 0x2B, 0x4F, - 0xB3, - 0x3E, - 0x02, - 0xCC, - 0x33, - 0x75, - 0x73, - 0x3F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12FunctionParameterReflection)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult GetDesc(ParameterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12FunctionParameterReflection*)Unsafe.AsPointer(ref this), pDesc); - } -} - #endregion Com Types #region Functions diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandAllocator.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandAllocator.cs new file mode 100644 index 0000000..d73197c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandAllocator.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12CommandAllocator +[Guid("6102dee4-af59-4b09-b999-b44d73f09b24")] +[NativeTypeName("struct ID3D12CommandAllocator : ID3D12Pageable")] +[NativeInheritance("ID3D12Pageable")] +public unsafe partial struct ID3D12CommandAllocator +{ + public static ref readonly Guid IID_ID3D12CommandAllocator + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE4, 0xDE, 0x02, 0x61, + 0x59, 0xAF, + 0x09, 0x4B, + 0xB9, + 0x99, + 0xB4, + 0x4D, + 0x73, + 0xF0, + 0x9B, + 0x24 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandAllocator)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Reset() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12CommandAllocator*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandList.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandList.cs new file mode 100644 index 0000000..61765af --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandList.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12CommandList +[Guid("7116d91c-e7e4-47ce-b8c6-ec8168f437e5")] +[NativeTypeName("struct ID3D12CommandList : ID3D12DeviceChild")] +[NativeInheritance("ID3D12DeviceChild")] +public unsafe partial struct ID3D12CommandList +{ + public static ref readonly Guid IID_ID3D12CommandList + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1C, 0xD9, 0x16, 0x71, + 0xE4, 0xE7, + 0xCE, 0x47, + 0xB8, + 0xC6, + 0xEC, + 0x81, + 0x68, + 0xF4, + 0x37, + 0xE5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandList)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12CommandList*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12CommandList*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12CommandList*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12CommandList*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12CommandList*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public new CommandListType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12CommandList*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandQueue.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandQueue.cs new file mode 100644 index 0000000..ed8a248 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandQueue.cs @@ -0,0 +1,212 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12CommandQueue +[Guid("0ec870a6-5d7e-4c22-8cfc-5baae07616ed")] +[NativeTypeName("struct ID3D12CommandQueue : ID3D12Pageable")] +[NativeInheritance("ID3D12Pageable")] +public unsafe partial struct ID3D12CommandQueue +{ + public static ref readonly Guid IID_ID3D12CommandQueue + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA6, 0x70, 0xC8, 0x0E, + 0x7E, 0x5D, + 0x22, 0x4C, + 0x8C, + 0xFC, + 0x5B, + 0xAA, + 0xE0, + 0x76, + 0x16, + 0xED + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandQueue)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void UpdateTileMappings(ID3D12Resource* pResource, uint NumResourceRegions, TiledResourceCoordinate* pResourceRegionStartCoordinates, TileRegionSize* pResourceRegionSizes, ID3D12Heap* pHeap, uint NumRanges, TileRangeFlags* pRangeFlags, uint* pHeapRangeStartOffsets, uint* pRangeTileCounts, TileMappingFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), pResource, NumResourceRegions, pResourceRegionStartCoordinates, pResourceRegionSizes, pHeap, NumRanges, pRangeFlags, pHeapRangeStartOffsets, pRangeTileCounts, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void CopyTileMappings(ID3D12Resource* pDstResource, TiledResourceCoordinate* pDstRegionStartCoordinate, ID3D12Resource* pSrcResource, TiledResourceCoordinate* pSrcRegionStartCoordinate, TileRegionSize* pRegionSize, TileMappingFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), pDstResource, pDstRegionStartCoordinate, pSrcResource, pSrcRegionStartCoordinate, pRegionSize, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void ExecuteCommandLists(uint NumCommandLists, ID3D12CommandList** ppCommandLists) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), NumCommandLists, ppCommandLists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void SetMarker(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void BeginEvent(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void EndEvent() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult Signal(ID3D12Fence* pFence, ulong Value) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), pFence, Value); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult Wait(ID3D12Fence* pFence, ulong Value) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), pFence, Value); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetTimestampFrequency(ulong* pFrequency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), pFrequency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetClockCalibration(ulong* pGpuTimestamp, ulong* pCpuTimestamp) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), pGpuTimestamp, pCpuTimestamp); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public CommandQueueDescription GetDesc() + { + CommandQueueDescription result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12CommandQueue*)Unsafe.AsPointer(ref this), &result); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandSignature.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandSignature.cs new file mode 100644 index 0000000..1fac6bb --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12CommandSignature.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12CommandSignature +[Guid("c36a797c-ec80-4f0a-8985-a7b2475082d1")] +[NativeTypeName("struct ID3D12CommandSignature : ID3D12Pageable")] +[NativeInheritance("ID3D12Pageable")] +public unsafe partial struct ID3D12CommandSignature +{ + public static ref readonly Guid IID_ID3D12CommandSignature + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7C, 0x79, 0x6A, 0xC3, + 0x80, 0xEC, + 0x0A, 0x4F, + 0x89, + 0x85, + 0xA7, + 0xB2, + 0x47, + 0x50, + 0x82, + 0xD1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12CommandSignature)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12CommandSignature*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug.cs new file mode 100644 index 0000000..a9e5ccd --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Debug +[Guid("344488b7-6846-474b-b989-f027448245e0")] +[NativeTypeName("struct ID3D12Debug : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12Debug +{ + public static ref readonly Guid IID_ID3D12Debug + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB7, 0x88, 0x44, 0x34, + 0x46, 0x68, + 0x4B, 0x47, + 0xB9, + 0x89, + 0xF0, + 0x27, + 0x44, + 0x82, + 0x45, + 0xE0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void EnableDebugLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Debug*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug1.cs new file mode 100644 index 0000000..965dbb6 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug1.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Debug1 +[Guid("affaa4ca-63fe-4d8e-b8ad-159000af4304")] +[NativeTypeName("struct ID3D12Debug1 : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12Debug1 +{ + public static ref readonly Guid IID_ID3D12Debug1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCA, 0xA4, 0xFA, 0xAF, + 0xFE, 0x63, + 0x8E, 0x4D, + 0xB8, + 0xAD, + 0x15, + 0x90, + 0x00, + 0xAF, + 0x43, + 0x04 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void EnableDebugLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Debug1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetEnableGPUBasedValidation(Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Debug1*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetEnableSynchronizedCommandQueueValidation(Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Debug1*)Unsafe.AsPointer(ref this), Enable); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug2.cs new file mode 100644 index 0000000..0cedb52 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug2.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Debug2 +[Guid("93a665c4-a3b2-4e5d-b692-a26ae14e3374")] +[NativeTypeName("struct ID3D12Debug2 : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12Debug2 +{ + public static ref readonly Guid IID_ID3D12Debug2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC4, 0x65, 0xA6, 0x93, + 0xB2, 0xA3, + 0x5D, 0x4E, + 0xB6, + 0x92, + 0xA2, + 0x6A, + 0xE1, + 0x4E, + 0x33, + 0x74 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void SetGPUBasedValidationFlags(GpuBasedValidationFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Debug2*)Unsafe.AsPointer(ref this), Flags); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug3.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug3.cs new file mode 100644 index 0000000..106d9f1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug3.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Debug3 +[Guid("5cf4e58f-f671-4ff1-a542-3686e3d153d1")] +[NativeTypeName("struct ID3D12Debug3 : ID3D12Debug")] +[NativeInheritance("ID3D12Debug")] +public unsafe partial struct ID3D12Debug3 +{ + public static ref readonly Guid IID_ID3D12Debug3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8F, 0xE5, 0xF4, 0x5C, + 0x71, 0xF6, + 0xF1, 0x4F, + 0xA5, + 0x42, + 0x36, + 0x86, + 0xE3, + 0xD1, + 0x53, + 0xD1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void EnableDebugLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Debug3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetEnableGPUBasedValidation(Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Debug3*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetEnableSynchronizedCommandQueueValidation(Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Debug3*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetGPUBasedValidationFlags(GpuBasedValidationFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Debug3*)Unsafe.AsPointer(ref this), Flags); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug4.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug4.cs new file mode 100644 index 0000000..768c417 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug4.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Debug4 +[Guid("014b816e-9ec5-4a2f-a845-ffbe441ce13a")] +[NativeTypeName("struct ID3D12Debug4 : ID3D12Debug3")] +[NativeInheritance("ID3D12Debug3")] +public unsafe partial struct ID3D12Debug4 +{ + public static ref readonly Guid IID_ID3D12Debug4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6E, 0x81, 0x4B, 0x01, + 0xC5, 0x9E, + 0x2F, 0x4A, + 0xA8, + 0x45, + 0xFF, + 0xBE, + 0x44, + 0x1C, + 0xE1, + 0x3A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void EnableDebugLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Debug4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetEnableGPUBasedValidation(Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Debug4*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetEnableSynchronizedCommandQueueValidation(Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Debug4*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetGPUBasedValidationFlags(GpuBasedValidationFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Debug4*)Unsafe.AsPointer(ref this), Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void DisableDebugLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Debug4*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug5.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug5.cs new file mode 100644 index 0000000..27f096a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Debug5.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Debug5 +[Guid("548d6b12-09fa-40e0-9069-5dcd589a52c9")] +[NativeTypeName("struct ID3D12Debug5 : ID3D12Debug4")] +[NativeInheritance("ID3D12Debug4")] +public unsafe partial struct ID3D12Debug5 +{ + public static ref readonly Guid IID_ID3D12Debug5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x12, 0x6B, 0x8D, 0x54, + 0xFA, 0x09, + 0xE0, 0x40, + 0x90, + 0x69, + 0x5D, + 0xCD, + 0x58, + 0x9A, + 0x52, + 0xC9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug5)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void EnableDebugLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Debug5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetEnableGPUBasedValidation(Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Debug5*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetEnableSynchronizedCommandQueueValidation(Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Debug5*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetGPUBasedValidationFlags(GpuBasedValidationFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Debug5*)Unsafe.AsPointer(ref this), Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void DisableDebugLayer() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Debug5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void SetEnableAutoName(Bool32 Enable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Debug5*)Unsafe.AsPointer(ref this), Enable); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandList.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandList.cs new file mode 100644 index 0000000..e69e3ad --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandList.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DebugCommandList +[Guid("09e0bf36-54ac-484f-8847-4baeeab6053f")] +[NativeTypeName("struct ID3D12DebugCommandList : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12DebugCommandList +{ + public static ref readonly Guid IID_ID3D12DebugCommandList + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x36, 0xBF, 0xE0, 0x09, + 0xAC, 0x54, + 0x4F, 0x48, + 0x88, + 0x47, + 0x4B, + 0xAE, + 0xEA, + 0xB6, + 0x05, + 0x3F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public Bool32 AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugCommandList*)Unsafe.AsPointer(ref this), pResource, Subresource, State); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetFeatureMask(DebugFeature Mask) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DebugCommandList*)Unsafe.AsPointer(ref this), Mask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public DebugFeature GetFeatureMask() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DebugCommandList*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandList1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandList1.cs new file mode 100644 index 0000000..e7bdcc5 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandList1.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DebugCommandList1 +[Guid("102ca951-311b-4b01-b11f-ecb83e061b37")] +[NativeTypeName("struct ID3D12DebugCommandList1 : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12DebugCommandList1 +{ + public static ref readonly Guid IID_ID3D12DebugCommandList1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x51, 0xA9, 0x2C, 0x10, + 0x1B, 0x31, + 0x01, 0x4B, + 0xB1, + 0x1F, + 0xEC, + 0xB8, + 0x3E, + 0x06, + 0x1B, + 0x37 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public Bool32 AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugCommandList1*)Unsafe.AsPointer(ref this), pResource, Subresource, State); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetDebugParameter(DebugCommandListParameterType Type, void* pData, uint DataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DebugCommandList1*)Unsafe.AsPointer(ref this), Type, pData, DataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetDebugParameter(DebugCommandListParameterType Type, void* pData, uint DataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DebugCommandList1*)Unsafe.AsPointer(ref this), Type, pData, DataSize); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandList2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandList2.cs new file mode 100644 index 0000000..49b074e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandList2.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DebugCommandList2 +[Guid("aeb575cf-4e06-48be-ba3b-c450fc96652e")] +[NativeTypeName("struct ID3D12DebugCommandList2 : ID3D12DebugCommandList")] +[NativeInheritance("ID3D12DebugCommandList")] +public unsafe partial struct ID3D12DebugCommandList2 +{ + public static ref readonly Guid IID_ID3D12DebugCommandList2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCF, 0x75, 0xB5, 0xAE, + 0x06, 0x4E, + 0xBE, 0x48, + 0xBA, + 0x3B, + 0xC4, + 0x50, + 0xFC, + 0x96, + 0x65, + 0x2E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandList2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public Bool32 AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), pResource, Subresource, State); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetFeatureMask(DebugFeature Mask) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), Mask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public DebugFeature GetFeatureMask() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetDebugParameter(DebugCommandListParameterType Type, void* pData, uint DataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), Type, pData, DataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDebugParameter(DebugCommandListParameterType Type, void* pData, uint DataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12DebugCommandList2*)Unsafe.AsPointer(ref this), Type, pData, DataSize); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandQueue.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandQueue.cs new file mode 100644 index 0000000..7129beb --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugCommandQueue.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DebugCommandQueue +[Guid("09e0bf36-54ac-484f-8847-4baeeab6053a")] +[NativeTypeName("struct ID3D12DebugCommandQueue : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12DebugCommandQueue +{ + public static ref readonly Guid IID_ID3D12DebugCommandQueue + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x36, 0xBF, 0xE0, 0x09, + 0xAC, 0x54, + 0x4F, 0x48, + 0x88, + 0x47, + 0x4B, + 0xAE, + 0xEA, + 0xB6, + 0x05, + 0x3A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugCommandQueue)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public Bool32 AssertResourceState(ID3D12Resource* pResource, uint Subresource, uint State) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugCommandQueue*)Unsafe.AsPointer(ref this), pResource, Subresource, State); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugDevice.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugDevice.cs new file mode 100644 index 0000000..e52a8fb --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugDevice.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DebugDevice +[Guid("3febd6dd-4973-4787-8194-e45f9e28923e")] +[NativeTypeName("struct ID3D12DebugDevice : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12DebugDevice +{ + public static ref readonly Guid IID_ID3D12DebugDevice + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDD, 0xD6, 0xEB, 0x3F, + 0x73, 0x49, + 0x87, 0x47, + 0x81, + 0x94, + 0xE4, + 0x5F, + 0x9E, + 0x28, + 0x92, + 0x3E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugDevice)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetFeatureMask(DebugFeature Mask) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugDevice*)Unsafe.AsPointer(ref this), Mask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public DebugFeature GetFeatureMask() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DebugDevice*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult ReportLiveDeviceObjects(ReportLiveDeviceObjectFlags Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DebugDevice*)Unsafe.AsPointer(ref this), Flags); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugDevice1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugDevice1.cs new file mode 100644 index 0000000..11819bc --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugDevice1.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DebugDevice1 +[Guid("a9b71770-d099-4a65-a698-3dee10020f88")] +[NativeTypeName("struct ID3D12DebugDevice1 : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12DebugDevice1 +{ + public static ref readonly Guid IID_ID3D12DebugDevice1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x70, 0x17, 0xB7, 0xA9, + 0x99, 0xD0, + 0x65, 0x4A, + 0xA6, + 0x98, + 0x3D, + 0xEE, + 0x10, + 0x02, + 0x0F, + 0x88 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugDevice1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetDebugParameter(DebugDeviceParameterType Type, void* pData, uint DataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugDevice1*)Unsafe.AsPointer(ref this), Type, pData, DataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetDebugParameter(DebugDeviceParameterType Type, void* pData, uint DataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DebugDevice1*)Unsafe.AsPointer(ref this), Type, pData, DataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult ReportLiveDeviceObjects(ReportLiveDeviceObjectFlags Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DebugDevice1*)Unsafe.AsPointer(ref this), Flags); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugDevice2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugDevice2.cs new file mode 100644 index 0000000..e46c30d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DebugDevice2.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DebugDevice2 +[Guid("60eccbc1-378d-4df1-894c-f8ac5ce4d7dd")] +[NativeTypeName("struct ID3D12DebugDevice2 : ID3D12DebugDevice")] +[NativeInheritance("ID3D12DebugDevice")] +public unsafe partial struct ID3D12DebugDevice2 +{ + public static ref readonly Guid IID_ID3D12DebugDevice2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC1, 0xCB, 0xEC, 0x60, + 0x8D, 0x37, + 0xF1, 0x4D, + 0x89, + 0x4C, + 0xF8, + 0xAC, + 0x5C, + 0xE4, + 0xD7, + 0xDD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DebugDevice2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetFeatureMask(DebugFeature Mask) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), Mask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public DebugFeature GetFeatureMask() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DebugDevice2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult ReportLiveDeviceObjects(ReportLiveDeviceObjectFlags Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetDebugParameter(DebugDeviceParameterType Type, void* pData, uint DataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), Type, pData, DataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDebugParameter(DebugDeviceParameterType Type, void* pData, uint DataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12DebugDevice2*)Unsafe.AsPointer(ref this), Type, pData, DataSize); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DescriptorHeap.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DescriptorHeap.cs new file mode 100644 index 0000000..6c394e6 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DescriptorHeap.cs @@ -0,0 +1,150 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DescriptorHeap +[Guid("8efb471d-616c-4f49-90f7-127bb763fa51")] +[NativeTypeName("struct ID3D12DescriptorHeap : ID3D12Pageable")] +[NativeInheritance("ID3D12Pageable")] +public unsafe partial struct ID3D12DescriptorHeap +{ + public static ref readonly Guid IID_ID3D12DescriptorHeap + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1D, 0x47, 0xFB, 0x8E, + 0x6C, 0x61, + 0x49, 0x4F, + 0x90, + 0xF7, + 0x12, + 0x7B, + 0xB7, + 0x63, + 0xFA, + 0x51 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DescriptorHeap)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public DescriptorHeapDescription GetDesc() + { + DescriptorHeapDescription result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public CpuDescriptorHandle GetCPUDescriptorHandleForHeapStart() + { + CpuDescriptorHandle result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public GpuDescriptorHandle GetGPUDescriptorHandleForHeapStart() + { + GpuDescriptorHandle result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12DescriptorHeap*)Unsafe.AsPointer(ref this), &result); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device.cs new file mode 100644 index 0000000..a5b1eaf --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device.cs @@ -0,0 +1,413 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Device +[Guid("189819f1-1db6-4b57-be54-1821339b85f7")] +[NativeTypeName("struct ID3D12Device : ID3D12Object")] +[NativeInheritance("ID3D12Object")] +public unsafe partial struct ID3D12Device +{ + public static ref readonly Guid IID_ID3D12Device + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF1, 0x19, 0x98, 0x18, + 0xB6, 0x1D, + 0x57, 0x4B, + 0xBE, + 0x54, + 0x18, + 0x21, + 0x33, + 0x9B, + 0x85, + 0xF7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNodeCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device*)Unsafe.AsPointer(ref this), DescriptorHeapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) + { + HeapProperties result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetStablePowerState(Bool32 Enable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Luid GetAdapterLuid() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device1.cs new file mode 100644 index 0000000..92724cf --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device1.cs @@ -0,0 +1,437 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Device1 +[Guid("77acce80-638e-4e65-8895-c1f23386863e")] +[NativeTypeName("struct ID3D12Device1 : ID3D12Device")] +[NativeInheritance("ID3D12Device")] +public unsafe partial struct ID3D12Device1 +{ + public static ref readonly Guid IID_ID3D12Device1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x80, 0xCE, 0xAC, 0x77, + 0x8E, 0x63, + 0x65, 0x4E, + 0x88, + 0x95, + 0xC1, + 0xF2, + 0x33, + 0x86, + 0x86, + 0x3E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device1*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNodeCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device1*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device1*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device1*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device1*)Unsafe.AsPointer(ref this), DescriptorHeapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device1*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device1*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device1*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device1*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) + { + HeapProperties result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device1*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device1*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device1*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device1*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device1*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device1*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetStablePowerState(Bool32 Enable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device1*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Luid GetAdapterLuid() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device1*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device1*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device1*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device2.cs new file mode 100644 index 0000000..779ebab --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device2.cs @@ -0,0 +1,445 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Device2 +[Guid("30baa41e-b15b-475c-a0bb-1af5c5b64328")] +[NativeTypeName("struct ID3D12Device2 : ID3D12Device1")] +[NativeInheritance("ID3D12Device1")] +public unsafe partial struct ID3D12Device2 +{ + public static ref readonly Guid IID_ID3D12Device2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1E, 0xA4, 0xBA, 0x30, + 0x5B, 0xB1, + 0x5C, 0x47, + 0xA0, + 0xBB, + 0x1A, + 0xF5, + 0xC5, + 0xB6, + 0x43, + 0x28 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device2*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device2*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNodeCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device2*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device2*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device2*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device2*)Unsafe.AsPointer(ref this), DescriptorHeapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device2*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device2*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device2*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device2*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) + { + HeapProperties result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device2*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device2*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device2*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device2*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device2*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device2*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetStablePowerState(Bool32 Enable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device2*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Luid GetAdapterLuid() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device2*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device2*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device2*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device3.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device3.cs new file mode 100644 index 0000000..70745b4 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device3.cs @@ -0,0 +1,469 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Device3 +[Guid("81dadc15-2bad-4392-93c5-101345c4aa98")] +[NativeTypeName("struct ID3D12Device3 : ID3D12Device2")] +[NativeInheritance("ID3D12Device2")] +public unsafe partial struct ID3D12Device3 +{ + public static ref readonly Guid IID_ID3D12Device3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x15, 0xDC, 0xDA, 0x81, + 0xAD, 0x2B, + 0x92, 0x43, + 0x93, + 0xC5, + 0x10, + 0x13, + 0x45, + 0xC4, + 0xAA, + 0x98 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device3*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device3*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNodeCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device3*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device3*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device3*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device3*)Unsafe.AsPointer(ref this), DescriptorHeapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device3*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device3*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device3*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device3*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) + { + HeapProperties result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device3*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device3*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device3*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device3*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device3*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device3*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetStablePowerState(Bool32 Enable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device3*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Luid GetAdapterLuid() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device3*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device3*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device3*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device3*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device3*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device4.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device4.cs new file mode 100644 index 0000000..0b8247b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device4.cs @@ -0,0 +1,518 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Device4 +[Guid("e865df17-a9ee-46f9-a463-3098315aa2e5")] +[NativeTypeName("struct ID3D12Device4 : ID3D12Device3")] +[NativeInheritance("ID3D12Device3")] +public unsafe partial struct ID3D12Device4 +{ + public static ref readonly Guid IID_ID3D12Device4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x17, 0xDF, 0x65, 0xE8, + 0xEE, 0xA9, + 0xF9, 0x46, + 0xA4, + 0x63, + 0x30, + 0x98, + 0x31, + 0x5A, + 0xA2, + 0xE5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device4*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device4*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device4*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device4*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNodeCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device4*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device4*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device4*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device4*)Unsafe.AsPointer(ref this), DescriptorHeapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device4*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device4*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device4*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device4*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) + { + HeapProperties result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device4*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device4*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device4*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device4*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device4*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device4*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetStablePowerState(Bool32 Enable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device4*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Luid GetAdapterLuid() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device4*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device4*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device4*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device4*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult CreateCommandList1(uint nodeMask, CommandListType type, CommandListFlags flags, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12Device4*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult CreateProtectedResourceSession(ProtectedResourceSessionDescription* pDesc, Guid* riid, void** ppSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CreateCommittedResource1(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult CreateHeap1(HeapDescription* pDesc, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult CreateReservedResource1(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12Device4*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, pProtectedSession, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public ResourceAllocationInfo GetResourceAllocationInfo1(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12Device4*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device5.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device5.cs new file mode 100644 index 0000000..b95f08e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device5.cs @@ -0,0 +1,582 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Device5 +[Guid("8b4f173b-2fea-4b80-8f58-4307191ab95d")] +[NativeTypeName("struct ID3D12Device5 : ID3D12Device4")] +[NativeInheritance("ID3D12Device4")] +public unsafe partial struct ID3D12Device5 +{ + public static ref readonly Guid IID_ID3D12Device5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3B, 0x17, 0x4F, 0x8B, + 0xEA, 0x2F, + 0x80, 0x4B, + 0x8F, + 0x58, + 0x43, + 0x07, + 0x19, + 0x1A, + 0xB9, + 0x5D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device5)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device5*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device5*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device5*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device5*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNodeCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device5*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device5*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device5*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device5*)Unsafe.AsPointer(ref this), DescriptorHeapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device5*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device5*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device5*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device5*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) + { + HeapProperties result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device5*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device5*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device5*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device5*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device5*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device5*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetStablePowerState(Bool32 Enable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device5*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Luid GetAdapterLuid() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device5*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device5*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device5*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device5*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult CreateCommandList1(uint nodeMask, CommandListType type, CommandListFlags flags, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12Device5*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult CreateProtectedResourceSession(ProtectedResourceSessionDescription* pDesc, Guid* riid, void** ppSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CreateCommittedResource1(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult CreateHeap1(HeapDescription* pDesc, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult CreateReservedResource1(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, pProtectedSession, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public ResourceAllocationInfo GetResourceAllocationInfo1(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12Device5*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateLifetimeTracker(ID3D12LifetimeOwner* pOwner, Guid* riid, void** ppvTracker) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void RemoveDevice() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12Device5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult EnumerateMetaCommands(uint* pNumMetaCommands, MetaCommandDescription* pDescs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult EnumerateMetaCommandParameters(Guid* CommandId, MetaCommandParameterStage Stage, uint* pTotalStructureSizeInBytes, uint* pParameterCount, MetaCommandParameterDescription* pParameterDescs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12Device5*)Unsafe.AsPointer(ref this), CommandId, Stage, pTotalStructureSizeInBytes, pParameterCount, pParameterDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateMetaCommand(Guid* CommandId, uint NodeMask, void* pCreationParametersData, nuint CreationParametersDataSizeInBytes, Guid* riid, void** ppMetaCommand) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12Device5*)Unsafe.AsPointer(ref this), CommandId, NodeMask, pCreationParametersData, CreationParametersDataSizeInBytes, riid, ppMetaCommand); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateStateObject(StateObjectDescription* pDesc, Guid* riid, void** ppStateObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void GetRaytracingAccelerationStructurePrebuildInfo(BuildRaytracingAccelerationStructureInputs* pDesc, RaytracingAccelerationStructurePrebuildInfo* pInfo) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12Device5*)Unsafe.AsPointer(ref this), pDesc, pInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public DriverMatchingIdentifierStatus CheckDriverMatchingIdentifier(SerializedDataType SerializedDataType, SerializedDataDriverMatchingIdentifier* pIdentifierToCheck) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12Device5*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device6.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device6.cs new file mode 100644 index 0000000..96a79c2 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device6.cs @@ -0,0 +1,590 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Device6 +[Guid("c70b221b-40e4-4a17-89af-025a0727a6dc")] +[NativeTypeName("struct ID3D12Device6 : ID3D12Device5")] +[NativeInheritance("ID3D12Device5")] +public unsafe partial struct ID3D12Device6 +{ + public static ref readonly Guid IID_ID3D12Device6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1B, 0x22, 0x0B, 0xC7, + 0xE4, 0x40, + 0x17, 0x4A, + 0x89, + 0xAF, + 0x02, + 0x5A, + 0x07, + 0x27, + 0xA6, + 0xDC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device6)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device6*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device6*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device6*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device6*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNodeCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device6*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device6*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device6*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device6*)Unsafe.AsPointer(ref this), DescriptorHeapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device6*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device6*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device6*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device6*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) + { + HeapProperties result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device6*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device6*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device6*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device6*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device6*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device6*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetStablePowerState(Bool32 Enable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device6*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Luid GetAdapterLuid() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device6*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device6*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device6*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device6*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult CreateCommandList1(uint nodeMask, CommandListType type, CommandListFlags flags, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12Device6*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult CreateProtectedResourceSession(ProtectedResourceSessionDescription* pDesc, Guid* riid, void** ppSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CreateCommittedResource1(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult CreateHeap1(HeapDescription* pDesc, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult CreateReservedResource1(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, pProtectedSession, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public ResourceAllocationInfo GetResourceAllocationInfo1(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12Device6*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateLifetimeTracker(ID3D12LifetimeOwner* pOwner, Guid* riid, void** ppvTracker) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void RemoveDevice() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12Device6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult EnumerateMetaCommands(uint* pNumMetaCommands, MetaCommandDescription* pDescs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult EnumerateMetaCommandParameters(Guid* CommandId, MetaCommandParameterStage Stage, uint* pTotalStructureSizeInBytes, uint* pParameterCount, MetaCommandParameterDescription* pParameterDescs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12Device6*)Unsafe.AsPointer(ref this), CommandId, Stage, pTotalStructureSizeInBytes, pParameterCount, pParameterDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateMetaCommand(Guid* CommandId, uint NodeMask, void* pCreationParametersData, nuint CreationParametersDataSizeInBytes, Guid* riid, void** ppMetaCommand) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12Device6*)Unsafe.AsPointer(ref this), CommandId, NodeMask, pCreationParametersData, CreationParametersDataSizeInBytes, riid, ppMetaCommand); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateStateObject(StateObjectDescription* pDesc, Guid* riid, void** ppStateObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void GetRaytracingAccelerationStructurePrebuildInfo(BuildRaytracingAccelerationStructureInputs* pDesc, RaytracingAccelerationStructurePrebuildInfo* pInfo) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12Device6*)Unsafe.AsPointer(ref this), pDesc, pInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public DriverMatchingIdentifierStatus CheckDriverMatchingIdentifier(SerializedDataType SerializedDataType, SerializedDataDriverMatchingIdentifier* pIdentifierToCheck) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12Device6*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult SetBackgroundProcessingMode(BackgroundProcessingMode Mode, MeasurementsAction MeasurementsAction, IntPtr hEventToSignalUponCompletion, Bool32* pbFurtherMeasurementsDesired) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12Device6*)Unsafe.AsPointer(ref this), Mode, MeasurementsAction, hEventToSignalUponCompletion, pbFurtherMeasurementsDesired); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device7.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device7.cs new file mode 100644 index 0000000..8fc5941 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device7.cs @@ -0,0 +1,606 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Device7 +[Guid("5c014b53-68a1-4b9b-8bd1-dd6046b9358b")] +[NativeTypeName("struct ID3D12Device7 : ID3D12Device6")] +[NativeInheritance("ID3D12Device6")] +public unsafe partial struct ID3D12Device7 +{ + public static ref readonly Guid IID_ID3D12Device7 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x53, 0x4B, 0x01, 0x5C, + 0xA1, 0x68, + 0x9B, 0x4B, + 0x8B, + 0xD1, + 0xDD, + 0x60, + 0x46, + 0xB9, + 0x35, + 0x8B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device7)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device7*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device7*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device7*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device7*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNodeCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device7*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device7*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device7*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device7*)Unsafe.AsPointer(ref this), DescriptorHeapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device7*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device7*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device7*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device7*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) + { + HeapProperties result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device7*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device7*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device7*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device7*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device7*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device7*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetStablePowerState(Bool32 Enable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device7*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Luid GetAdapterLuid() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device7*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device7*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device7*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device7*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult CreateCommandList1(uint nodeMask, CommandListType type, CommandListFlags flags, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12Device7*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult CreateProtectedResourceSession(ProtectedResourceSessionDescription* pDesc, Guid* riid, void** ppSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CreateCommittedResource1(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult CreateHeap1(HeapDescription* pDesc, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult CreateReservedResource1(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, pProtectedSession, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public ResourceAllocationInfo GetResourceAllocationInfo1(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12Device7*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateLifetimeTracker(ID3D12LifetimeOwner* pOwner, Guid* riid, void** ppvTracker) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void RemoveDevice() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12Device7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult EnumerateMetaCommands(uint* pNumMetaCommands, MetaCommandDescription* pDescs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult EnumerateMetaCommandParameters(Guid* CommandId, MetaCommandParameterStage Stage, uint* pTotalStructureSizeInBytes, uint* pParameterCount, MetaCommandParameterDescription* pParameterDescs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12Device7*)Unsafe.AsPointer(ref this), CommandId, Stage, pTotalStructureSizeInBytes, pParameterCount, pParameterDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateMetaCommand(Guid* CommandId, uint NodeMask, void* pCreationParametersData, nuint CreationParametersDataSizeInBytes, Guid* riid, void** ppMetaCommand) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12Device7*)Unsafe.AsPointer(ref this), CommandId, NodeMask, pCreationParametersData, CreationParametersDataSizeInBytes, riid, ppMetaCommand); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateStateObject(StateObjectDescription* pDesc, Guid* riid, void** ppStateObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void GetRaytracingAccelerationStructurePrebuildInfo(BuildRaytracingAccelerationStructureInputs* pDesc, RaytracingAccelerationStructurePrebuildInfo* pInfo) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, pInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public DriverMatchingIdentifierStatus CheckDriverMatchingIdentifier(SerializedDataType SerializedDataType, SerializedDataDriverMatchingIdentifier* pIdentifierToCheck) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12Device7*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult SetBackgroundProcessingMode(BackgroundProcessingMode Mode, MeasurementsAction MeasurementsAction, IntPtr hEventToSignalUponCompletion, Bool32* pbFurtherMeasurementsDesired) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12Device7*)Unsafe.AsPointer(ref this), Mode, MeasurementsAction, hEventToSignalUponCompletion, pbFurtherMeasurementsDesired); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult AddToStateObject(StateObjectDescription* pAddition, ID3D12StateObject* pStateObjectToGrowFrom, Guid* riid, void** ppNewStateObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pAddition, pStateObjectToGrowFrom, riid, ppNewStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CreateProtectedResourceSession1(ProtectedResourceSessionDescription1* pDesc, Guid* riid, void** ppSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12Device7*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device8.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device8.cs new file mode 100644 index 0000000..4e79804 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device8.cs @@ -0,0 +1,647 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Device8 +[Guid("9218e6bb-f944-4f7e-a75c-b1b2c7b701f3")] +[NativeTypeName("struct ID3D12Device8 : ID3D12Device7")] +[NativeInheritance("ID3D12Device7")] +public unsafe partial struct ID3D12Device8 +{ + public static ref readonly Guid IID_ID3D12Device8 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBB, 0xE6, 0x18, 0x92, + 0x44, 0xF9, + 0x7E, 0x4F, + 0xA7, + 0x5C, + 0xB1, + 0xB2, + 0xC7, + 0xB7, + 0x01, + 0xF3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device8)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device8*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device8*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device8*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device8*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNodeCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device8*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device8*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device8*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device8*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device8*)Unsafe.AsPointer(ref this), DescriptorHeapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device8*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device8*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device8*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device8*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) + { + HeapProperties result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device8*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device8*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device8*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device8*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device8*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device8*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device8*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetStablePowerState(Bool32 Enable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device8*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Luid GetAdapterLuid() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device8*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device8*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device8*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device8*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device8*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult CreateCommandList1(uint nodeMask, CommandListType type, CommandListFlags flags, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12Device8*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult CreateProtectedResourceSession(ProtectedResourceSessionDescription* pDesc, Guid* riid, void** ppSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CreateCommittedResource1(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult CreateHeap1(HeapDescription* pDesc, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult CreateReservedResource1(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, pProtectedSession, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public ResourceAllocationInfo GetResourceAllocationInfo1(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12Device8*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateLifetimeTracker(ID3D12LifetimeOwner* pOwner, Guid* riid, void** ppvTracker) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void RemoveDevice() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12Device8*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult EnumerateMetaCommands(uint* pNumMetaCommands, MetaCommandDescription* pDescs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult EnumerateMetaCommandParameters(Guid* CommandId, MetaCommandParameterStage Stage, uint* pTotalStructureSizeInBytes, uint* pParameterCount, MetaCommandParameterDescription* pParameterDescs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12Device8*)Unsafe.AsPointer(ref this), CommandId, Stage, pTotalStructureSizeInBytes, pParameterCount, pParameterDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateMetaCommand(Guid* CommandId, uint NodeMask, void* pCreationParametersData, nuint CreationParametersDataSizeInBytes, Guid* riid, void** ppMetaCommand) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12Device8*)Unsafe.AsPointer(ref this), CommandId, NodeMask, pCreationParametersData, CreationParametersDataSizeInBytes, riid, ppMetaCommand); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateStateObject(StateObjectDescription* pDesc, Guid* riid, void** ppStateObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void GetRaytracingAccelerationStructurePrebuildInfo(BuildRaytracingAccelerationStructureInputs* pDesc, RaytracingAccelerationStructurePrebuildInfo* pInfo) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, pInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public DriverMatchingIdentifierStatus CheckDriverMatchingIdentifier(SerializedDataType SerializedDataType, SerializedDataDriverMatchingIdentifier* pIdentifierToCheck) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12Device8*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult SetBackgroundProcessingMode(BackgroundProcessingMode Mode, MeasurementsAction MeasurementsAction, IntPtr hEventToSignalUponCompletion, Bool32* pbFurtherMeasurementsDesired) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12Device8*)Unsafe.AsPointer(ref this), Mode, MeasurementsAction, hEventToSignalUponCompletion, pbFurtherMeasurementsDesired); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult AddToStateObject(StateObjectDescription* pAddition, ID3D12StateObject* pStateObjectToGrowFrom, Guid* riid, void** ppNewStateObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pAddition, pStateObjectToGrowFrom, riid, ppNewStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CreateProtectedResourceSession1(ProtectedResourceSessionDescription1* pDesc, Guid* riid, void** ppSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public ResourceAllocationInfo GetResourceAllocationInfo2(uint visibleMask, uint numResourceDescs, ResourceDescription1* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D12Device8*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public HResult CreateCommittedResource2(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription1* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult CreatePlacedResource1(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription1* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void CreateSamplerFeedbackUnorderedAccessView(ID3D12Resource* pTargetedResource, ID3D12Resource* pFeedbackResource, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pTargetedResource, pFeedbackResource, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void GetCopyableFootprints1(ResourceDescription1* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D12Device8*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device9.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device9.cs new file mode 100644 index 0000000..a47110d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Device9.cs @@ -0,0 +1,671 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Device9 +[Guid("4c80e962-f032-4f60-bc9e-ebc2cfa1d83c")] +[NativeTypeName("struct ID3D12Device9 : ID3D12Device8")] +[NativeInheritance("ID3D12Device8")] +public unsafe partial struct ID3D12Device9 +{ + public static ref readonly Guid IID_ID3D12Device9 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x62, 0xE9, 0x80, 0x4C, + 0x32, 0xF0, + 0x60, 0x4F, + 0xBC, + 0x9E, + 0xEB, + 0xC2, + 0xCF, + 0xA1, + 0xD8, + 0x3C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device9)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Device9*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Device9*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Device9*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNodeCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Device9*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Device9*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCommandList(uint nodeMask, CommandListType type, ID3D12CommandAllocator* pCommandAllocator, ID3D12PipelineState* pInitialState, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Device9*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Device9*)Unsafe.AsPointer(ref this), DescriptorHeapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateRootSignature(uint nodeMask, void* pBlobWithRootSignature, nuint blobLengthInBytes, Guid* riid, void** ppvRootSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Device9*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void CreateUnorderedAccessView(ID3D12Resource* pResource, ID3D12Resource* pCounterResource, UnorderedAccessViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void CopyDescriptors(uint NumDestDescriptorRanges, CpuDescriptorHandle* pDestDescriptorRangeStarts, uint* pDestDescriptorRangeSizes, uint NumSrcDescriptorRanges, CpuDescriptorHandle* pSrcDescriptorRangeStarts, uint* pSrcDescriptorRangeSizes, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12Device9*)Unsafe.AsPointer(ref this), NumDestDescriptorRanges, pDestDescriptorRangeStarts, pDestDescriptorRangeSizes, NumSrcDescriptorRanges, pSrcDescriptorRangeStarts, pSrcDescriptorRangeSizes, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void CopyDescriptorsSimple(uint NumDescriptors, CpuDescriptorHandle* DestDescriptorRangeStart, CpuDescriptorHandle* SrcDescriptorRangeStart, DescriptorHeapType DescriptorHeapsType) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12Device9*)Unsafe.AsPointer(ref this), NumDescriptors, DestDescriptorRangeStart, SrcDescriptorRangeStart, DescriptorHeapsType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public ResourceAllocationInfo GetResourceAllocationInfo(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12Device9*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HeapProperties GetCustomHeapProperties(uint nodeMask, HeapType heapType) + { + HeapProperties result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12Device9*)Unsafe.AsPointer(ref this), &result, nodeMask, heapType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateCommittedResource(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateHeap(HeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreatePlacedResource(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateReservedResource(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateSharedHandle(ID3D12DeviceChild* pObject, Security.SECURITY_ATTRIBUTES* pAttributes, uint Access, ushort* Name, IntPtr* pHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult OpenSharedHandle(IntPtr NTHandle, Guid* riid, void** ppvObj) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12Device9*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult OpenSharedHandleByName(ushort* Name, uint Access, IntPtr* pNTHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12Device9*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12Device9*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12Device9*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12Device9*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void GetCopyableFootprints(ResourceDescription* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult CreateQueryHeap(QueryHeapDescription* pDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetStablePowerState(Bool32 Enable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, pRootSignature, riid, ppvCommandSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void GetResourceTiling(ID3D12Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipInfo* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Luid GetAdapterLuid() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12Device9*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12Device9*)Unsafe.AsPointer(ref this), ppFences, pFenceValues, NumFences, Flags, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult SetResidencyPriority(uint NumObjects, ID3D12Pageable** ppObjects, ResidencyPriority* pPriorities) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12Device9*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenExistingHeapFromFileMapping(IntPtr hFileMapping, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12Device9*)Unsafe.AsPointer(ref this), hFileMapping, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult EnqueueMakeResident(ResidencyFlags Flags, uint NumObjects, ID3D12Pageable** ppObjects, ID3D12Fence* pFenceToSignal, ulong FenceValueToSignal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Flags, NumObjects, ppObjects, pFenceToSignal, FenceValueToSignal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult CreateCommandList1(uint nodeMask, CommandListType type, CommandListFlags flags, Guid* riid, void** ppCommandList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12Device9*)Unsafe.AsPointer(ref this), nodeMask, type, flags, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult CreateProtectedResourceSession(ProtectedResourceSessionDescription* pDesc, Guid* riid, void** ppSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CreateCommittedResource1(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult CreateHeap1(HeapDescription* pDesc, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, pProtectedSession, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult CreateReservedResource1(ResourceDescription* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, InitialState, pOptimizedClearValue, pProtectedSession, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public ResourceAllocationInfo GetResourceAllocationInfo1(uint visibleMask, uint numResourceDescs, ResourceDescription* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12Device9*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult CreateLifetimeTracker(ID3D12LifetimeOwner* pOwner, Guid* riid, void** ppvTracker) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void RemoveDevice() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12Device9*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult EnumerateMetaCommands(uint* pNumMetaCommands, MetaCommandDescription* pDescs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pNumMetaCommands, pDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult EnumerateMetaCommandParameters(Guid* CommandId, MetaCommandParameterStage Stage, uint* pTotalStructureSizeInBytes, uint* pParameterCount, MetaCommandParameterDescription* pParameterDescs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12Device9*)Unsafe.AsPointer(ref this), CommandId, Stage, pTotalStructureSizeInBytes, pParameterCount, pParameterDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateMetaCommand(Guid* CommandId, uint NodeMask, void* pCreationParametersData, nuint CreationParametersDataSizeInBytes, Guid* riid, void** ppMetaCommand) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12Device9*)Unsafe.AsPointer(ref this), CommandId, NodeMask, pCreationParametersData, CreationParametersDataSizeInBytes, riid, ppMetaCommand); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult CreateStateObject(StateObjectDescription* pDesc, Guid* riid, void** ppStateObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void GetRaytracingAccelerationStructurePrebuildInfo(BuildRaytracingAccelerationStructureInputs* pDesc, RaytracingAccelerationStructurePrebuildInfo* pInfo) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, pInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public DriverMatchingIdentifierStatus CheckDriverMatchingIdentifier(SerializedDataType SerializedDataType, SerializedDataDriverMatchingIdentifier* pIdentifierToCheck) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12Device9*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult SetBackgroundProcessingMode(BackgroundProcessingMode Mode, MeasurementsAction MeasurementsAction, IntPtr hEventToSignalUponCompletion, Bool32* pbFurtherMeasurementsDesired) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Mode, MeasurementsAction, hEventToSignalUponCompletion, pbFurtherMeasurementsDesired); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult AddToStateObject(StateObjectDescription* pAddition, ID3D12StateObject* pStateObjectToGrowFrom, Guid* riid, void** ppNewStateObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pAddition, pStateObjectToGrowFrom, riid, ppNewStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CreateProtectedResourceSession1(ProtectedResourceSessionDescription1* pDesc, Guid* riid, void** ppSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public ResourceAllocationInfo GetResourceAllocationInfo2(uint visibleMask, uint numResourceDescs, ResourceDescription1* pResourceDescs, ResourceAllocationInfo1* pResourceAllocationInfo1) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D12Device9*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pResourceAllocationInfo1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public HResult CreateCommittedResource2(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription1* pDesc, ResourceStates InitialResourceState, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialResourceState, pOptimizedClearValue, pProtectedSession, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult CreatePlacedResource1(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription1* pDesc, ResourceStates InitialState, ClearValue* pOptimizedClearValue, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialState, pOptimizedClearValue, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void CreateSamplerFeedbackUnorderedAccessView(ID3D12Resource* pTargetedResource, ID3D12Resource* pFeedbackResource, CpuDescriptorHandle* DestDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pTargetedResource, pFeedbackResource, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void GetCopyableFootprints1(ResourceDescription1* pResourceDesc, uint FirstSubresource, uint NumSubresources, ulong BaseOffset, PlacedSubresourceFootprint* pLayouts, uint* pNumRows, ulong* pRowSizeInBytes, ulong* pTotalBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pResourceDesc, FirstSubresource, NumSubresources, BaseOffset, pLayouts, pNumRows, pRowSizeInBytes, pTotalBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public HResult CreateShaderCacheSession(ShaderCacheSessionDescription* pDesc, Guid* riid, void** ppvSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, riid, ppvSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public HResult ShaderCacheControl(ShaderCacheKindFlags Kinds, ShaderCacheControlFlags Control) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D12Device9*)Unsafe.AsPointer(ref this), Kinds, Control); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public HResult CreateCommandQueue1(CommandQueueDescription* pDesc, Guid* CreatorID, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D12Device9*)Unsafe.AsPointer(ref this), pDesc, CreatorID, riid, ppCommandQueue); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceChild.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceChild.cs new file mode 100644 index 0000000..d61feb7 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceChild.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DeviceChild +[Guid("905db94b-a00c-4140-9df5-2b64ca9ea357")] +[NativeTypeName("struct ID3D12DeviceChild : ID3D12Object")] +[NativeInheritance("ID3D12Object")] +public unsafe partial struct ID3D12DeviceChild +{ + public static ref readonly Guid IID_ID3D12DeviceChild + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4B, 0xB9, 0x5D, 0x90, + 0x0C, 0xA0, + 0x40, 0x41, + 0x9D, + 0xF5, + 0x2B, + 0x64, + 0xCA, + 0x9E, + 0xA3, + 0x57 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceChild)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceChild*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceChild*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceChild*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DeviceChild*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12DeviceChild*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedData.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedData.cs new file mode 100644 index 0000000..b330514 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedData.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DeviceRemovedExtendedData +[Guid("98931d33-5ae8-4791-aa3c-1a73a2934e71")] +[NativeTypeName("struct ID3D12DeviceRemovedExtendedData : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12DeviceRemovedExtendedData +{ + public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedData + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x33, 0x1D, 0x93, 0x98, + 0xE8, 0x5A, + 0x91, 0x47, + 0xAA, + 0x3C, + 0x1A, + 0x73, + 0xA2, + 0x93, + 0x4E, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedData)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetAutoBreadcrumbsOutput(DredAutoBreadcrumbsOutput* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedData*)Unsafe.AsPointer(ref this), pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPageFaultAllocationOutput(DredPageFaultOutput* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedData*)Unsafe.AsPointer(ref this), pOutput); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedData1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedData1.cs new file mode 100644 index 0000000..2d46e04 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedData1.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DeviceRemovedExtendedData1 +[Guid("9727a022-cf1d-4dda-9eba-effa653fc506")] +[NativeTypeName("struct ID3D12DeviceRemovedExtendedData1 : ID3D12DeviceRemovedExtendedData")] +[NativeInheritance("ID3D12DeviceRemovedExtendedData")] +public unsafe partial struct ID3D12DeviceRemovedExtendedData1 +{ + public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedData1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x22, 0xA0, 0x27, 0x97, + 0x1D, 0xCF, + 0xDA, 0x4D, + 0x9E, + 0xBA, + 0xEF, + 0xFA, + 0x65, + 0x3F, + 0xC5, + 0x06 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedData1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetAutoBreadcrumbsOutput(DredAutoBreadcrumbsOutput* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPageFaultAllocationOutput(DredPageFaultOutput* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetAutoBreadcrumbsOutput1(DredAutoBreadcrumbsOutput1* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetPageFaultAllocationOutput1(DredPageFaultOutput1* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedData2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedData2.cs new file mode 100644 index 0000000..9116193 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedData2.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DeviceRemovedExtendedData2 +[Guid("67fc5816-e4ca-4915-bf18-42541272da54")] +[NativeTypeName("struct ID3D12DeviceRemovedExtendedData2 : ID3D12DeviceRemovedExtendedData1")] +[NativeInheritance("ID3D12DeviceRemovedExtendedData1")] +public unsafe partial struct ID3D12DeviceRemovedExtendedData2 +{ + public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedData2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x16, 0x58, 0xFC, 0x67, + 0xCA, 0xE4, + 0x15, 0x49, + 0xBF, + 0x18, + 0x42, + 0x54, + 0x12, + 0x72, + 0xDA, + 0x54 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedData2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetAutoBreadcrumbsOutput(DredAutoBreadcrumbsOutput* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPageFaultAllocationOutput(DredPageFaultOutput* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetAutoBreadcrumbsOutput1(DredAutoBreadcrumbsOutput1* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetPageFaultAllocationOutput1(DredPageFaultOutput1* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetPageFaultAllocationOutput2(DredPageFaultOutput2* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this), pOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public DredDeviceState GetDeviceState() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12DeviceRemovedExtendedData2*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedDataSettings.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedDataSettings.cs new file mode 100644 index 0000000..0c620eb --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedDataSettings.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DeviceRemovedExtendedDataSettings +[Guid("82bc481c-6b9b-4030-aedb-7ee3d1df1e63")] +[NativeTypeName("struct ID3D12DeviceRemovedExtendedDataSettings : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings +{ + public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedDataSettings + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1C, 0x48, 0xBC, 0x82, + 0x9B, 0x6B, + 0x30, 0x40, + 0xAE, + 0xDB, + 0x7E, + 0xE3, + 0xD1, + 0xDF, + 0x1E, + 0x63 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedDataSettings)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void SetAutoBreadcrumbsEnablement(DredEnablement Enablement) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetPageFaultEnablement(DredEnablement Enablement) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetWatsonDumpEnablement(DredEnablement Enablement) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedDataSettings1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedDataSettings1.cs new file mode 100644 index 0000000..f5e6842 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12DeviceRemovedExtendedDataSettings1.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DeviceRemovedExtendedDataSettings1 +[Guid("dbd5ae51-3317-4f0a-adf9-1d7cedcaae0b")] +[NativeTypeName("struct ID3D12DeviceRemovedExtendedDataSettings1 : ID3D12DeviceRemovedExtendedDataSettings")] +[NativeInheritance("ID3D12DeviceRemovedExtendedDataSettings")] +public unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings1 +{ + public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedDataSettings1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x51, 0xAE, 0xD5, 0xDB, + 0x17, 0x33, + 0x0A, 0x4F, + 0xAD, + 0xF9, + 0x1D, + 0x7C, + 0xED, + 0xCA, + 0xAE, + 0x0B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedDataSettings1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void SetAutoBreadcrumbsEnablement(DredEnablement Enablement) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetPageFaultEnablement(DredEnablement Enablement) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetWatsonDumpEnablement(DredEnablement Enablement) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetBreadcrumbContextEnablement(DredEnablement Enablement) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Fence.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Fence.cs new file mode 100644 index 0000000..fde8e70 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Fence.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Fence +[Guid("0a753dcf-c4d8-4b91-adf6-be5a60d95a76")] +[NativeTypeName("struct ID3D12Fence : ID3D12Pageable")] +[NativeInheritance("ID3D12Pageable")] +public unsafe partial struct ID3D12Fence +{ + public static ref readonly Guid IID_ID3D12Fence + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCF, 0x3D, 0x75, 0x0A, + 0xD8, 0xC4, + 0x91, 0x4B, + 0xAD, + 0xF6, + 0xBE, + 0x5A, + 0x60, + 0xD9, + 0x5A, + 0x76 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Fence)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Fence*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Fence*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Fence*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Fence*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Fence*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public ulong GetCompletedValue() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Fence*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetEventOnCompletion(ulong Value, IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Fence*)Unsafe.AsPointer(ref this), Value, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Signal(ulong Value) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Fence*)Unsafe.AsPointer(ref this), Value); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Fence1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Fence1.cs new file mode 100644 index 0000000..9711956 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Fence1.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Fence1 +[Guid("433685fe-e22b-4ca0-a8db-b5b4f4dd0e4a")] +[NativeTypeName("struct ID3D12Fence1 : ID3D12Fence")] +[NativeInheritance("ID3D12Fence")] +public unsafe partial struct ID3D12Fence1 +{ + public static ref readonly Guid IID_ID3D12Fence1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFE, 0x85, 0x36, 0x43, + 0x2B, 0xE2, + 0xA0, 0x4C, + 0xA8, + 0xDB, + 0xB5, + 0xB4, + 0xF4, + 0xDD, + 0x0E, + 0x4A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Fence1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public ulong GetCompletedValue() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Fence1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetEventOnCompletion(ulong Value, IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), Value, hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Signal(ulong Value) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Fence1*)Unsafe.AsPointer(ref this), Value); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public FenceFlags GetCreationFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Fence1*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12FunctionParameterReflection.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12FunctionParameterReflection.cs new file mode 100644 index 0000000..eab74ba --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12FunctionParameterReflection.cs @@ -0,0 +1,63 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12FunctionParameterReflection +[Guid("ec25f42d-7006-4f2b-b33e-02cc3375733f")] +public unsafe partial struct ID3D12FunctionParameterReflection +{ + public static ref readonly Guid IID_ID3D12FunctionParameterReflection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2D, 0xF4, 0x25, 0xEC, + 0x06, 0x70, + 0x2B, 0x4F, + 0xB3, + 0x3E, + 0x02, + 0xCC, + 0x33, + 0x75, + 0x73, + 0x3F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12FunctionParameterReflection)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult GetDesc(ParameterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12FunctionParameterReflection*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12FunctionReflection.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12FunctionReflection.cs new file mode 100644 index 0000000..d283f06 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12FunctionReflection.cs @@ -0,0 +1,111 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12FunctionReflection +[Guid("1108795c-2772-4ba9-b2a8-d464dc7e2799")] +public unsafe partial struct ID3D12FunctionReflection +{ + public static ref readonly Guid IID_ID3D12FunctionReflection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5C, 0x79, 0x08, 0x11, + 0x72, 0x27, + 0xA9, 0x4B, + 0xB2, + 0xA8, + 0xD4, + 0x64, + 0xDC, + 0x7E, + 0x27, + 0x99 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12FunctionReflection)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult GetDesc(FunctionDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public ID3D12ShaderReflectionConstantBuffer GetConstantBufferByIndex(uint BufferIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), BufferIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public ID3D12ShaderReflectionConstantBuffer GetConstantBufferByName(sbyte* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetResourceBindingDesc(uint ResourceIndex, ShaderInputBindDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), ResourceIndex, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public ID3D12ShaderReflectionVariable GetVariableByName(sbyte* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetResourceBindingDescByName(sbyte* Name, ShaderInputBindDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), Name, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ID3D12FunctionParameterReflection GetFunctionParameter(int ParameterIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12FunctionReflection*)Unsafe.AsPointer(ref this), ParameterIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList.cs new file mode 100644 index 0000000..73ac193 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList.cs @@ -0,0 +1,539 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12GraphicsCommandList +[Guid("5b160d0f-ac1b-4185-8ba8-b3ae42a5a455")] +[NativeTypeName("struct ID3D12GraphicsCommandList : ID3D12CommandList")] +[NativeInheritance("ID3D12CommandList")] +public unsafe partial struct ID3D12GraphicsCommandList +{ + public static ref readonly Guid IID_ID3D12GraphicsCommandList + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0F, 0x0D, 0x16, 0x5B, + 0x1B, 0xAC, + 0x85, 0x41, + 0x8B, + 0xA8, + 0xB3, + 0xAE, + 0x42, + 0xA5, + 0xA4, + 0x55 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public new CommandListType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Close() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void ClearState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), PrimitiveTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void RSSetScissorRects(uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void OMSetBlendFactor(float* BlendFactor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), BlendFactor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void OMSetStencilRef(uint StencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void SetPipelineState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void IASetIndexBuffer(IndexBufferView* pView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pResource, pRegion); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public void SetMarker(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void BeginEvent(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void EndEvent() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList1.cs new file mode 100644 index 0000000..0751381 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList1.cs @@ -0,0 +1,587 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12GraphicsCommandList1 +[Guid("553103fb-1fe7-4557-bb38-946d7d0e7ca7")] +[NativeTypeName("struct ID3D12GraphicsCommandList1 : ID3D12GraphicsCommandList")] +[NativeInheritance("ID3D12GraphicsCommandList")] +public unsafe partial struct ID3D12GraphicsCommandList1 +{ + public static ref readonly Guid IID_ID3D12GraphicsCommandList1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFB, 0x03, 0x31, 0x55, + 0xE7, 0x1F, + 0x57, 0x45, + 0xBB, + 0x38, + 0x94, + 0x6D, + 0x7D, + 0x0E, + 0x7C, + 0xA7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public new CommandListType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Close() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void ClearState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), PrimitiveTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void RSSetScissorRects(uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void OMSetBlendFactor(float* BlendFactor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), BlendFactor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void OMSetStencilRef(uint StencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void SetPipelineState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void IASetIndexBuffer(IndexBufferView* pView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pResource, pRegion); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public void SetMarker(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void BeginEvent(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void EndEvent() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public void AtomicCopyBufferUINT(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void AtomicCopyBufferUINT64(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public void OMSetDepthBounds(float Min, float Max) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), Min, Max); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), NumSamplesPerPixel, NumPixels, pSamplePositions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void ResolveSubresourceRegion(ID3D12Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, ID3D12Resource* pSrcResource, uint SrcSubresource, RawRect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, pSrcResource, SrcSubresource, pSrcRect, Format, ResolveMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public void SetViewInstanceMask(uint Mask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12GraphicsCommandList1*)Unsafe.AsPointer(ref this), Mask); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList2.cs new file mode 100644 index 0000000..5fbe129 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList2.cs @@ -0,0 +1,595 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12GraphicsCommandList2 +[Guid("38c3e585-ff17-412c-9150-4fc6f9d72a28")] +[NativeTypeName("struct ID3D12GraphicsCommandList2 : ID3D12GraphicsCommandList1")] +[NativeInheritance("ID3D12GraphicsCommandList1")] +public unsafe partial struct ID3D12GraphicsCommandList2 +{ + public static ref readonly Guid IID_ID3D12GraphicsCommandList2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x85, 0xE5, 0xC3, 0x38, + 0x17, 0xFF, + 0x2C, 0x41, + 0x91, + 0x50, + 0x4F, + 0xC6, + 0xF9, + 0xD7, + 0x2A, + 0x28 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public new CommandListType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Close() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void ClearState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), PrimitiveTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void RSSetScissorRects(uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void OMSetBlendFactor(float* BlendFactor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), BlendFactor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void OMSetStencilRef(uint StencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void SetPipelineState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void IASetIndexBuffer(IndexBufferView* pView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pResource, pRegion); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public void SetMarker(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void BeginEvent(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void EndEvent() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public void AtomicCopyBufferUINT(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void AtomicCopyBufferUINT64(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public void OMSetDepthBounds(float Min, float Max) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Min, Max); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), NumSamplesPerPixel, NumPixels, pSamplePositions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void ResolveSubresourceRegion(ID3D12Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, ID3D12Resource* pSrcResource, uint SrcSubresource, RawRect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, pSrcResource, SrcSubresource, pSrcRect, Format, ResolveMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public void SetViewInstanceMask(uint Mask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Mask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void WriteBufferImmediate(uint Count, WriteBufferImmediateParameter* pParams, WriteBufferImmediateMode* pModes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12GraphicsCommandList2*)Unsafe.AsPointer(ref this), Count, pParams, pModes); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList3.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList3.cs new file mode 100644 index 0000000..20334ae --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList3.cs @@ -0,0 +1,603 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12GraphicsCommandList3 +[Guid("6fda83a7-b84c-4e38-9ac8-c7bd22016b3d")] +[NativeTypeName("struct ID3D12GraphicsCommandList3 : ID3D12GraphicsCommandList2")] +[NativeInheritance("ID3D12GraphicsCommandList2")] +public unsafe partial struct ID3D12GraphicsCommandList3 +{ + public static ref readonly Guid IID_ID3D12GraphicsCommandList3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA7, 0x83, 0xDA, 0x6F, + 0x4C, 0xB8, + 0x38, 0x4E, + 0x9A, + 0xC8, + 0xC7, + 0xBD, + 0x22, + 0x01, + 0x6B, + 0x3D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public new CommandListType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Close() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void ClearState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), PrimitiveTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void RSSetScissorRects(uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void OMSetBlendFactor(float* BlendFactor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), BlendFactor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void OMSetStencilRef(uint StencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void SetPipelineState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void IASetIndexBuffer(IndexBufferView* pView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pResource, pRegion); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public void SetMarker(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void BeginEvent(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void EndEvent() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public void AtomicCopyBufferUINT(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void AtomicCopyBufferUINT64(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public void OMSetDepthBounds(float Min, float Max) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Min, Max); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), NumSamplesPerPixel, NumPixels, pSamplePositions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void ResolveSubresourceRegion(ID3D12Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, ID3D12Resource* pSrcResource, uint SrcSubresource, RawRect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, pSrcResource, SrcSubresource, pSrcRect, Format, ResolveMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public void SetViewInstanceMask(uint Mask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Mask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void WriteBufferImmediate(uint Count, WriteBufferImmediateParameter* pParams, WriteBufferImmediateMode* pModes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), Count, pParams, pModes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12GraphicsCommandList3*)Unsafe.AsPointer(ref this), pProtectedResourceSession); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList4.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList4.cs new file mode 100644 index 0000000..23b8122 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList4.cs @@ -0,0 +1,675 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12GraphicsCommandList4 +[Guid("8754318e-d3a9-4541-98cf-645b50dc4874")] +[NativeTypeName("struct ID3D12GraphicsCommandList4 : ID3D12GraphicsCommandList3")] +[NativeInheritance("ID3D12GraphicsCommandList3")] +public unsafe partial struct ID3D12GraphicsCommandList4 +{ + public static ref readonly Guid IID_ID3D12GraphicsCommandList4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8E, 0x31, 0x54, 0x87, + 0xA9, 0xD3, + 0x41, 0x45, + 0x98, + 0xCF, + 0x64, + 0x5B, + 0x50, + 0xDC, + 0x48, + 0x74 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public new CommandListType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Close() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void ClearState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), PrimitiveTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void RSSetScissorRects(uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void OMSetBlendFactor(float* BlendFactor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), BlendFactor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void OMSetStencilRef(uint StencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void SetPipelineState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void IASetIndexBuffer(IndexBufferView* pView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pResource, pRegion); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public void SetMarker(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void BeginEvent(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void EndEvent() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public void AtomicCopyBufferUINT(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void AtomicCopyBufferUINT64(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public void OMSetDepthBounds(float Min, float Max) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Min, Max); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumSamplesPerPixel, NumPixels, pSamplePositions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void ResolveSubresourceRegion(ID3D12Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, ID3D12Resource* pSrcResource, uint SrcSubresource, RawRect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, pSrcResource, SrcSubresource, pSrcRect, Format, ResolveMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public void SetViewInstanceMask(uint Mask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Mask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void WriteBufferImmediate(uint Count, WriteBufferImmediateParameter* pParams, WriteBufferImmediateMode* pModes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), Count, pParams, pModes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pProtectedResourceSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public void BeginRenderPass(uint NumRenderTargets, RenderPassRenderTargetDescription* pRenderTargets, RenderPassDepthStencilDescription* pDepthStencil, RenderPassFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), NumRenderTargets, pRenderTargets, pDepthStencil, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public void EndRenderPass() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public void InitializeMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pInitializationParametersData, nuint InitializationParametersDataSizeInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pMetaCommand, pInitializationParametersData, InitializationParametersDataSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void ExecuteMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pExecutionParametersData, nuint ExecutionParametersDataSizeInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pMetaCommand, pExecutionParametersData, ExecutionParametersDataSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void BuildRaytracingAccelerationStructure(BuildRaytracingAccelerationStructureDescription* pDesc, uint NumPostbuildInfoDescs, RaytracingAccelerationStructurePostbuildInfoDescription* pPostbuildInfoDescs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDesc, NumPostbuildInfoDescs, pPostbuildInfoDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void EmitRaytracingAccelerationStructurePostbuildInfo(RaytracingAccelerationStructurePostbuildInfoDescription* pDesc, uint NumSourceAccelerationStructures, ulong* pSourceAccelerationStructureData) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDesc, NumSourceAccelerationStructures, pSourceAccelerationStructureData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void CopyRaytracingAccelerationStructure(ulong DestAccelerationStructureData, ulong SourceAccelerationStructureData, RaytracingAccelerationStructureCopyMode Mode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), DestAccelerationStructureData, SourceAccelerationStructureData, Mode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void SetPipelineState1(ID3D12StateObject* pStateObject) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void DispatchRays(DispatchRaysDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D12GraphicsCommandList4*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList5.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList5.cs new file mode 100644 index 0000000..669aceb --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList5.cs @@ -0,0 +1,691 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12GraphicsCommandList5 +[Guid("55050859-4024-474c-87f5-6472eaee44ea")] +[NativeTypeName("struct ID3D12GraphicsCommandList5 : ID3D12GraphicsCommandList4")] +[NativeInheritance("ID3D12GraphicsCommandList4")] +public unsafe partial struct ID3D12GraphicsCommandList5 +{ + public static ref readonly Guid IID_ID3D12GraphicsCommandList5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x08, 0x05, 0x55, + 0x24, 0x40, + 0x4C, 0x47, + 0x87, + 0xF5, + 0x64, + 0x72, + 0xEA, + 0xEE, + 0x44, + 0xEA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList5)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public new CommandListType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Close() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void ClearState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), PrimitiveTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void RSSetScissorRects(uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void OMSetBlendFactor(float* BlendFactor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), BlendFactor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void OMSetStencilRef(uint StencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void SetPipelineState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void IASetIndexBuffer(IndexBufferView* pView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pResource, pRegion); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public void SetMarker(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void BeginEvent(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void EndEvent() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public void AtomicCopyBufferUINT(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void AtomicCopyBufferUINT64(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public void OMSetDepthBounds(float Min, float Max) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Min, Max); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumSamplesPerPixel, NumPixels, pSamplePositions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void ResolveSubresourceRegion(ID3D12Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, ID3D12Resource* pSrcResource, uint SrcSubresource, RawRect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, pSrcResource, SrcSubresource, pSrcRect, Format, ResolveMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public void SetViewInstanceMask(uint Mask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Mask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void WriteBufferImmediate(uint Count, WriteBufferImmediateParameter* pParams, WriteBufferImmediateMode* pModes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), Count, pParams, pModes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pProtectedResourceSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public void BeginRenderPass(uint NumRenderTargets, RenderPassRenderTargetDescription* pRenderTargets, RenderPassDepthStencilDescription* pDepthStencil, RenderPassFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), NumRenderTargets, pRenderTargets, pDepthStencil, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public void EndRenderPass() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public void InitializeMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pInitializationParametersData, nuint InitializationParametersDataSizeInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pMetaCommand, pInitializationParametersData, InitializationParametersDataSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void ExecuteMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pExecutionParametersData, nuint ExecutionParametersDataSizeInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pMetaCommand, pExecutionParametersData, ExecutionParametersDataSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void BuildRaytracingAccelerationStructure(BuildRaytracingAccelerationStructureDescription* pDesc, uint NumPostbuildInfoDescs, RaytracingAccelerationStructurePostbuildInfoDescription* pPostbuildInfoDescs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDesc, NumPostbuildInfoDescs, pPostbuildInfoDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void EmitRaytracingAccelerationStructurePostbuildInfo(RaytracingAccelerationStructurePostbuildInfoDescription* pDesc, uint NumSourceAccelerationStructures, ulong* pSourceAccelerationStructureData) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDesc, NumSourceAccelerationStructures, pSourceAccelerationStructureData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void CopyRaytracingAccelerationStructure(ulong DestAccelerationStructureData, ulong SourceAccelerationStructureData, RaytracingAccelerationStructureCopyMode Mode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), DestAccelerationStructureData, SourceAccelerationStructureData, Mode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void SetPipelineState1(ID3D12StateObject* pStateObject) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void DispatchRays(DispatchRaysDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void RSSetShadingRate(ShadingRate baseShadingRate, ShadingRateCombiner* combiners) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), baseShadingRate, combiners); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void RSSetShadingRateImage(ID3D12Resource* shadingRateImage) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D12GraphicsCommandList5*)Unsafe.AsPointer(ref this), shadingRateImage); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList6.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList6.cs new file mode 100644 index 0000000..4e5e8a4 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12GraphicsCommandList6.cs @@ -0,0 +1,699 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12GraphicsCommandList6 +[Guid("c3827890-e548-4cfa-96cf-5689a9370f80")] +[NativeTypeName("struct ID3D12GraphicsCommandList6 : ID3D12GraphicsCommandList5")] +[NativeInheritance("ID3D12GraphicsCommandList5")] +public unsafe partial struct ID3D12GraphicsCommandList6 +{ + public static ref readonly Guid IID_ID3D12GraphicsCommandList6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x90, 0x78, 0x82, 0xC3, + 0x48, 0xE5, + 0xFA, 0x4C, + 0x96, + 0xCF, + 0x56, + 0x89, + 0xA9, + 0x37, + 0x0F, + 0x80 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList6)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public new CommandListType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Close() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void ClearState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), VertexCountPerInstance, InstanceCount, StartVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), IndexCountPerInstance, InstanceCount, StartIndexLocation, BaseVertexLocation, StartInstanceLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void CopyBufferRegion(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, ulong NumBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, NumBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void CopyTextureRegion(TextureCopyLocation* pDst, uint DstX, uint DstY, uint DstZ, TextureCopyLocation* pSrc, Box* pSrcBox) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstResource, pSrcResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CopyTiles(ID3D12Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D12Resource* pBuffer, ulong BufferStartOffsetInBytes, TileCopyFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pTiledResource, pTileRegionStartCoordinate, pTileRegionSize, pBuffer, BufferStartOffsetInBytes, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void ResolveSubresource(ID3D12Resource* pDstResource, uint DstSubresource, ID3D12Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), PrimitiveTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void RSSetScissorRects(uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void OMSetBlendFactor(float* BlendFactor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), BlendFactor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void OMSetStencilRef(uint StencilRef) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void SetPipelineState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle* BaseDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public void SetComputeRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetGraphicsRoot32BitConstants(uint RootParameterIndex, uint Num32BitValuesToSet, void* pSrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void IASetIndexBuffer(IndexBufferView* pView) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void OMSetRenderTargets(uint NumRenderTargetDescriptors, CpuDescriptorHandle* pRenderTargetDescriptors, Bool32 RTsSingleHandleToDescriptorRange, CpuDescriptorHandle* pDepthStencilDescriptor) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumRenderTargetDescriptors, pRenderTargetDescriptors, RTsSingleHandleToDescriptorRange, pDepthStencilDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void ClearDepthStencilView(CpuDescriptorHandle* DepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void ClearRenderTargetView(CpuDescriptorHandle* RenderTargetView, float* ColorRGBA, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), RenderTargetView, ColorRGBA, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public void ClearUnorderedAccessViewUint(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, uint* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public void ClearUnorderedAccessViewFloat(GpuDescriptorHandle* ViewGPUHandleInCurrentHeap, CpuDescriptorHandle* ViewCPUHandle, ID3D12Resource* pResource, float* Values, uint NumRects, RawRect* pRects) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pResource, pRegion); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public void ResolveQueryData(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint StartIndex, uint NumQueries, ID3D12Resource* pDestinationBuffer, ulong AlignedDestinationBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOp Operation) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public void SetMarker(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void BeginEvent(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void EndEvent() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public void ExecuteIndirect(ID3D12CommandSignature* pCommandSignature, uint MaxCommandCount, ID3D12Resource* pArgumentBuffer, ulong ArgumentBufferOffset, ID3D12Resource* pCountBuffer, ulong CountBufferOffset) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pCommandSignature, MaxCommandCount, pArgumentBuffer, ArgumentBufferOffset, pCountBuffer, CountBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public void AtomicCopyBufferUINT(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public void AtomicCopyBufferUINT64(ID3D12Resource* pDstBuffer, ulong DstOffset, ID3D12Resource* pSrcBuffer, ulong SrcOffset, uint Dependencies, ID3D12Resource** ppDependentResources, SubresourceRangeUint64* pDependentSubresourceRanges) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstBuffer, DstOffset, pSrcBuffer, SrcOffset, Dependencies, ppDependentResources, pDependentSubresourceRanges); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public void OMSetDepthBounds(float Min, float Max) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Min, Max); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumSamplesPerPixel, NumPixels, pSamplePositions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public void ResolveSubresourceRegion(ID3D12Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, ID3D12Resource* pSrcResource, uint SrcSubresource, RawRect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, DstX, DstY, pSrcResource, SrcSubresource, pSrcRect, Format, ResolveMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public void SetViewInstanceMask(uint Mask) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Mask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void WriteBufferImmediate(uint Count, WriteBufferImmediateParameter* pParams, WriteBufferImmediateMode* pModes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), Count, pParams, pModes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pProtectedResourceSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public void BeginRenderPass(uint NumRenderTargets, RenderPassRenderTargetDescription* pRenderTargets, RenderPassDepthStencilDescription* pDepthStencil, RenderPassFlags Flags) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), NumRenderTargets, pRenderTargets, pDepthStencil, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public void EndRenderPass() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public void InitializeMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pInitializationParametersData, nuint InitializationParametersDataSizeInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pMetaCommand, pInitializationParametersData, InitializationParametersDataSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void ExecuteMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pExecutionParametersData, nuint ExecutionParametersDataSizeInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pMetaCommand, pExecutionParametersData, ExecutionParametersDataSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void BuildRaytracingAccelerationStructure(BuildRaytracingAccelerationStructureDescription* pDesc, uint NumPostbuildInfoDescs, RaytracingAccelerationStructurePostbuildInfoDescription* pPostbuildInfoDescs) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDesc, NumPostbuildInfoDescs, pPostbuildInfoDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void EmitRaytracingAccelerationStructurePostbuildInfo(RaytracingAccelerationStructurePostbuildInfoDescription* pDesc, uint NumSourceAccelerationStructures, ulong* pSourceAccelerationStructureData) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDesc, NumSourceAccelerationStructures, pSourceAccelerationStructureData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void CopyRaytracingAccelerationStructure(ulong DestAccelerationStructureData, ulong SourceAccelerationStructureData, RaytracingAccelerationStructureCopyMode Mode) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), DestAccelerationStructureData, SourceAccelerationStructureData, Mode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void SetPipelineState1(ID3D12StateObject* pStateObject) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void DispatchRays(DispatchRaysDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void RSSetShadingRate(ShadingRate baseShadingRate, ShadingRateCombiner* combiners) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), baseShadingRate, combiners); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void RSSetShadingRateImage(ID3D12Resource* shadingRateImage) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), shadingRateImage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public void DispatchMesh(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((ID3D12GraphicsCommandList6*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Heap.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Heap.cs new file mode 100644 index 0000000..830b45d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Heap.cs @@ -0,0 +1,132 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Heap +[Guid("6b3b2502-6e51-45b3-90ee-9884265e8df3")] +[NativeTypeName("struct ID3D12Heap : ID3D12Pageable")] +[NativeInheritance("ID3D12Pageable")] +public unsafe partial struct ID3D12Heap +{ + public static ref readonly Guid IID_ID3D12Heap + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x02, 0x25, 0x3B, 0x6B, + 0x51, 0x6E, + 0xB3, 0x45, + 0x90, + 0xEE, + 0x98, + 0x84, + 0x26, + 0x5E, + 0x8D, + 0xF3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Heap)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Heap*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Heap*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Heap*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Heap*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Heap*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HeapDescription GetDesc() + { + HeapDescription result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Heap*)Unsafe.AsPointer(ref this), &result); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Heap1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Heap1.cs new file mode 100644 index 0000000..b221867 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Heap1.cs @@ -0,0 +1,140 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Heap1 +[Guid("572f7389-2168-49e3-9693-d6df5871bf6d")] +[NativeTypeName("struct ID3D12Heap1 : ID3D12Heap")] +[NativeInheritance("ID3D12Heap")] +public unsafe partial struct ID3D12Heap1 +{ + public static ref readonly Guid IID_ID3D12Heap1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x89, 0x73, 0x2F, 0x57, + 0x68, 0x21, + 0xE3, 0x49, + 0x96, + 0x93, + 0xD6, + 0xDF, + 0x58, + 0x71, + 0xBF, + 0x6D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Heap1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HeapDescription GetDesc() + { + HeapDescription result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetProtectedResourceSession(Guid* riid, void** ppProtectedSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Heap1*)Unsafe.AsPointer(ref this), riid, ppProtectedSession); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12InfoQueue.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12InfoQueue.cs new file mode 100644 index 0000000..aeba7a6 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12InfoQueue.cs @@ -0,0 +1,363 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12InfoQueue +[Guid("0742a90b-c387-483f-b946-30a7e4e61458")] +[NativeTypeName("struct ID3D12InfoQueue : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12InfoQueue +{ + public static ref readonly Guid IID_ID3D12InfoQueue + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0B, 0xA9, 0x42, 0x07, + 0x87, 0xC3, + 0x3F, 0x48, + 0xB9, + 0x46, + 0x30, + 0xA7, + 0xE4, + 0xE6, + 0x14, + 0x58 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12InfoQueue)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetMessageCountLimit(ulong MessageCountLimit) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), MessageCountLimit); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void ClearStoredMessages() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetMessage(ulong MessageIndex, Message* pMessage, nuint* pMessageByteLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), MessageIndex, pMessage, pMessageByteLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ulong GetNumMessagesAllowedByStorageFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public ulong GetNumMessagesDeniedByStorageFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public ulong GetNumStoredMessages() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ulong GetNumStoredMessagesAllowedByRetrievalFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ulong GetNumMessagesDiscardedByMessageCountLimit() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public ulong GetMessageCountLimit() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult AddStorageFilterEntries(InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetStorageFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void ClearStorageFilter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult PushEmptyStorageFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult PushCopyOfStorageFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult PushStorageFilter(InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void PopStorageFilter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public uint GetStorageFilterStackSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult AddRetrievalFilterEntries(InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetRetrievalFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void ClearRetrievalFilter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult PushEmptyRetrievalFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult PushCopyOfRetrievalFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult PushRetrievalFilter(InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void PopRetrievalFilter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public uint GetRetrievalFilterStackSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult AddMessage(MessageCategory Category, MessageSeverity Severity, MessageId ID, sbyte* pDescription) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Category, Severity, ID, pDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult AddApplicationMessage(MessageSeverity Severity, sbyte* pDescription) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Severity, pDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult SetBreakOnCategory(MessageCategory Category, Bool32 bEnable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Category, bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult SetBreakOnSeverity(MessageSeverity Severity, Bool32 bEnable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Severity, bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult SetBreakOnID(MessageId ID, Bool32 bEnable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), ID, bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public Bool32 GetBreakOnCategory(MessageCategory Category) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Category); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public Bool32 GetBreakOnSeverity(MessageSeverity Severity) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), Severity); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public Bool32 GetBreakOnID(MessageId ID) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), ID); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetMuteDebugOutput(Bool32 bMute) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this), bMute); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public Bool32 GetMuteDebugOutput() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12InfoQueue*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12InfoQueue1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12InfoQueue1.cs new file mode 100644 index 0000000..3538d94 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12InfoQueue1.cs @@ -0,0 +1,379 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12InfoQueue1 +[Guid("2852dd88-b484-4c0c-b6b1-67168500e600")] +[NativeTypeName("struct ID3D12InfoQueue1 : ID3D12InfoQueue")] +[NativeInheritance("ID3D12InfoQueue")] +public unsafe partial struct ID3D12InfoQueue1 +{ + public static ref readonly Guid IID_ID3D12InfoQueue1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x88, 0xDD, 0x52, 0x28, + 0x84, 0xB4, + 0x0C, 0x4C, + 0xB6, + 0xB1, + 0x67, + 0x16, + 0x85, + 0x00, + 0xE6, + 0x00 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12InfoQueue1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetMessageCountLimit(ulong MessageCountLimit) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), MessageCountLimit); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void ClearStoredMessages() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetMessage(ulong MessageIndex, Message* pMessage, nuint* pMessageByteLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), MessageIndex, pMessage, pMessageByteLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ulong GetNumMessagesAllowedByStorageFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public ulong GetNumMessagesDeniedByStorageFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public ulong GetNumStoredMessages() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ulong GetNumStoredMessagesAllowedByRetrievalFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ulong GetNumMessagesDiscardedByMessageCountLimit() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public ulong GetMessageCountLimit() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult AddStorageFilterEntries(InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetStorageFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void ClearStorageFilter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult PushEmptyStorageFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult PushCopyOfStorageFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult PushStorageFilter(InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void PopStorageFilter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public uint GetStorageFilterStackSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult AddRetrievalFilterEntries(InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetRetrievalFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter, pFilterByteLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void ClearRetrievalFilter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult PushEmptyRetrievalFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult PushCopyOfRetrievalFilter() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult PushRetrievalFilter(InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void PopRetrievalFilter() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public uint GetRetrievalFilterStackSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult AddMessage(MessageCategory Category, MessageSeverity Severity, MessageId ID, sbyte* pDescription) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Category, Severity, ID, pDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult AddApplicationMessage(MessageSeverity Severity, sbyte* pDescription) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Severity, pDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult SetBreakOnCategory(MessageCategory Category, Bool32 bEnable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Category, bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult SetBreakOnSeverity(MessageSeverity Severity, Bool32 bEnable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Severity, bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult SetBreakOnID(MessageId ID, Bool32 bEnable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), ID, bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public Bool32 GetBreakOnCategory(MessageCategory Category) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Category); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public Bool32 GetBreakOnSeverity(MessageSeverity Severity) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), Severity); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public Bool32 GetBreakOnID(MessageId ID) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), ID); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetMuteDebugOutput(Bool32 bMute) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), bMute); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public Bool32 GetMuteDebugOutput() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult RegisterMessageCallback(delegate* unmanaged[Stdcall] CallbackFunc, MessageCallbackFlags CallbackFilterFlags, void* pContext, uint* pCallbackCookie) + { + return ((delegate* unmanaged[Stdcall], MessageCallbackFlags, void*, uint*, int>)(lpVtbl[38]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), CallbackFunc, CallbackFilterFlags, pContext, pCallbackCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult UnregisterMessageCallback(uint CallbackCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((ID3D12InfoQueue1*)Unsafe.AsPointer(ref this), CallbackCookie); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12LibraryReflection.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12LibraryReflection.cs new file mode 100644 index 0000000..6bd281c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12LibraryReflection.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12LibraryReflection +[Guid("8e349d19-54db-4a56-9dc9-119d87bdb804")] +[NativeTypeName("struct ID3D12LibraryReflection : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12LibraryReflection +{ + public static ref readonly Guid IID_ID3D12LibraryReflection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x19, 0x9D, 0x34, 0x8E, + 0xDB, 0x54, + 0x56, 0x4A, + 0x9D, + 0xC9, + 0x11, + 0x9D, + 0x87, + 0xBD, + 0xB8, + 0x04 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12LibraryReflection)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetDesc(LibraryDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12LibraryReflection*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public ID3D12FunctionReflection GetFunctionByIndex(int FunctionIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12LibraryReflection*)Unsafe.AsPointer(ref this), FunctionIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12LifetimeOwner.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12LifetimeOwner.cs new file mode 100644 index 0000000..52d096c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12LifetimeOwner.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12LifetimeOwner +[Guid("e667af9f-cd56-4f46-83ce-032e595d70a8")] +[NativeTypeName("struct ID3D12LifetimeOwner : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12LifetimeOwner +{ + public static ref readonly Guid IID_ID3D12LifetimeOwner + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9F, 0xAF, 0x67, 0xE6, + 0x56, 0xCD, + 0x46, 0x4F, + 0x83, + 0xCE, + 0x03, + 0x2E, + 0x59, + 0x5D, + 0x70, + 0xA8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12LifetimeOwner)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void LifetimeStateUpdated(LifetimeState NewState) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12LifetimeOwner*)Unsafe.AsPointer(ref this), NewState); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12LifetimeTracker.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12LifetimeTracker.cs new file mode 100644 index 0000000..cf74650 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12LifetimeTracker.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12LifetimeTracker +[Guid("3fd03d36-4eb1-424a-a582-494ecb8ba813")] +[NativeTypeName("struct ID3D12LifetimeTracker : ID3D12DeviceChild")] +[NativeInheritance("ID3D12DeviceChild")] +public unsafe partial struct ID3D12LifetimeTracker +{ + public static ref readonly Guid IID_ID3D12LifetimeTracker + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x36, 0x3D, 0xD0, 0x3F, + 0xB1, 0x4E, + 0x4A, 0x42, + 0xA5, + 0x82, + 0x49, + 0x4E, + 0xCB, + 0x8B, + 0xA8, + 0x13 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12LifetimeTracker)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult DestroyOwnedObject(ID3D12DeviceChild* pObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12LifetimeTracker*)Unsafe.AsPointer(ref this), pObject); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12MetaCommand.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12MetaCommand.cs new file mode 100644 index 0000000..d405eff --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12MetaCommand.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12MetaCommand +[Guid("dbb84c27-36ce-4fc9-b801-f048c46ac570")] +[NativeTypeName("struct ID3D12MetaCommand : ID3D12Pageable")] +[NativeInheritance("ID3D12Pageable")] +public unsafe partial struct ID3D12MetaCommand +{ + public static ref readonly Guid IID_ID3D12MetaCommand + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x27, 0x4C, 0xB8, 0xDB, + 0xCE, 0x36, + 0xC9, 0x4F, + 0xB8, + 0x01, + 0xF0, + 0x48, + 0xC4, + 0x6A, + 0xC5, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12MetaCommand)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public ulong GetRequiredParameterResourceSize(MetaCommandParameterStage Stage, uint ParameterIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12MetaCommand*)Unsafe.AsPointer(ref this), Stage, ParameterIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Object.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Object.cs new file mode 100644 index 0000000..0bb4fa0 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Object.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Object +[Guid("c4fec28f-7966-4e95-9f94-f431cb56c3b8")] +[NativeTypeName("struct ID3D12Object : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12Object +{ + public static ref readonly Guid IID_ID3D12Object + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8F, 0xC2, 0xFE, 0xC4, + 0x66, 0x79, + 0x95, 0x4E, + 0x9F, + 0x94, + 0xF4, + 0x31, + 0xCB, + 0x56, + 0xC3, + 0xB8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Object)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Object*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Object*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Object*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Object*)Unsafe.AsPointer(ref this), Name); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Pageable.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Pageable.cs new file mode 100644 index 0000000..fd93739 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Pageable.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Pageable +[Guid("63ee58fb-1268-4835-86da-f008ce62f0d6")] +[NativeTypeName("struct ID3D12Pageable : ID3D12DeviceChild")] +[NativeInheritance("ID3D12DeviceChild")] +public unsafe partial struct ID3D12Pageable +{ + public static ref readonly Guid IID_ID3D12Pageable + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFB, 0x58, 0xEE, 0x63, + 0x68, 0x12, + 0x35, 0x48, + 0x86, + 0xDA, + 0xF0, + 0x08, + 0xCE, + 0x62, + 0xF0, + 0xD6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Pageable)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Pageable*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Pageable*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Pageable*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Pageable*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Pageable*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12PipelineLibrary.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12PipelineLibrary.cs new file mode 100644 index 0000000..038d624 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12PipelineLibrary.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12PipelineLibrary +[Guid("c64226a8-9201-46af-b4cc-53fb9ff7414f")] +[NativeTypeName("struct ID3D12PipelineLibrary : ID3D12DeviceChild")] +[NativeInheritance("ID3D12DeviceChild")] +public unsafe partial struct ID3D12PipelineLibrary +{ + public static ref readonly Guid IID_ID3D12PipelineLibrary + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA8, 0x26, 0x42, 0xC6, + 0x01, 0x92, + 0xAF, 0x46, + 0xB4, + 0xCC, + 0x53, + 0xFB, + 0x9F, + 0xF7, + 0x41, + 0x4F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12PipelineLibrary)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult StorePipeline(ushort* pName, ID3D12PipelineState* pPipeline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), pName, pPipeline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult LoadGraphicsPipeline(ushort* pName, GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult LoadComputePipeline(ushort* pName, ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public nuint GetSerializedSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Serialize(void* pData, nuint DataSizeInBytes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12PipelineLibrary*)Unsafe.AsPointer(ref this), pData, DataSizeInBytes); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12PipelineLibrary1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12PipelineLibrary1.cs new file mode 100644 index 0000000..0cb2e47 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12PipelineLibrary1.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12PipelineLibrary1 +[Guid("80eabf42-2568-4e5e-bd82-c37f86961dc3")] +[NativeTypeName("struct ID3D12PipelineLibrary1 : ID3D12PipelineLibrary")] +[NativeInheritance("ID3D12PipelineLibrary")] +public unsafe partial struct ID3D12PipelineLibrary1 +{ + public static ref readonly Guid IID_ID3D12PipelineLibrary1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x42, 0xBF, 0xEA, 0x80, + 0x68, 0x25, + 0x5E, 0x4E, + 0xBD, + 0x82, + 0xC3, + 0x7F, + 0x86, + 0x96, + 0x1D, + 0xC3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12PipelineLibrary1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult StorePipeline(ushort* pName, ID3D12PipelineState* pPipeline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pName, pPipeline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult LoadGraphicsPipeline(ushort* pName, GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult LoadComputePipeline(ushort* pName, ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public nuint GetSerializedSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Serialize(void* pData, nuint DataSizeInBytes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pData, DataSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult LoadPipeline(ushort* pName, PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12PipelineLibrary1*)Unsafe.AsPointer(ref this), pName, pDesc, riid, ppPipelineState); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12PipelineState.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12PipelineState.cs new file mode 100644 index 0000000..0e1c9df --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12PipelineState.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12PipelineState +[Guid("765a30f3-f624-4c6f-a828-ace948622445")] +[NativeTypeName("struct ID3D12PipelineState : ID3D12Pageable")] +[NativeInheritance("ID3D12Pageable")] +public unsafe partial struct ID3D12PipelineState +{ + public static ref readonly Guid IID_ID3D12PipelineState + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF3, 0x30, 0x5A, 0x76, + 0x24, 0xF6, + 0x6F, 0x4C, + 0xA8, + 0x28, + 0xAC, + 0xE9, + 0x48, + 0x62, + 0x24, + 0x45 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12PipelineState)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12PipelineState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12PipelineState*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12PipelineState*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12PipelineState*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12PipelineState*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetCachedBlob(Graphics.Direct3D.ID3DBlob** ppBlob) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12PipelineState*)Unsafe.AsPointer(ref this), ppBlob); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ProtectedResourceSession.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ProtectedResourceSession.cs new file mode 100644 index 0000000..8490131 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ProtectedResourceSession.cs @@ -0,0 +1,148 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12ProtectedResourceSession +[Guid("6cd696f4-f289-40cc-8091-5a6c0a099c3d")] +[NativeTypeName("struct ID3D12ProtectedResourceSession : ID3D12ProtectedSession")] +[NativeInheritance("ID3D12ProtectedSession")] +public unsafe partial struct ID3D12ProtectedResourceSession +{ + public static ref readonly Guid IID_ID3D12ProtectedResourceSession + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF4, 0x96, 0xD6, 0x6C, + 0x89, 0xF2, + 0xCC, 0x40, + 0x80, + 0x91, + 0x5A, + 0x6C, + 0x0A, + 0x09, + 0x9C, + 0x3D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ProtectedResourceSession)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetStatusFence(Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ProtectedSessionStatus GetSessionStatus() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ProtectedResourceSessionDescription GetDesc() + { + ProtectedResourceSessionDescription result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12ProtectedResourceSession*)Unsafe.AsPointer(ref this), &result); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ProtectedResourceSession1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ProtectedResourceSession1.cs new file mode 100644 index 0000000..a950577 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ProtectedResourceSession1.cs @@ -0,0 +1,157 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12ProtectedResourceSession1 +[Guid("d6f12dd6-76fb-406e-8961-4296eefc0409")] +[NativeTypeName("struct ID3D12ProtectedResourceSession1 : ID3D12ProtectedResourceSession")] +[NativeInheritance("ID3D12ProtectedResourceSession")] +public unsafe partial struct ID3D12ProtectedResourceSession1 +{ + public static ref readonly Guid IID_ID3D12ProtectedResourceSession1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD6, 0x2D, 0xF1, 0xD6, + 0xFB, 0x76, + 0x6E, 0x40, + 0x89, + 0x61, + 0x42, + 0x96, + 0xEE, + 0xFC, + 0x04, + 0x09 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ProtectedResourceSession1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetStatusFence(Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ProtectedSessionStatus GetSessionStatus() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ProtectedResourceSessionDescription GetDesc() + { + ProtectedResourceSessionDescription result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public ProtectedResourceSessionDescription1 GetDesc1() + { + ProtectedResourceSessionDescription1 result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12ProtectedResourceSession1*)Unsafe.AsPointer(ref this), &result); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ProtectedSession.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ProtectedSession.cs new file mode 100644 index 0000000..c260fc7 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ProtectedSession.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12ProtectedSession +[Guid("a1533d18-0ac1-4084-85b9-89a96116806b")] +[NativeTypeName("struct ID3D12ProtectedSession : ID3D12DeviceChild")] +[NativeInheritance("ID3D12DeviceChild")] +public unsafe partial struct ID3D12ProtectedSession +{ + public static ref readonly Guid IID_ID3D12ProtectedSession + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x18, 0x3D, 0x53, 0xA1, + 0xC1, 0x0A, + 0x84, 0x40, + 0x85, + 0xB9, + 0x89, + 0xA9, + 0x61, + 0x16, + 0x80, + 0x6B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ProtectedSession)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetStatusFence(Guid* riid, void** ppFence) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this), riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ProtectedSessionStatus GetSessionStatus() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12ProtectedSession*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12QueryHeap.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12QueryHeap.cs new file mode 100644 index 0000000..46235db --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12QueryHeap.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12QueryHeap +[Guid("0d9658ae-ed45-469e-a61d-970ec583cab4")] +[NativeTypeName("struct ID3D12QueryHeap : ID3D12Pageable")] +[NativeInheritance("ID3D12Pageable")] +public unsafe partial struct ID3D12QueryHeap +{ + public static ref readonly Guid IID_ID3D12QueryHeap + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAE, 0x58, 0x96, 0x0D, + 0x45, 0xED, + 0x9E, 0x46, + 0xA6, + 0x1D, + 0x97, + 0x0E, + 0xC5, + 0x83, + 0xCA, + 0xB4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12QueryHeap)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12QueryHeap*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12QueryHeap*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12QueryHeap*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12QueryHeap*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12QueryHeap*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Resource.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Resource.cs new file mode 100644 index 0000000..53a0229 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Resource.cs @@ -0,0 +1,180 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Resource +[Guid("696442be-a72e-4059-bc79-5b5c98040fad")] +[NativeTypeName("struct ID3D12Resource : ID3D12Pageable")] +[NativeInheritance("ID3D12Pageable")] +public unsafe partial struct ID3D12Resource +{ + public static ref readonly Guid IID_ID3D12Resource + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBE, 0x42, 0x64, 0x69, + 0x2E, 0xA7, + 0x59, 0x40, + 0xBC, + 0x79, + 0x5B, + 0x5C, + 0x98, + 0x04, + 0x0F, + 0xAD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Resource)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Resource*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Resource*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Resource*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Resource*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Resource*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Map(uint Subresource, Range* pReadRange, void** ppData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Resource*)Unsafe.AsPointer(ref this), Subresource, pReadRange, ppData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void Unmap(uint Subresource, Range* pWrittenRange) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Resource*)Unsafe.AsPointer(ref this), Subresource, pWrittenRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ResourceDescription GetDesc() + { + ResourceDescription result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Resource*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public ulong GetGPUVirtualAddress() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Resource*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult WriteToSubresource(uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Resource*)Unsafe.AsPointer(ref this), DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, uint SrcSubresource, Box* pSrcBox) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Resource*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, SrcSubresource, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetHeapProperties(HeapProperties* pHeapProperties, HeapFlags* pHeapFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Resource*)Unsafe.AsPointer(ref this), pHeapProperties, pHeapFlags); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Resource1.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Resource1.cs new file mode 100644 index 0000000..6541ac9 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Resource1.cs @@ -0,0 +1,188 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Resource1 +[Guid("9d5e227a-4430-4161-88b3-3eca6bb16e19")] +[NativeTypeName("struct ID3D12Resource1 : ID3D12Resource")] +[NativeInheritance("ID3D12Resource")] +public unsafe partial struct ID3D12Resource1 +{ + public static ref readonly Guid IID_ID3D12Resource1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7A, 0x22, 0x5E, 0x9D, + 0x30, 0x44, + 0x61, 0x41, + 0x88, + 0xB3, + 0x3E, + 0xCA, + 0x6B, + 0xB1, + 0x6E, + 0x19 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Resource1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Map(uint Subresource, Range* pReadRange, void** ppData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), Subresource, pReadRange, ppData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void Unmap(uint Subresource, Range* pWrittenRange) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), Subresource, pWrittenRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ResourceDescription GetDesc() + { + ResourceDescription result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public ulong GetGPUVirtualAddress() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Resource1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult WriteToSubresource(uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, uint SrcSubresource, Box* pSrcBox) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, SrcSubresource, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetHeapProperties(HeapProperties* pHeapProperties, HeapFlags* pHeapFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), pHeapProperties, pHeapFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetProtectedResourceSession(Guid* riid, void** ppProtectedSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Resource1*)Unsafe.AsPointer(ref this), riid, ppProtectedSession); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Resource2.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Resource2.cs new file mode 100644 index 0000000..ec4871d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Resource2.cs @@ -0,0 +1,197 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Resource2 +[Guid("be36ec3b-ea85-4aeb-a45a-e9d76404a495")] +[NativeTypeName("struct ID3D12Resource2 : ID3D12Resource1")] +[NativeInheritance("ID3D12Resource1")] +public unsafe partial struct ID3D12Resource2 +{ + public static ref readonly Guid IID_ID3D12Resource2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3B, 0xEC, 0x36, 0xBE, + 0x85, 0xEA, + 0xEB, 0x4A, + 0xA4, + 0x5A, + 0xE9, + 0xD7, + 0x64, + 0x04, + 0xA4, + 0x95 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Resource2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Map(uint Subresource, Range* pReadRange, void** ppData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), Subresource, pReadRange, ppData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void Unmap(uint Subresource, Range* pWrittenRange) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), Subresource, pWrittenRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ResourceDescription GetDesc() + { + ResourceDescription result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public ulong GetGPUVirtualAddress() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12Resource2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult WriteToSubresource(uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, uint SrcSubresource, Box* pSrcBox) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, SrcSubresource, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetHeapProperties(HeapProperties* pHeapProperties, HeapFlags* pHeapFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), pHeapProperties, pHeapFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetProtectedResourceSession(Guid* riid, void** ppProtectedSession) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), riid, ppProtectedSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public ResourceDescription1 GetDesc1() + { + ResourceDescription1 result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12Resource2*)Unsafe.AsPointer(ref this), &result); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12RootSignature.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12RootSignature.cs new file mode 100644 index 0000000..217e6ed --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12RootSignature.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12RootSignature +[Guid("c54a6b66-72df-4ee8-8be5-a946a1429214")] +[NativeTypeName("struct ID3D12RootSignature : ID3D12DeviceChild")] +[NativeInheritance("ID3D12DeviceChild")] +public unsafe partial struct ID3D12RootSignature +{ + public static ref readonly Guid IID_ID3D12RootSignature + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x66, 0x6B, 0x4A, 0xC5, + 0xDF, 0x72, + 0xE8, 0x4E, + 0x8B, + 0xE5, + 0xA9, + 0x46, + 0xA1, + 0x42, + 0x92, + 0x14 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12RootSignature)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12RootSignature*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12RootSignature*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12RootSignature*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12RootSignature*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12RootSignature*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12RootSignatureDeserializer.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12RootSignatureDeserializer.cs new file mode 100644 index 0000000..0bf558e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12RootSignatureDeserializer.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12RootSignatureDeserializer +[Guid("34ab647b-3cc8-46ac-841b-c0965645c046")] +[NativeTypeName("struct ID3D12RootSignatureDeserializer : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12RootSignatureDeserializer +{ + public static ref readonly Guid IID_ID3D12RootSignatureDeserializer + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7B, 0x64, 0xAB, 0x34, + 0xC8, 0x3C, + 0xAC, 0x46, + 0x84, + 0x1B, + 0xC0, + 0x96, + 0x56, + 0x45, + 0xC0, + 0x46 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12RootSignatureDeserializer)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public RootSignatureDescription* GetRootSignatureDesc() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12RootSignatureDeserializer*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12SDKConfiguration.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12SDKConfiguration.cs new file mode 100644 index 0000000..0aaafe5 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12SDKConfiguration.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12SDKConfiguration +[Guid("e9eb5314-33aa-42b2-a718-d77f58b1f1c7")] +[NativeTypeName("struct ID3D12SDKConfiguration : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12SDKConfiguration +{ + public static ref readonly Guid IID_ID3D12SDKConfiguration + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x14, 0x53, 0xEB, 0xE9, + 0xAA, 0x33, + 0xB2, 0x42, + 0xA7, + 0x18, + 0xD7, + 0x7F, + 0x58, + 0xB1, + 0xF1, + 0xC7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SDKConfiguration)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetSDKVersion(uint SDKVersion, sbyte* SDKPath) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12SDKConfiguration*)Unsafe.AsPointer(ref this), SDKVersion, SDKPath); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderCacheSession.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderCacheSession.cs new file mode 100644 index 0000000..e4aaec8 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderCacheSession.cs @@ -0,0 +1,156 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12ShaderCacheSession +[Guid("28e2495d-0f64-4ae4-a6ec-129255dc49a8")] +[NativeTypeName("struct ID3D12ShaderCacheSession : ID3D12DeviceChild")] +[NativeInheritance("ID3D12DeviceChild")] +public unsafe partial struct ID3D12ShaderCacheSession +{ + public static ref readonly Guid IID_ID3D12ShaderCacheSession + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5D, 0x49, 0xE2, 0x28, + 0x64, 0x0F, + 0xE4, 0x4A, + 0xA6, + 0xEC, + 0x12, + 0x92, + 0x55, + 0xDC, + 0x49, + 0xA8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderCacheSession)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult FindValue(void* pKey, uint KeySize, void* pValue, uint* pValueSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), pKey, KeySize, pValue, pValueSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult StoreValue(void* pKey, uint KeySize, void* pValue, uint ValueSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), pKey, KeySize, pValue, ValueSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public void SetDeleteOnDestroy() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public ShaderCacheSessionDescription GetDesc() + { + ShaderCacheSessionDescription result; + return *((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12ShaderCacheSession*)Unsafe.AsPointer(ref this), &result); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflection.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflection.cs new file mode 100644 index 0000000..cf5e24c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflection.cs @@ -0,0 +1,235 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12ShaderReflection +[Guid("5a58797d-a72c-478d-8ba2-efc6b0efe88e")] +[NativeTypeName("struct ID3D12ShaderReflection : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12ShaderReflection +{ + public static ref readonly Guid IID_ID3D12ShaderReflection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7D, 0x79, 0x58, 0x5A, + 0x2C, 0xA7, + 0x8D, 0x47, + 0x8B, + 0xA2, + 0xEF, + 0xC6, + 0xB0, + 0xEF, + 0xE8, + 0x8E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflection)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetDesc(ShaderDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public ID3D12ShaderReflectionConstantBuffer GetConstantBufferByIndex(uint Index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public ID3D12ShaderReflectionConstantBuffer GetConstantBufferByName(sbyte* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetResourceBindingDesc(uint ResourceIndex, ShaderInputBindDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), ResourceIndex, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetInputParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetOutputParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetPatchConstantParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), ParameterIndex, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ID3D12ShaderReflectionVariable GetVariableByName(sbyte* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetResourceBindingDescByName(sbyte* Name, ShaderInputBindDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), Name, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public uint GetMovInstructionCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public uint GetMovcInstructionCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public uint GetConversionInstructionCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetBitwiseInstructionCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public Graphics.Direct3D.Primitive GetGSInputPrimitive() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public Bool32 IsSampleFrequencyShader() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public uint GetNumInterfaceSlots() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetMinFeatureLevel(Graphics.Direct3D.FeatureLevel* pLevel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), pLevel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetThreadGroupSize(uint* pSizeX, uint* pSizeY, uint* pSizeZ) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this), pSizeX, pSizeY, pSizeZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public ulong GetRequiresFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((ID3D12ShaderReflection*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflectionConstantBuffer.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflectionConstantBuffer.cs new file mode 100644 index 0000000..cd94adc --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflectionConstantBuffer.cs @@ -0,0 +1,79 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12ShaderReflectionConstantBuffer +[Guid("c59598b4-48b3-4869-b9b1-b1618b14a8b7")] +public unsafe partial struct ID3D12ShaderReflectionConstantBuffer +{ + public static ref readonly Guid IID_ID3D12ShaderReflectionConstantBuffer + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB4, 0x98, 0x95, 0xC5, + 0xB3, 0x48, + 0x69, 0x48, + 0xB9, + 0xB1, + 0xB1, + 0x61, + 0x8B, + 0x14, + 0xA8, + 0xB7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionConstantBuffer)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult GetDesc(ShaderBufferDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public ID3D12ShaderReflectionVariable GetVariableByIndex(uint Index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D12ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public ID3D12ShaderReflectionVariable GetVariableByName(sbyte* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D12ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Name); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflectionType.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflectionType.cs new file mode 100644 index 0000000..17b5212 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflectionType.cs @@ -0,0 +1,143 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12ShaderReflectionType +[Guid("e913c351-783d-48ca-a1d1-4f306284ad56")] +public unsafe partial struct ID3D12ShaderReflectionType +{ + public static ref readonly Guid IID_ID3D12ShaderReflectionType + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x51, 0xC3, 0x13, 0xE9, + 0x3D, 0x78, + 0xCA, 0x48, + 0xA1, + 0xD1, + 0x4F, + 0x30, + 0x62, + 0x84, + 0xAD, + 0x56 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionType)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult GetDesc(ShaderTypeDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public ID3D12ShaderReflectionType GetMemberTypeByIndex(uint Index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public ID3D12ShaderReflectionType GetMemberTypeByName(sbyte* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public sbyte* GetMemberTypeName(uint Index) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult IsEqual(ID3D12ShaderReflectionType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public ID3D12ShaderReflectionType GetSubType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ID3D12ShaderReflectionType GetBaseClass() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNumInterfaces() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public ID3D12ShaderReflectionType GetInterfaceByIndex(uint uIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), uIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult IsOfType(ID3D12ShaderReflectionType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult ImplementsInterface(ID3D12ShaderReflectionType* pBase) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D12ShaderReflectionType*)Unsafe.AsPointer(ref this), pBase); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflectionVariable.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflectionVariable.cs new file mode 100644 index 0000000..54a4f1f --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12ShaderReflectionVariable.cs @@ -0,0 +1,87 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12ShaderReflectionVariable +[Guid("8337a8a6-a216-444a-b2f4-314733a73aea")] +public unsafe partial struct ID3D12ShaderReflectionVariable +{ + public static ref readonly Guid IID_ID3D12ShaderReflectionVariable + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA6, 0xA8, 0x37, 0x83, + 0x16, 0xA2, + 0x4A, 0x44, + 0xB2, + 0xF4, + 0x31, + 0x47, + 0x33, + 0xA7, + 0x3A, + 0xEA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionVariable)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult GetDesc(ShaderVariableDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12ShaderReflectionVariable*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public new ID3D12ShaderReflectionType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D12ShaderReflectionVariable*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public ID3D12ShaderReflectionConstantBuffer GetBuffer() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D12ShaderReflectionVariable*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetInterfaceSlot(uint uArrayIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12ShaderReflectionVariable*)Unsafe.AsPointer(ref this), uArrayIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12SharingContract.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12SharingContract.cs new file mode 100644 index 0000000..05d7499 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12SharingContract.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12SharingContract +[Guid("0adf7d52-929c-4e61-addb-ffed30de66ef")] +[NativeTypeName("struct ID3D12SharingContract : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12SharingContract +{ + public static ref readonly Guid IID_ID3D12SharingContract + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x52, 0x7D, 0xDF, 0x0A, + 0x9C, 0x92, + 0x61, 0x4E, + 0xAD, + 0xDB, + 0xFF, + 0xED, + 0x30, + 0xDE, + 0x66, + 0xEF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SharingContract)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void Present(ID3D12Resource* pResource, uint Subresource, IntPtr window) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12SharingContract*)Unsafe.AsPointer(ref this), pResource, Subresource, window); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SharedFenceSignal(ID3D12Fence* pFence, ulong FenceValue) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12SharingContract*)Unsafe.AsPointer(ref this), pFence, FenceValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void BeginCapturableWork(Guid* guid) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12SharingContract*)Unsafe.AsPointer(ref this), guid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void EndCapturableWork(Guid* guid) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12SharingContract*)Unsafe.AsPointer(ref this), guid); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12StateObject.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12StateObject.cs new file mode 100644 index 0000000..3d20d17 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12StateObject.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12StateObject +[Guid("47016943-fca8-4594-93ea-af258b55346d")] +[NativeTypeName("struct ID3D12StateObject : ID3D12Pageable")] +[NativeInheritance("ID3D12Pageable")] +public unsafe partial struct ID3D12StateObject +{ + public static ref readonly Guid IID_ID3D12StateObject + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x43, 0x69, 0x01, 0x47, + 0xA8, 0xFC, + 0x94, 0x45, + 0x93, + 0xEA, + 0xAF, + 0x25, + 0x8B, + 0x55, + 0x34, + 0x6D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12StateObject)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12StateObject*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12StateObject*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12StateObject*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12StateObject*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D12StateObject*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12StateObjectProperties.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12StateObjectProperties.cs new file mode 100644 index 0000000..2c96c36 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12StateObjectProperties.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12StateObjectProperties +[Guid("de5fa827-9bf9-4f26-89ff-d7f56fde3860")] +[NativeTypeName("struct ID3D12StateObjectProperties : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12StateObjectProperties +{ + public static ref readonly Guid IID_ID3D12StateObjectProperties + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x27, 0xA8, 0x5F, 0xDE, + 0xF9, 0x9B, + 0x26, 0x4F, + 0x89, + 0xFF, + 0xD7, + 0xF5, + 0x6F, + 0xDE, + 0x38, + 0x60 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12StateObjectProperties)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void* GetShaderIdentifier(ushort* pExportName) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this), pExportName); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public ulong GetShaderStackSize(ushort* pExportName) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this), pExportName); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public ulong GetPipelineStackSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetPipelineStackSize(ulong PipelineStackSizeInBytes) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12StateObjectProperties*)Unsafe.AsPointer(ref this), PipelineStackSizeInBytes); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12SwapChainAssistant.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12SwapChainAssistant.cs new file mode 100644 index 0000000..aa1ed95 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12SwapChainAssistant.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12SwapChainAssistant +[Guid("f1df64b6-57fd-49cd-8807-c0eb88b45c8f")] +[NativeTypeName("struct ID3D12SwapChainAssistant : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12SwapChainAssistant +{ + public static ref readonly Guid IID_ID3D12SwapChainAssistant + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB6, 0x64, 0xDF, 0xF1, + 0xFD, 0x57, + 0xCD, 0x49, + 0x88, + 0x07, + 0xC0, + 0xEB, + 0x88, + 0xB4, + 0x5C, + 0x8F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12SwapChainAssistant)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public Luid GetLUID() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetSwapChainObject(Guid* riid, void** ppv) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this), riid, ppv); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetCurrentResourceAndCommandQueue(Guid* riidResource, void** ppvResource, Guid* riidQueue, void** ppvQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this), riidResource, ppvResource, riidQueue, ppvQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult InsertImplicitSync() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12SwapChainAssistant*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Tools.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Tools.cs new file mode 100644 index 0000000..d25d20d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12Tools.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Tools +[Guid("7071e1f0-e84b-4b33-974f-12fa49de65c5")] +[NativeTypeName("struct ID3D12Tools : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12Tools +{ + public static ref readonly Guid IID_ID3D12Tools + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF0, 0xE1, 0x71, 0x70, + 0x4B, 0xE8, + 0x33, 0x4B, + 0x97, + 0x4F, + 0x12, + 0xFA, + 0x49, + 0xDE, + 0x65, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Tools)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void EnableShaderInstrumentation(Bool32 bEnable) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12Tools*)Unsafe.AsPointer(ref this), bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public Bool32 ShaderInstrumentationEnabled() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12Tools*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12VersionedRootSignatureDeserializer.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12VersionedRootSignatureDeserializer.cs new file mode 100644 index 0000000..b06b59e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D12/ID3D12VersionedRootSignatureDeserializer.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12VersionedRootSignatureDeserializer +[Guid("7f91ce67-090c-4bb7-b78e-ed8ff2e31da0")] +[NativeTypeName("struct ID3D12VersionedRootSignatureDeserializer : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12VersionedRootSignatureDeserializer +{ + public static ref readonly Guid IID_ID3D12VersionedRootSignatureDeserializer + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x67, 0xCE, 0x91, 0x7F, + 0x0C, 0x09, + 0xB7, 0x4B, + 0xB7, + 0x8E, + 0xED, + 0x8F, + 0xF2, + 0xE3, + 0x1D, + 0xA0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12VersionedRootSignatureDeserializer)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetRootSignatureDescAtVersion(RootSignatureVersion convertToVersion, VersionedRootSignatureDescription** ppDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12VersionedRootSignatureDeserializer*)Unsafe.AsPointer(ref this), convertToVersion, ppDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public VersionedRootSignatureDescription* GetUnconvertedRootSignatureDesc() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12VersionedRootSignatureDeserializer*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite.cs index b706c62..b52d8ce 100644 --- a/src/Vortice.Win32/Generated/Graphics/DirectWrite.cs +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite.cs @@ -3055,18181 +3055,6 @@ public partial struct FontAxisRange #endregion Structs #region COM Types -/// -/// IDWriteFontFileLoader -[Guid("727cad4e-d6af-4c9e-8a08-d695b11caa49")] -[NativeTypeName("struct IDWriteFontFileLoader : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFileLoader -{ - public static ref readonly Guid IID_IDWriteFontFileLoader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4E, 0xAD, 0x7C, 0x72, - 0xAF, 0xD6, - 0x9E, 0x4C, - 0x8A, - 0x08, - 0xD6, - 0x95, - 0xB1, - 0x1C, - 0xAA, - 0x49 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileLoader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileStream** fontFileStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileStream); - } -} - -/// -/// IDWriteLocalFontFileLoader -[Guid("b2d9f3ec-c9fe-4a11-a2ec-d86208f7c0a2")] -[NativeTypeName("struct IDWriteLocalFontFileLoader : IDWriteFontFileLoader")] -[NativeInheritance("IDWriteFontFileLoader")] -public unsafe partial struct IDWriteLocalFontFileLoader -{ - public static ref readonly Guid IID_IDWriteLocalFontFileLoader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEC, 0xF3, 0xD9, 0xB2, - 0xFE, 0xC9, - 0x11, 0x4A, - 0xA2, - 0xEC, - 0xD8, - 0x62, - 0x08, - 0xF7, - 0xC0, - 0xA2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteLocalFontFileLoader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileStream** fontFileStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteLocalFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFilePathLengthFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, uint* filePathLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteLocalFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, filePathLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetFilePathFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, ushort* filePath, uint filePathSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteLocalFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, filePath, filePathSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetLastWriteTimeFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, ulong* lastWriteTime) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteLocalFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, lastWriteTime); - } -} - -/// -/// IDWriteFontFileStream -[Guid("6d4865fe-0ab8-4d91-8f62-5dd6be34a3e0")] -[NativeTypeName("struct IDWriteFontFileStream : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFileStream -{ - public static ref readonly Guid IID_IDWriteFontFileStream - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFE, 0x65, 0x48, 0x6D, - 0xB8, 0x0A, - 0x91, 0x4D, - 0x8F, - 0x62, - 0x5D, - 0xD6, - 0xBE, - 0x34, - 0xA3, - 0xE0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileStream)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult ReadFileFragment(void** fragmentStart, ulong fileOffset, ulong fragmentSize, void** fragmentContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), fragmentStart, fileOffset, fragmentSize, fragmentContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void ReleaseFileFragment(void* fragmentContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), fragmentContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetFileSize(ulong* fileSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), fileSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetLastWriteTime(ulong* lastWriteTime) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), lastWriteTime); - } -} - -/// -/// IDWriteFontFile -[Guid("739d886a-cef5-47dc-8769-1a8b41bebbb0")] -[NativeTypeName("struct IDWriteFontFile : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFile -{ - public static ref readonly Guid IID_IDWriteFontFile - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6A, 0x88, 0x9D, 0x73, - 0xF5, 0xCE, - 0xDC, 0x47, - 0x87, - 0x69, - 0x1A, - 0x8B, - 0x41, - 0xBE, - 0xBB, - 0xB0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFile)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetReferenceKey(void** fontFileReferenceKey, uint* fontFileReferenceKeySize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetLoader(IDWriteFontFileLoader** fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult Analyze(Bool32* isSupportedFontType, FontFileType* fontFileType, FontFaceType* fontFaceType, uint* numberOfFaces) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), isSupportedFontType, fontFileType, fontFaceType, numberOfFaces); - } -} - -/// -/// IDWriteRenderingParams -[Guid("2f0da53a-2add-47cd-82ee-d9ec34688e75")] -[NativeTypeName("struct IDWriteRenderingParams : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteRenderingParams -{ - public static ref readonly Guid IID_IDWriteRenderingParams - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3A, 0xA5, 0x0D, 0x2F, - 0xDD, 0x2A, - 0xCD, 0x47, - 0x82, - 0xEE, - 0xD9, - 0xEC, - 0x34, - 0x68, - 0x8E, - 0x75 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRenderingParams)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public float GetGamma() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteRenderingParams*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public float GetEnhancedContrast() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteRenderingParams*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public float GetClearTypeLevel() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteRenderingParams*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public PixelGeometry GetPixelGeometry() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteRenderingParams*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public RenderingMode GetRenderingMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteRenderingParams*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteFontFace -[Guid("5f49804d-7024-4d43-bfa9-d25984f53849")] -[NativeTypeName("struct IDWriteFontFace : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFace -{ - public static ref readonly Guid IID_IDWriteFontFace - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x80, 0x49, 0x5F, - 0x24, 0x70, - 0x43, 0x4D, - 0xBF, - 0xA9, - 0xD2, - 0x59, - 0x84, - 0xF5, - 0x38, - 0x49 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public new FontFaceType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetIndex() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public Bool32 IsSymbolFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetMetrics(FontMetrics* fontFaceMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public ushort GetGlyphCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void ReleaseFontTable(void* tableContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), tableContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); - } -} - -/// -/// IDWriteFontCollectionLoader -[Guid("cca920e4-52f0-492b-bfa8-29c72ee0a468")] -[NativeTypeName("struct IDWriteFontCollectionLoader : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontCollectionLoader -{ - public static ref readonly Guid IID_IDWriteFontCollectionLoader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE4, 0x20, 0xA9, 0xCC, - 0xF0, 0x52, - 0x2B, 0x49, - 0xBF, - 0xA8, - 0x29, - 0xC7, - 0x2E, - 0xE0, - 0xA4, - 0x68 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollectionLoader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateEnumeratorFromKey(IDWriteFactory* factory, void* collectionKey, uint collectionKeySize, IDWriteFontFileEnumerator** fontFileEnumerator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontCollectionLoader*)Unsafe.AsPointer(ref this), factory, collectionKey, collectionKeySize, fontFileEnumerator); - } -} - -/// -/// IDWriteFontFileEnumerator -[Guid("72755049-5ff7-435d-8348-4be97cfa6c7c")] -[NativeTypeName("struct IDWriteFontFileEnumerator : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFileEnumerator -{ - public static ref readonly Guid IID_IDWriteFontFileEnumerator - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0x50, 0x75, 0x72, - 0xF7, 0x5F, - 0x5D, 0x43, - 0x83, - 0x48, - 0x4B, - 0xE9, - 0x7C, - 0xFA, - 0x6C, - 0x7C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileEnumerator)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult MoveNext(Bool32* hasCurrentFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFileEnumerator*)Unsafe.AsPointer(ref this), hasCurrentFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCurrentFontFile(IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFileEnumerator*)Unsafe.AsPointer(ref this), fontFile); - } -} - -/// -/// IDWriteLocalizedStrings -[Guid("08256209-099a-4b34-b86d-c22b110e7771")] -[NativeTypeName("struct IDWriteLocalizedStrings : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteLocalizedStrings -{ - public static ref readonly Guid IID_IDWriteLocalizedStrings - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x09, 0x62, 0x25, 0x08, - 0x9A, 0x09, - 0x34, 0x4B, - 0xB8, - 0x6D, - 0xC2, - 0x2B, - 0x11, - 0x0E, - 0x77, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteLocalizedStrings)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult FindLocaleName(ushort* localeName, uint* index, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), localeName, index, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetLocaleNameLength(uint index, uint* length) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, length); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetLocaleName(uint index, ushort* localeName, uint size) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, localeName, size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetStringLength(uint index, uint* length) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, length); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetString(uint index, ushort* stringBuffer, uint size) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, stringBuffer, size); - } -} - -/// -/// IDWriteFontCollection -[Guid("a84cee02-3eea-4eee-a827-87c1a02a0fcc")] -[NativeTypeName("struct IDWriteFontCollection : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontCollection -{ - public static ref readonly Guid IID_IDWriteFontCollection - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x02, 0xEE, 0x4C, 0xA8, - 0xEA, 0x3E, - 0xEE, 0x4E, - 0xA8, - 0x27, - 0x87, - 0xC1, - 0xA0, - 0x2A, - 0x0F, - 0xCC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetFontFamilyCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), index, fontFamily); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), familyName, index, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), fontFace, font); - } -} - -/// -/// IDWriteFontList -[Guid("1a0d8438-1d97-4ec1-aef9-a2fb86ed6acb")] -[NativeTypeName("struct IDWriteFontList : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontList -{ - public static ref readonly Guid IID_IDWriteFontList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x38, 0x84, 0x0D, 0x1A, - 0x97, 0x1D, - 0xC1, 0x4E, - 0xAE, - 0xF9, - 0xA2, - 0xFB, - 0x86, - 0xED, - 0x6A, - 0xCB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontList*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetFontCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontList*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetFont(uint index, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontList*)Unsafe.AsPointer(ref this), index, font); - } -} - -/// -/// IDWriteFontFamily -[Guid("da20d8ef-812a-4c43-9802-62ec4abd7add")] -[NativeTypeName("struct IDWriteFontFamily : IDWriteFontList")] -[NativeInheritance("IDWriteFontList")] -public unsafe partial struct IDWriteFontFamily -{ - public static ref readonly Guid IID_IDWriteFontFamily - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEF, 0xD8, 0x20, 0xDA, - 0x2A, 0x81, - 0x43, 0x4C, - 0x98, - 0x02, - 0x62, - 0xEC, - 0x4A, - 0xBD, - 0x7A, - 0xDD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetFontCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetFont(uint index, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), index, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFamilyNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetFirstMatchingFont(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFont** matchingFont) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFont); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetMatchingFonts(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFontList** matchingFonts) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFonts); - } -} - -/// -/// IDWriteFont -[Guid("acd16696-8c14-4f5d-877e-fe3fc1d32737")] -[NativeTypeName("struct IDWriteFont : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFont -{ - public static ref readonly Guid IID_IDWriteFont - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x96, 0x66, 0xD1, 0xAC, - 0x14, 0x8C, - 0x5D, 0x4F, - 0x87, - 0x7E, - 0xFE, - 0x3F, - 0xC1, - 0xD3, - 0x27, - 0x37 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetFontFamily(IDWriteFontFamily** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFont*)Unsafe.AsPointer(ref this), fontFamily); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public FontWeight GetWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFont*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public FontStretch GetStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFont*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public FontStyle GetStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFont*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public Bool32 IsSymbolFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFont*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFaceNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFont*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFont*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFont*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void GetMetrics(FontMetrics* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFont*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult HasCharacter(uint unicodeValue, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFont*)Unsafe.AsPointer(ref this), unicodeValue, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateFontFace(IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFont*)Unsafe.AsPointer(ref this), fontFace); - } -} - -/// -/// IDWriteTextFormat -[Guid("9c906818-31d7-4fd3-a151-7c5e225db55a")] -[NativeTypeName("struct IDWriteTextFormat : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteTextFormat -{ - public static ref readonly Guid IID_IDWriteTextFormat - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x18, 0x68, 0x90, 0x9C, - 0xD7, 0x31, - 0xD3, 0x4F, - 0xA1, - 0x51, - 0x7C, - 0x5E, - 0x22, - 0x5D, - 0xB5, - 0x5A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextFormat)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetTextAlignment(TextAlignment textAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), textAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), paragraphAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetWordWrapping(WordWrapping wordWrapping) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), wordWrapping); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetReadingDirection(ReadingDirection readingDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), readingDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetFlowDirection(FlowDirection flowDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), flowDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetIncrementalTabStop(float incrementalTabStop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), incrementalTabStop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public TextAlignment GetTextAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public ParagraphAlignment GetParagraphAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public WordWrapping GetWordWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public ReadingDirection GetReadingDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public FlowDirection GetFlowDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public float GetIncrementalTabStop() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public uint GetFontFamilyNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public FontWeight GetFontWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public FontStyle GetFontStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public FontStretch GetFontStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public float GetFontSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public uint GetLocaleNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), localeName, nameSize); - } -} - -/// -/// IDWriteTypography -[Guid("55f1112b-1dc2-4b3c-9541-f46894ed85b6")] -[NativeTypeName("struct IDWriteTypography : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteTypography -{ - public static ref readonly Guid IID_IDWriteTypography - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2B, 0x11, 0xF1, 0x55, - 0xC2, 0x1D, - 0x3C, 0x4B, - 0x95, - 0x41, - 0xF4, - 0x68, - 0x94, - 0xED, - 0x85, - 0xB6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTypography)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult AddFontFeature(FontFeature* fontFeature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTypography*)Unsafe.AsPointer(ref this), fontFeature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetFontFeatureCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTypography*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetFontFeature(uint fontFeatureIndex, FontFeature* fontFeature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTypography*)Unsafe.AsPointer(ref this), fontFeatureIndex, fontFeature); - } -} - -/// -/// IDWriteNumberSubstitution -[Guid("14885cc9-bab0-4f90-b6ed-5c366a2cd03d")] -[NativeTypeName("struct IDWriteNumberSubstitution : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteNumberSubstitution -{ - public static ref readonly Guid IID_IDWriteNumberSubstitution - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC9, 0x5C, 0x88, 0x14, - 0xB0, 0xBA, - 0x90, 0x4F, - 0xB6, - 0xED, - 0x5C, - 0x36, - 0x6A, - 0x2C, - 0xD0, - 0x3D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteNumberSubstitution)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - -} - -/// -/// IDWriteTextAnalysisSource -[Guid("688e1a58-5094-47c8-adc8-fbcea60ae92b")] -[NativeTypeName("struct IDWriteTextAnalysisSource : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteTextAnalysisSource -{ - public static ref readonly Guid IID_IDWriteTextAnalysisSource - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x58, 0x1A, 0x8E, 0x68, - 0x94, 0x50, - 0xC8, 0x47, - 0xAD, - 0xC8, - 0xFB, - 0xCE, - 0xA6, - 0x0A, - 0xE9, - 0x2B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalysisSource)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetTextAtPosition(uint textPosition, ushort** textString, uint* textLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalysisSource*)Unsafe.AsPointer(ref this), textPosition, textString, textLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetTextBeforePosition(uint textPosition, ushort** textString, uint* textLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalysisSource*)Unsafe.AsPointer(ref this), textPosition, textString, textLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ReadingDirection GetParagraphReadingDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalysisSource*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetLocaleName(uint textPosition, uint* textLength, ushort** localeName) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalysisSource*)Unsafe.AsPointer(ref this), textPosition, textLength, localeName); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetNumberSubstitution(uint textPosition, uint* textLength, IDWriteNumberSubstitution** numberSubstitution) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextAnalysisSource*)Unsafe.AsPointer(ref this), textPosition, textLength, numberSubstitution); - } -} - -/// -/// IDWriteTextAnalysisSink -[Guid("5810cd44-0ca0-4701-b3fa-bec5182ae4f6")] -[NativeTypeName("struct IDWriteTextAnalysisSink : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteTextAnalysisSink -{ - public static ref readonly Guid IID_IDWriteTextAnalysisSink - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x44, 0xCD, 0x10, 0x58, - 0xA0, 0x0C, - 0x01, 0x47, - 0xB3, - 0xFA, - 0xBE, - 0xC5, - 0x18, - 0x2A, - 0xE4, - 0xF6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalysisSink)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetScriptAnalysis(uint textPosition, uint textLength, ScriptAnalysis* scriptAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalysisSink*)Unsafe.AsPointer(ref this), textPosition, textLength, scriptAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetLineBreakpoints(uint textPosition, uint textLength, LineBreakpoint* lineBreakpoints) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalysisSink*)Unsafe.AsPointer(ref this), textPosition, textLength, lineBreakpoints); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetBidiLevel(uint textPosition, uint textLength, byte explicitLevel, byte resolvedLevel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalysisSink*)Unsafe.AsPointer(ref this), textPosition, textLength, explicitLevel, resolvedLevel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetNumberSubstitution(uint textPosition, uint textLength, IDWriteNumberSubstitution* numberSubstitution) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalysisSink*)Unsafe.AsPointer(ref this), textPosition, textLength, numberSubstitution); - } -} - -/// -/// IDWriteTextAnalyzer -[Guid("b7e6163e-7f46-43b4-84b3-e4e6249c365d")] -[NativeTypeName("struct IDWriteTextAnalyzer : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteTextAnalyzer -{ - public static ref readonly Guid IID_IDWriteTextAnalyzer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3E, 0x16, 0xE6, 0xB7, - 0x46, 0x7F, - 0xB4, 0x43, - 0x84, - 0xB3, - 0xE4, - 0xE6, - 0x24, - 0x9C, - 0x36, - 0x5D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalyzer)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult AnalyzeScript(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult AnalyzeBidi(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult AnalyzeNumberSubstitution(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult AnalyzeLineBreakpoints(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetGlyphs(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, IDWriteNumberSubstitution* numberSubstitution, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, uint maxGlyphCount, ushort* clusterMap, ShapingTextProperties* textProps, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint* actualGlyphCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isSideways, isRightToLeft, scriptAnalysis, localeName, numberSubstitution, features, featureRangeLengths, featureRanges, maxGlyphCount, clusterMap, textProps, glyphIndices, glyphProps, actualGlyphCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetGdiCompatibleGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, pixelsPerDip, transform, useGdiNatural, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets); - } -} - -/// -/// IDWriteInlineObject -[Guid("8339fde3-106f-47ab-8373-1c6295eb10b3")] -[NativeTypeName("struct IDWriteInlineObject : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteInlineObject -{ - public static ref readonly Guid IID_IDWriteInlineObject - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE3, 0xFD, 0x39, 0x83, - 0x6F, 0x10, - 0xAB, 0x47, - 0x83, - 0x73, - 0x1C, - 0x62, - 0x95, - 0xEB, - 0x10, - 0xB3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteInlineObject)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY, Bool32 isSideways, Bool32 isRightToLeft, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteInlineObject*)Unsafe.AsPointer(ref this), clientDrawingContext, renderer, originX, originY, isSideways, isRightToLeft, clientDrawingEffect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetMetrics(InlineObjectMetrics* metrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteInlineObject*)Unsafe.AsPointer(ref this), metrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetOverhangMetrics(OverhangMetrics* overhangs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteInlineObject*)Unsafe.AsPointer(ref this), overhangs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetBreakConditions(BreakCondition* breakConditionBefore, BreakCondition* breakConditionAfter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteInlineObject*)Unsafe.AsPointer(ref this), breakConditionBefore, breakConditionAfter); - } -} - -/// -/// IDWritePixelSnapping -[Guid("eaf3a2da-ecf4-4d24-b644-b34f6842024b")] -[NativeTypeName("struct IDWritePixelSnapping : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWritePixelSnapping -{ - public static ref readonly Guid IID_IDWritePixelSnapping - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDA, 0xA2, 0xF3, 0xEA, - 0xF4, 0xEC, - 0x24, 0x4D, - 0xB6, - 0x44, - 0xB3, - 0x4F, - 0x68, - 0x42, - 0x02, - 0x4B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWritePixelSnapping)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult IsPixelSnappingDisabled(void* clientDrawingContext, Bool32* isDisabled) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this), clientDrawingContext, isDisabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCurrentTransform(void* clientDrawingContext, Matrix* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this), clientDrawingContext, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPixelsPerDip(void* clientDrawingContext, float* pixelsPerDip) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this), clientDrawingContext, pixelsPerDip); - } -} - -/// -/// IDWriteTextRenderer -[Guid("ef8a8135-5cc6-45fe-8825-c5a0724eb819")] -[NativeTypeName("struct IDWriteTextRenderer : IDWritePixelSnapping")] -[NativeInheritance("IDWritePixelSnapping")] -public unsafe partial struct IDWriteTextRenderer -{ - public static ref readonly Guid IID_IDWriteTextRenderer - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x35, 0x81, 0x8A, 0xEF, - 0xC6, 0x5C, - 0xFE, 0x45, - 0x88, - 0x25, - 0xC5, - 0xA0, - 0x72, - 0x4E, - 0xB8, - 0x19 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextRenderer)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult IsPixelSnappingDisabled(void* clientDrawingContext, Bool32* isDisabled) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, isDisabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCurrentTransform(void* clientDrawingContext, Matrix* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPixelsPerDip(void* clientDrawingContext, float* pixelsPerDip) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, pixelsPerDip); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult DrawGlyphRun(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, measuringMode, glyphRun, glyphRunDescription, clientDrawingEffect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult DrawUnderline(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, Underline* underline, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, underline, clientDrawingEffect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult DrawStrikethrough(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, Strikethrough* strikethrough, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, strikethrough, clientDrawingEffect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult DrawInlineObject(void* clientDrawingContext, float originX, float originY, IDWriteInlineObject* inlineObject, Bool32 isSideways, Bool32 isRightToLeft, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, originX, originY, inlineObject, isSideways, isRightToLeft, clientDrawingEffect); - } -} - -/// -/// IDWriteTextLayout -[Guid("53737037-6d14-410b-9bfe-0b182bb70961")] -[NativeTypeName("struct IDWriteTextLayout : IDWriteTextFormat")] -[NativeInheritance("IDWriteTextFormat")] -public unsafe partial struct IDWriteTextLayout -{ - public static ref readonly Guid IID_IDWriteTextLayout - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x37, 0x70, 0x73, 0x53, - 0x14, 0x6D, - 0x0B, 0x41, - 0x9B, - 0xFE, - 0x0B, - 0x18, - 0x2B, - 0xB7, - 0x09, - 0x61 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetTextAlignment(TextAlignment textAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), textAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), paragraphAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetWordWrapping(WordWrapping wordWrapping) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), wordWrapping); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetReadingDirection(ReadingDirection readingDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), readingDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetFlowDirection(FlowDirection flowDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), flowDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetIncrementalTabStop(float incrementalTabStop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), incrementalTabStop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public TextAlignment GetTextAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public ParagraphAlignment GetParagraphAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public WordWrapping GetWordWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public ReadingDirection GetReadingDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public FlowDirection GetFlowDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public float GetIncrementalTabStop() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public uint GetFontFamilyNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public FontWeight GetFontWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public FontStyle GetFontStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public FontStretch GetFontStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public float GetFontSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public uint GetLocaleNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), localeName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult SetMaxWidth(float maxWidth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), maxWidth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult SetMaxHeight(float maxHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), maxHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult SetFontCollection(IDWriteFontCollection* fontCollection, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontCollection, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult SetFontFamilyName(ushort* fontFamilyName, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontFamilyName, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult SetFontWeight(FontWeight fontWeight, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontWeight, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult SetFontStyle(FontStyle fontStyle, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontStyle, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult SetFontStretch(FontStretch fontStretch, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontStretch, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult SetFontSize(float fontSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult SetUnderline(Bool32 hasUnderline, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), hasUnderline, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult SetStrikethrough(Bool32 hasStrikethrough, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), hasStrikethrough, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult SetDrawingEffect(IUnknown* drawingEffect, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), drawingEffect, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult SetInlineObject(IDWriteInlineObject* inlineObject, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), inlineObject, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult SetTypography(IDWriteTypography* typography, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), typography, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult SetLocaleName(ushort* localeName, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), localeName, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public float GetMaxWidth() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public float GetMaxHeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult GetFontCollection(uint currentPosition, IDWriteFontCollection** fontCollection, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontCollection, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult GetFontFamilyNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult GetFontWeight(uint currentPosition, FontWeight* fontWeight, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontWeight, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult GetFontStyle(uint currentPosition, FontStyle* fontStyle, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontStyle, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult GetFontStretch(uint currentPosition, FontStretch* fontStretch, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontStretch, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult GetFontSize(uint currentPosition, float* fontSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult GetUnderline(uint currentPosition, Bool32* hasUnderline, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, hasUnderline, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult GetStrikethrough(uint currentPosition, Bool32* hasStrikethrough, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, hasStrikethrough, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult GetDrawingEffect(uint currentPosition, IUnknown** drawingEffect, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, drawingEffect, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult GetInlineObject(uint currentPosition, IDWriteInlineObject** inlineObject, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, inlineObject, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult GetTypography(uint currentPosition, IDWriteTypography** typography, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, typography, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult GetLocaleNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), clientDrawingContext, renderer, originX, originY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult GetLineMetrics(LineMetrics* lineMetrics, uint maxLineCount, uint* actualLineCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult GetMetrics(TextMetrics* textMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), textMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult GetOverhangMetrics(OverhangMetrics* overhangs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), overhangs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult GetClusterMetrics(ClusterMetrics* clusterMetrics, uint maxClusterCount, uint* actualClusterCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), clusterMetrics, maxClusterCount, actualClusterCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult DetermineMinWidth(float* minWidth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), minWidth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult HitTestPoint(float pointX, float pointY, Bool32* isTrailingHit, Bool32* isInside, HitTestMetrics* hitTestMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), pointX, pointY, isTrailingHit, isInside, hitTestMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult HitTestTextPosition(uint textPosition, Bool32 isTrailingHit, float* pointX, float* pointY, HitTestMetrics* hitTestMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), textPosition, isTrailingHit, pointX, pointY, hitTestMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HResult HitTestTextRange(uint textPosition, uint textLength, float originX, float originY, HitTestMetrics* hitTestMetrics, uint maxHitTestMetricsCount, uint* actualHitTestMetricsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), textPosition, textLength, originX, originY, hitTestMetrics, maxHitTestMetricsCount, actualHitTestMetricsCount); - } -} - -/// -/// IDWriteBitmapRenderTarget -[Guid("5e5a32a3-8dff-4773-9ff6-0696eab77267")] -[NativeTypeName("struct IDWriteBitmapRenderTarget : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteBitmapRenderTarget -{ - public static ref readonly Guid IID_IDWriteBitmapRenderTarget - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA3, 0x32, 0x5A, 0x5E, - 0xFF, 0x8D, - 0x73, 0x47, - 0x9F, - 0xF6, - 0x06, - 0x96, - 0xEA, - 0xB7, - 0x72, - 0x67 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteBitmapRenderTarget)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, IDWriteRenderingParams* renderingParams, uint textColor, RawRect* blackBoxRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, measuringMode, glyphRun, renderingParams, textColor, blackBoxRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public IntPtr GetMemoryDC() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public float GetPixelsPerDip() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPixelsPerDip(float pixelsPerDip) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), pixelsPerDip); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetCurrentTransform(Matrix* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetCurrentTransform(Matrix* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetSize(System.Drawing.Size* size) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult Resize(uint width, uint height) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), width, height); - } -} - -/// -/// IDWriteGdiInterop -[Guid("1edd9491-9853-4299-898f-6432983b6f3a")] -[NativeTypeName("struct IDWriteGdiInterop : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteGdiInterop -{ - public static ref readonly Guid IID_IDWriteGdiInterop - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x91, 0x94, 0xDD, 0x1E, - 0x53, 0x98, - 0x99, 0x42, - 0x89, - 0x8F, - 0x64, - 0x32, - 0x98, - 0x3B, - 0x6F, - 0x3A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGdiInterop)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateFontFromLOGFONT(Win32.Graphics.Gdi.LogFontW* logFont, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), logFont, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult ConvertFontToLOGFONT(IDWriteFont* font, Win32.Graphics.Gdi.LogFontW** logFont, Bool32* isSystemFont) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), font, logFont, isSystemFont); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult ConvertFontFaceToLOGFONT(IDWriteFontFace* font, Win32.Graphics.Gdi.LogFontW** logFont) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), font, logFont); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateFontFaceFromHdc(IntPtr hdc, IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), hdc, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateBitmapRenderTarget(IntPtr hdc, uint width, uint height, IDWriteBitmapRenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), hdc, width, height, renderTarget); - } -} - -/// -/// IDWriteGlyphRunAnalysis -[Guid("7d97dbf7-e085-42d4-81e3-6a883bded118")] -[NativeTypeName("struct IDWriteGlyphRunAnalysis : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteGlyphRunAnalysis -{ - public static ref readonly Guid IID_IDWriteGlyphRunAnalysis - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF7, 0xDB, 0x97, 0x7D, - 0x85, 0xE0, - 0xD4, 0x42, - 0x81, - 0xE3, - 0x6A, - 0x88, - 0x3B, - 0xDE, - 0xD1, - 0x18 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGlyphRunAnalysis)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetAlphaTextureBounds(TextureType textureType, RawRect* textureBounds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteGlyphRunAnalysis*)Unsafe.AsPointer(ref this), textureType, textureBounds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateAlphaTexture(TextureType textureType, RawRect* textureBounds, byte* alphaValues, uint bufferSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteGlyphRunAnalysis*)Unsafe.AsPointer(ref this), textureType, textureBounds, alphaValues, bufferSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetAlphaBlendParams(IDWriteRenderingParams* renderingParams, float* blendGamma, float* blendEnhancedContrast, float* blendClearTypeLevel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteGlyphRunAnalysis*)Unsafe.AsPointer(ref this), renderingParams, blendGamma, blendEnhancedContrast, blendClearTypeLevel); - } -} - -/// -/// IDWriteFactory -[Guid("b859ee5a-d838-4b5b-a2e8-1adc7d93db48")] -[NativeTypeName("struct IDWriteFactory : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFactory -{ - public static ref readonly Guid IID_IDWriteFactory - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5A, 0xEE, 0x59, 0xB8, - 0x38, 0xD8, - 0x5B, 0x4B, - 0xA2, - 0xE8, - 0x1A, - 0xDC, - 0x7D, - 0x93, - 0xDB, - 0x48 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory*)Unsafe.AsPointer(ref this), renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory*)Unsafe.AsPointer(ref this), monitor, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateTypography(IDWriteTypography** typography) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory*)Unsafe.AsPointer(ref this), typography); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory*)Unsafe.AsPointer(ref this), gdiInterop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory*)Unsafe.AsPointer(ref this), textAnalyzer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } -} - -/// -/// IDWriteFactory1 -[Guid("30572f99-dac6-41db-a16e-0486307e606a")] -[NativeTypeName("struct IDWriteFactory1 : IDWriteFactory")] -[NativeInheritance("IDWriteFactory")] -public unsafe partial struct IDWriteFactory1 -{ - public static ref readonly Guid IID_IDWriteFactory1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x99, 0x2F, 0x57, 0x30, - 0xC6, 0xDA, - 0xDB, 0x41, - 0xA1, - 0x6E, - 0x04, - 0x86, - 0x30, - 0x7E, - 0x60, - 0x6A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), monitor, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateTypography(IDWriteTypography** typography) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), typography); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), gdiInterop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), textAnalyzer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } -} - -/// -/// IDWriteFontFace1 -[Guid("a71efdb4-9fdb-4838-ad90-cfc3be8c3daf")] -[NativeTypeName("struct IDWriteFontFace1 : IDWriteFontFace")] -[NativeInheritance("IDWriteFontFace")] -public unsafe partial struct IDWriteFontFace1 -{ - public static ref readonly Guid IID_IDWriteFontFace1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB4, 0xFD, 0x1E, 0xA7, - 0xDB, 0x9F, - 0x38, 0x48, - 0xAD, - 0x90, - 0xCF, - 0xC3, - 0xBE, - 0x8C, - 0x3D, - 0xAF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public new FontFaceType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetIndex() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public Bool32 IsSymbolFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetMetrics(FontMetrics* fontFaceMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public ushort GetGlyphCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void ReleaseFontTable(void* tableContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), tableContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public void GetMetrics(FontMetrics1* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics1* fontMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void GetCaretMetrics(CaretMetrics* caretMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), caretMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public Bool32 IsMonospacedFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public Bool32 HasKerningPairs() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public Bool32 HasVerticalGlyphVariants() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteFont1 -[Guid("acd16696-8c14-4f5d-877e-fe3fc1d32738")] -[NativeTypeName("struct IDWriteFont1 : IDWriteFont")] -[NativeInheritance("IDWriteFont")] -public unsafe partial struct IDWriteFont1 -{ - public static ref readonly Guid IID_IDWriteFont1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x96, 0x66, 0xD1, 0xAC, - 0x14, 0x8C, - 0x5D, 0x4F, - 0x87, - 0x7E, - 0xFE, - 0x3F, - 0xC1, - 0xD3, - 0x27, - 0x38 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetFontFamily(IDWriteFontFamily** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFont1*)Unsafe.AsPointer(ref this), fontFamily); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public FontWeight GetWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFont1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public FontStretch GetStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFont1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public FontStyle GetStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFont1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public Bool32 IsSymbolFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFont1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFaceNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFont1*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFont1*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFont1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void GetMetrics(FontMetrics* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFont1*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult HasCharacter(uint unicodeValue, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFont1*)Unsafe.AsPointer(ref this), unicodeValue, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateFontFace(IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFont1*)Unsafe.AsPointer(ref this), fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void GetMetrics(FontMetrics1* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFont1*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void GetPanose(Panose* panose) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFont1*)Unsafe.AsPointer(ref this), panose); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFont1*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public Bool32 IsMonospacedFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFont1*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteRenderingParams1 -[Guid("94413cf4-a6fc-4248-8b50-6674348fcad3")] -[NativeTypeName("struct IDWriteRenderingParams1 : IDWriteRenderingParams")] -[NativeInheritance("IDWriteRenderingParams")] -public unsafe partial struct IDWriteRenderingParams1 -{ - public static ref readonly Guid IID_IDWriteRenderingParams1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF4, 0x3C, 0x41, 0x94, - 0xFC, 0xA6, - 0x48, 0x42, - 0x8B, - 0x50, - 0x66, - 0x74, - 0x34, - 0x8F, - 0xCA, - 0xD3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRenderingParams1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public float GetGamma() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public float GetEnhancedContrast() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public float GetClearTypeLevel() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public PixelGeometry GetPixelGeometry() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public RenderingMode GetRenderingMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public float GetGrayscaleEnhancedContrast() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteTextAnalyzer1 -[Guid("80dad800-e21f-4e83-96ce-bfcce500db7c")] -[NativeTypeName("struct IDWriteTextAnalyzer1 : IDWriteTextAnalyzer")] -[NativeInheritance("IDWriteTextAnalyzer")] -public unsafe partial struct IDWriteTextAnalyzer1 -{ - public static ref readonly Guid IID_IDWriteTextAnalyzer1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0xD8, 0xDA, 0x80, - 0x1F, 0xE2, - 0x83, 0x4E, - 0x96, - 0xCE, - 0xBF, - 0xCC, - 0xE5, - 0x00, - 0xDB, - 0x7C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalyzer1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult AnalyzeScript(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult AnalyzeBidi(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult AnalyzeNumberSubstitution(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult AnalyzeLineBreakpoints(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetGlyphs(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, IDWriteNumberSubstitution* numberSubstitution, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, uint maxGlyphCount, ushort* clusterMap, ShapingTextProperties* textProps, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint* actualGlyphCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isSideways, isRightToLeft, scriptAnalysis, localeName, numberSubstitution, features, featureRangeLengths, featureRanges, maxGlyphCount, clusterMap, textProps, glyphIndices, glyphProps, actualGlyphCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetGdiCompatibleGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, pixelsPerDip, transform, useGdiNatural, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult ApplyCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, uint textLength, uint glyphCount, ushort* clusterMap, float* glyphAdvances, GlyphOffset* glyphOffsets, ShapingGlyphProperties* glyphProperties, float* modifiedGlyphAdvances, GlyphOffset* modifiedGlyphOffsets) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), leadingSpacing, trailingSpacing, minimumAdvanceWidth, textLength, glyphCount, clusterMap, glyphAdvances, glyphOffsets, glyphProperties, modifiedGlyphAdvances, modifiedGlyphOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetBaseline(IDWriteFontFace* fontFace, Baseline baseline, Bool32 isVertical, Bool32 isSimulationAllowed, ScriptAnalysis* scriptAnalysis, ushort* localeName, int* baselineCoordinate, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), fontFace, baseline, isVertical, isSimulationAllowed, scriptAnalysis, localeName, baselineCoordinate, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult AnalyzeVerticalGlyphOrientation(IDWriteTextAnalysisSource1* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink1* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetGlyphOrientationTransform(GlyphOrientationAngle glyphOrientationAngle, Bool32 isSideways, Matrix* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), glyphOrientationAngle, isSideways, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetScriptProperties(ScriptAnalysis* scriptAnalysis, ScriptProperties* scriptProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), scriptAnalysis, scriptProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetTextComplexity(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32* isTextSimple, uint* textLengthRead, ushort* glyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isTextSimple, textLengthRead, glyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetJustificationOpportunities(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis* scriptAnalysis, uint textLength, uint glyphCount, ushort* textString, ushort* clusterMap, ShapingGlyphProperties* glyphProperties, JustificationOpportunity* justificationOpportunities) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, textString, clusterMap, glyphProperties, justificationOpportunities); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult JustifyGlyphAdvances(float lineWidth, uint glyphCount, JustificationOpportunity* justificationOpportunities, float* glyphAdvances, GlyphOffset* glyphOffsets, float* justifiedGlyphAdvances, GlyphOffset* justifiedGlyphOffsets) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), lineWidth, glyphCount, justificationOpportunities, glyphAdvances, glyphOffsets, justifiedGlyphAdvances, justifiedGlyphOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetJustifiedGlyphs(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis* scriptAnalysis, uint textLength, uint glyphCount, uint maxGlyphCount, ushort* clusterMap, ushort* glyphIndices, float* glyphAdvances, float* justifiedGlyphAdvances, GlyphOffset* justifiedGlyphOffsets, ShapingGlyphProperties* glyphProperties, uint* actualGlyphCount, ushort* modifiedClusterMap, ushort* modifiedGlyphIndices, float* modifiedGlyphAdvances, GlyphOffset* modifiedGlyphOffsets) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, maxGlyphCount, clusterMap, glyphIndices, glyphAdvances, justifiedGlyphAdvances, justifiedGlyphOffsets, glyphProperties, actualGlyphCount, modifiedClusterMap, modifiedGlyphIndices, modifiedGlyphAdvances, modifiedGlyphOffsets); - } -} - -/// -/// IDWriteTextAnalysisSource1 -[Guid("639cfad8-0fb4-4b21-a58a-067920120009")] -[NativeTypeName("struct IDWriteTextAnalysisSource1 : IDWriteTextAnalysisSource")] -[NativeInheritance("IDWriteTextAnalysisSource")] -public unsafe partial struct IDWriteTextAnalysisSource1 -{ - public static ref readonly Guid IID_IDWriteTextAnalysisSource1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD8, 0xFA, 0x9C, 0x63, - 0xB4, 0x0F, - 0x21, 0x4B, - 0xA5, - 0x8A, - 0x06, - 0x79, - 0x20, - 0x12, - 0x00, - 0x09 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalysisSource1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetTextAtPosition(uint textPosition, ushort** textString, uint* textLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this), textPosition, textString, textLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetTextBeforePosition(uint textPosition, ushort** textString, uint* textLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this), textPosition, textString, textLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public ReadingDirection GetParagraphReadingDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetLocaleName(uint textPosition, uint* textLength, ushort** localeName) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this), textPosition, textLength, localeName); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetNumberSubstitution(uint textPosition, uint* textLength, IDWriteNumberSubstitution** numberSubstitution) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this), textPosition, textLength, numberSubstitution); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetVerticalGlyphOrientation(uint textPosition, uint* textLength, VerticalGlyphOrientation* glyphOrientation, byte* bidiLevel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this), textPosition, textLength, glyphOrientation, bidiLevel); - } -} - -/// -/// IDWriteTextAnalysisSink1 -[Guid("b0d941a0-85e7-4d8b-9fd3-5ced9934482a")] -[NativeTypeName("struct IDWriteTextAnalysisSink1 : IDWriteTextAnalysisSink")] -[NativeInheritance("IDWriteTextAnalysisSink")] -public unsafe partial struct IDWriteTextAnalysisSink1 -{ - public static ref readonly Guid IID_IDWriteTextAnalysisSink1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA0, 0x41, 0xD9, 0xB0, - 0xE7, 0x85, - 0x8B, 0x4D, - 0x9F, - 0xD3, - 0x5C, - 0xED, - 0x99, - 0x34, - 0x48, - 0x2A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalysisSink1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetScriptAnalysis(uint textPosition, uint textLength, ScriptAnalysis* scriptAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalysisSink1*)Unsafe.AsPointer(ref this), textPosition, textLength, scriptAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetLineBreakpoints(uint textPosition, uint textLength, LineBreakpoint* lineBreakpoints) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalysisSink1*)Unsafe.AsPointer(ref this), textPosition, textLength, lineBreakpoints); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetBidiLevel(uint textPosition, uint textLength, byte explicitLevel, byte resolvedLevel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalysisSink1*)Unsafe.AsPointer(ref this), textPosition, textLength, explicitLevel, resolvedLevel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetNumberSubstitution(uint textPosition, uint textLength, IDWriteNumberSubstitution* numberSubstitution) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalysisSink1*)Unsafe.AsPointer(ref this), textPosition, textLength, numberSubstitution); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetGlyphOrientation(uint textPosition, uint textLength, GlyphOrientationAngle glyphOrientationAngle, byte adjustedBidiLevel, Bool32 isSideways, Bool32 isRightToLeft) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextAnalysisSink1*)Unsafe.AsPointer(ref this), textPosition, textLength, glyphOrientationAngle, adjustedBidiLevel, isSideways, isRightToLeft); - } -} - -/// -/// IDWriteTextLayout1 -[Guid("9064d822-80a7-465c-a986-df65f78b8feb")] -[NativeTypeName("struct IDWriteTextLayout1 : IDWriteTextLayout")] -[NativeInheritance("IDWriteTextLayout")] -public unsafe partial struct IDWriteTextLayout1 -{ - public static ref readonly Guid IID_IDWriteTextLayout1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x22, 0xD8, 0x64, 0x90, - 0xA7, 0x80, - 0x5C, 0x46, - 0xA9, - 0x86, - 0xDF, - 0x65, - 0xF7, - 0x8B, - 0x8F, - 0xEB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetMaxWidth(float maxWidth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), maxWidth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetMaxHeight(float maxHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), maxHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetFontCollection(IDWriteFontCollection* fontCollection, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontCollection, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetFontFamilyName(ushort* fontFamilyName, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontFamilyName, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetFontWeight(FontWeight fontWeight, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontWeight, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetFontStyle(FontStyle fontStyle, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontStyle, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetFontStretch(FontStretch fontStretch, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontStretch, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetFontSize(float fontSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetUnderline(Bool32 hasUnderline, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), hasUnderline, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetStrikethrough(Bool32 hasStrikethrough, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), hasStrikethrough, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult SetDrawingEffect(IUnknown* drawingEffect, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), drawingEffect, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetInlineObject(IDWriteInlineObject* inlineObject, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), inlineObject, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetTypography(IDWriteTypography* typography, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), typography, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetLocaleName(ushort* localeName, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), localeName, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public float GetMaxWidth() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public float GetMaxHeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetFontCollection(uint currentPosition, IDWriteFontCollection** fontCollection, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontCollection, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetFontFamilyNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetFontWeight(uint currentPosition, FontWeight* fontWeight, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontWeight, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetFontStyle(uint currentPosition, FontStyle* fontStyle, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontStyle, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetFontStretch(uint currentPosition, FontStretch* fontStretch, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontStretch, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetFontSize(uint currentPosition, float* fontSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetUnderline(uint currentPosition, Bool32* hasUnderline, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, hasUnderline, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetStrikethrough(uint currentPosition, Bool32* hasStrikethrough, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, hasStrikethrough, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetDrawingEffect(uint currentPosition, IUnknown** drawingEffect, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, drawingEffect, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetInlineObject(uint currentPosition, IDWriteInlineObject** inlineObject, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, inlineObject, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult GetTypography(uint currentPosition, IDWriteTypography** typography, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, typography, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult GetLocaleNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), clientDrawingContext, renderer, originX, originY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetLineMetrics(LineMetrics* lineMetrics, uint maxLineCount, uint* actualLineCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetMetrics(TextMetrics* textMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), textMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult GetOverhangMetrics(OverhangMetrics* overhangs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), overhangs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult GetClusterMetrics(ClusterMetrics* clusterMetrics, uint maxClusterCount, uint* actualClusterCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), clusterMetrics, maxClusterCount, actualClusterCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult DetermineMinWidth(float* minWidth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), minWidth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult HitTestPoint(float pointX, float pointY, Bool32* isTrailingHit, Bool32* isInside, HitTestMetrics* hitTestMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), pointX, pointY, isTrailingHit, isInside, hitTestMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult HitTestTextPosition(uint textPosition, Bool32 isTrailingHit, float* pointX, float* pointY, HitTestMetrics* hitTestMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), textPosition, isTrailingHit, pointX, pointY, hitTestMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult HitTestTextRange(uint textPosition, uint textLength, float originX, float originY, HitTestMetrics* hitTestMetrics, uint maxHitTestMetricsCount, uint* actualHitTestMetricsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), textPosition, textLength, originX, originY, hitTestMetrics, maxHitTestMetricsCount, actualHitTestMetricsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult SetTextAlignment(TextAlignment textAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), textAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), paragraphAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult SetWordWrapping(WordWrapping wordWrapping) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), wordWrapping); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult SetReadingDirection(ReadingDirection readingDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), readingDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult SetFlowDirection(FlowDirection flowDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), flowDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult SetIncrementalTabStop(float incrementalTabStop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), incrementalTabStop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public TextAlignment GetTextAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public ParagraphAlignment GetParagraphAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public WordWrapping GetWordWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public ReadingDirection GetReadingDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public FlowDirection GetFlowDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public float GetIncrementalTabStop() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public uint GetFontFamilyNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public FontWeight GetFontWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public FontStyle GetFontStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public FontStretch GetFontStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public float GetFontSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public uint GetLocaleNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), localeName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public HResult SetPairKerning(Bool32 isPairKerningEnabled, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), isPairKerningEnabled, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public HResult GetPairKerning(uint currentPosition, Bool32* isPairKerningEnabled, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, isPairKerningEnabled, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public HResult SetCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HResult GetCharacterSpacing(uint currentPosition, float* leadingSpacing, float* trailingSpacing, float* minimumAdvanceWidth, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); - } -} - -/// -/// IDWriteBitmapRenderTarget1 -[Guid("791e8298-3ef3-4230-9880-c9bdecc42064")] -[NativeTypeName("struct IDWriteBitmapRenderTarget1 : IDWriteBitmapRenderTarget")] -[NativeInheritance("IDWriteBitmapRenderTarget")] -public unsafe partial struct IDWriteBitmapRenderTarget1 -{ - public static ref readonly Guid IID_IDWriteBitmapRenderTarget1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x98, 0x82, 0x1E, 0x79, - 0xF3, 0x3E, - 0x30, 0x42, - 0x98, - 0x80, - 0xC9, - 0xBD, - 0xEC, - 0xC4, - 0x20, - 0x64 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteBitmapRenderTarget1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, IDWriteRenderingParams* renderingParams, uint textColor, RawRect* blackBoxRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, measuringMode, glyphRun, renderingParams, textColor, blackBoxRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public IntPtr GetMemoryDC() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public float GetPixelsPerDip() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPixelsPerDip(float pixelsPerDip) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), pixelsPerDip); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetCurrentTransform(Matrix* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetCurrentTransform(Matrix* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetSize(System.Drawing.Size* size) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult Resize(uint width, uint height) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), width, height); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public TextAntialiasMode GetTextAntialiasMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetTextAntialiasMode(TextAntialiasMode antialiasMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), antialiasMode); - } -} - -/// -/// IDWriteTextRenderer1 -[Guid("d3e0e934-22a0-427e-aae4-7d9574b59db1")] -[NativeTypeName("struct IDWriteTextRenderer1 : IDWriteTextRenderer")] -[NativeInheritance("IDWriteTextRenderer")] -public unsafe partial struct IDWriteTextRenderer1 -{ - public static ref readonly Guid IID_IDWriteTextRenderer1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x34, 0xE9, 0xE0, 0xD3, - 0xA0, 0x22, - 0x7E, 0x42, - 0xAA, - 0xE4, - 0x7D, - 0x95, - 0x74, - 0xB5, - 0x9D, - 0xB1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextRenderer1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult DrawGlyphRun(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, measuringMode, glyphRun, glyphRunDescription, clientDrawingEffect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult DrawUnderline(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, Underline* underline, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, underline, clientDrawingEffect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult DrawStrikethrough(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, Strikethrough* strikethrough, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, strikethrough, clientDrawingEffect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult DrawInlineObject(void* clientDrawingContext, float originX, float originY, IDWriteInlineObject* inlineObject, Bool32 isSideways, Bool32 isRightToLeft, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, originX, originY, inlineObject, isSideways, isRightToLeft, clientDrawingEffect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult IsPixelSnappingDisabled(void* clientDrawingContext, Bool32* isDisabled) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, isDisabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetCurrentTransform(void* clientDrawingContext, Matrix* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetPixelsPerDip(void* clientDrawingContext, float* pixelsPerDip) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, pixelsPerDip); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult DrawGlyphRun(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, GlyphOrientationAngle orientationAngle, MeasuringMode measuringMode, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, orientationAngle, measuringMode, glyphRun, glyphRunDescription, clientDrawingEffect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult DrawUnderline(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, GlyphOrientationAngle orientationAngle, Underline* underline, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, orientationAngle, underline, clientDrawingEffect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult DrawStrikethrough(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, GlyphOrientationAngle orientationAngle, Strikethrough* strikethrough, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, orientationAngle, strikethrough, clientDrawingEffect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult DrawInlineObject(void* clientDrawingContext, float originX, float originY, GlyphOrientationAngle orientationAngle, IDWriteInlineObject* inlineObject, Bool32 isSideways, Bool32 isRightToLeft, IUnknown* clientDrawingEffect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, originX, originY, orientationAngle, inlineObject, isSideways, isRightToLeft, clientDrawingEffect); - } -} - -/// -/// IDWriteTextFormat1 -[Guid("5f174b49-0d8b-4cfb-8bca-f1cce9d06c67")] -[NativeTypeName("struct IDWriteTextFormat1 : IDWriteTextFormat")] -[NativeInheritance("IDWriteTextFormat")] -public unsafe partial struct IDWriteTextFormat1 -{ - public static ref readonly Guid IID_IDWriteTextFormat1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0x4B, 0x17, 0x5F, - 0x8B, 0x0D, - 0xFB, 0x4C, - 0x8B, - 0xCA, - 0xF1, - 0xCC, - 0xE9, - 0xD0, - 0x6C, - 0x67 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextFormat1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetTextAlignment(TextAlignment textAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), textAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), paragraphAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetWordWrapping(WordWrapping wordWrapping) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), wordWrapping); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetReadingDirection(ReadingDirection readingDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), readingDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetFlowDirection(FlowDirection flowDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), flowDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetIncrementalTabStop(float incrementalTabStop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), incrementalTabStop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public TextAlignment GetTextAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public ParagraphAlignment GetParagraphAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public WordWrapping GetWordWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public ReadingDirection GetReadingDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public FlowDirection GetFlowDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public float GetIncrementalTabStop() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public uint GetFontFamilyNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public FontWeight GetFontWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public FontStyle GetFontStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public FontStretch GetFontStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public float GetFontSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public uint GetLocaleNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), localeName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), glyphOrientation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public VerticalGlyphOrientation GetVerticalGlyphOrientation() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), isLastLineWrappingEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public Bool32 GetLastLineWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult SetOpticalAlignment(OpticalAlignment opticalAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), opticalAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public OpticalAlignment GetOpticalAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult SetFontFallback(IDWriteFontFallback* fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), fontFallback); - } -} - -/// -/// IDWriteTextLayout2 -[Guid("1093c18f-8d5e-43f0-b064-0917311b525e")] -[NativeTypeName("struct IDWriteTextLayout2 : IDWriteTextLayout1")] -[NativeInheritance("IDWriteTextLayout1")] -public unsafe partial struct IDWriteTextLayout2 -{ - public static ref readonly Guid IID_IDWriteTextLayout2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8F, 0xC1, 0x93, 0x10, - 0x5E, 0x8D, - 0xF0, 0x43, - 0xB0, - 0x64, - 0x09, - 0x17, - 0x31, - 0x1B, - 0x52, - 0x5E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetPairKerning(Bool32 isPairKerningEnabled, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), isPairKerningEnabled, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPairKerning(uint currentPosition, Bool32* isPairKerningEnabled, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, isPairKerningEnabled, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetCharacterSpacing(uint currentPosition, float* leadingSpacing, float* trailingSpacing, float* minimumAdvanceWidth, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetMaxWidth(float maxWidth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), maxWidth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetMaxHeight(float maxHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), maxHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetFontCollection(IDWriteFontCollection* fontCollection, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontCollection, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetFontFamilyName(ushort* fontFamilyName, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontFamilyName, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetFontWeight(FontWeight fontWeight, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontWeight, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetFontStyle(FontStyle fontStyle, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontStyle, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult SetFontStretch(FontStretch fontStretch, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontStretch, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetFontSize(float fontSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetUnderline(Bool32 hasUnderline, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), hasUnderline, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetStrikethrough(Bool32 hasStrikethrough, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), hasStrikethrough, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult SetDrawingEffect(IUnknown* drawingEffect, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), drawingEffect, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult SetInlineObject(IDWriteInlineObject* inlineObject, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), inlineObject, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult SetTypography(IDWriteTypography* typography, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), typography, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult SetLocaleName(ushort* localeName, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), localeName, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public float GetMaxWidth() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public float GetMaxHeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetFontCollection(uint currentPosition, IDWriteFontCollection** fontCollection, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontCollection, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetFontFamilyNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetFontWeight(uint currentPosition, FontWeight* fontWeight, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontWeight, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetFontStyle(uint currentPosition, FontStyle* fontStyle, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontStyle, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetFontStretch(uint currentPosition, FontStretch* fontStretch, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontStretch, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetFontSize(uint currentPosition, float* fontSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult GetUnderline(uint currentPosition, Bool32* hasUnderline, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, hasUnderline, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult GetStrikethrough(uint currentPosition, Bool32* hasStrikethrough, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, hasStrikethrough, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetDrawingEffect(uint currentPosition, IUnknown** drawingEffect, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, drawingEffect, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult GetInlineObject(uint currentPosition, IDWriteInlineObject** inlineObject, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, inlineObject, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetTypography(uint currentPosition, IDWriteTypography** typography, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, typography, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetLocaleNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), clientDrawingContext, renderer, originX, originY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult GetLineMetrics(LineMetrics* lineMetrics, uint maxLineCount, uint* actualLineCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult GetMetrics(TextMetrics* textMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), textMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult GetOverhangMetrics(OverhangMetrics* overhangs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), overhangs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult GetClusterMetrics(ClusterMetrics* clusterMetrics, uint maxClusterCount, uint* actualClusterCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), clusterMetrics, maxClusterCount, actualClusterCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult DetermineMinWidth(float* minWidth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), minWidth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult HitTestPoint(float pointX, float pointY, Bool32* isTrailingHit, Bool32* isInside, HitTestMetrics* hitTestMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), pointX, pointY, isTrailingHit, isInside, hitTestMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult HitTestTextPosition(uint textPosition, Bool32 isTrailingHit, float* pointX, float* pointY, HitTestMetrics* hitTestMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), textPosition, isTrailingHit, pointX, pointY, hitTestMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult HitTestTextRange(uint textPosition, uint textLength, float originX, float originY, HitTestMetrics* hitTestMetrics, uint maxHitTestMetricsCount, uint* actualHitTestMetricsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), textPosition, textLength, originX, originY, hitTestMetrics, maxHitTestMetricsCount, actualHitTestMetricsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult SetTextAlignment(TextAlignment textAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), textAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), paragraphAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult SetWordWrapping(WordWrapping wordWrapping) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), wordWrapping); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult SetReadingDirection(ReadingDirection readingDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), readingDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult SetFlowDirection(FlowDirection flowDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), flowDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult SetIncrementalTabStop(float incrementalTabStop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), incrementalTabStop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public TextAlignment GetTextAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public ParagraphAlignment GetParagraphAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public WordWrapping GetWordWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public ReadingDirection GetReadingDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public FlowDirection GetFlowDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public float GetIncrementalTabStop() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public uint GetFontFamilyNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public FontWeight GetFontWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public FontStyle GetFontStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public FontStretch GetFontStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public float GetFontSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public uint GetLocaleNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), localeName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public HResult GetMetrics(TextMetrics1* textMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), textMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), glyphOrientation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public VerticalGlyphOrientation GetVerticalGlyphOrientation() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), isLastLineWrappingEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public Bool32 GetLastLineWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public HResult SetOpticalAlignment(OpticalAlignment opticalAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), opticalAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public OpticalAlignment GetOpticalAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public HResult SetFontFallback(IDWriteFontFallback* fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public HResult GetFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontFallback); - } -} - -/// -/// IDWriteTextAnalyzer2 -[Guid("553a9ff3-5693-4df7-b52b-74806f7f2eb9")] -[NativeTypeName("struct IDWriteTextAnalyzer2 : IDWriteTextAnalyzer1")] -[NativeInheritance("IDWriteTextAnalyzer1")] -public unsafe partial struct IDWriteTextAnalyzer2 -{ - public static ref readonly Guid IID_IDWriteTextAnalyzer2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF3, 0x9F, 0x3A, 0x55, - 0x93, 0x56, - 0xF7, 0x4D, - 0xB5, - 0x2B, - 0x74, - 0x80, - 0x6F, - 0x7F, - 0x2E, - 0xB9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalyzer2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult ApplyCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, uint textLength, uint glyphCount, ushort* clusterMap, float* glyphAdvances, GlyphOffset* glyphOffsets, ShapingGlyphProperties* glyphProperties, float* modifiedGlyphAdvances, GlyphOffset* modifiedGlyphOffsets) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), leadingSpacing, trailingSpacing, minimumAdvanceWidth, textLength, glyphCount, clusterMap, glyphAdvances, glyphOffsets, glyphProperties, modifiedGlyphAdvances, modifiedGlyphOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetBaseline(IDWriteFontFace* fontFace, Baseline baseline, Bool32 isVertical, Bool32 isSimulationAllowed, ScriptAnalysis* scriptAnalysis, ushort* localeName, int* baselineCoordinate, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, baseline, isVertical, isSimulationAllowed, scriptAnalysis, localeName, baselineCoordinate, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult AnalyzeVerticalGlyphOrientation(IDWriteTextAnalysisSource1* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink1* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetGlyphOrientationTransform(GlyphOrientationAngle glyphOrientationAngle, Bool32 isSideways, Matrix* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), glyphOrientationAngle, isSideways, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetScriptProperties(ScriptAnalysis* scriptAnalysis, ScriptProperties* scriptProperties) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), scriptAnalysis, scriptProperties); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetTextComplexity(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32* isTextSimple, uint* textLengthRead, ushort* glyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isTextSimple, textLengthRead, glyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetJustificationOpportunities(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis* scriptAnalysis, uint textLength, uint glyphCount, ushort* textString, ushort* clusterMap, ShapingGlyphProperties* glyphProperties, JustificationOpportunity* justificationOpportunities) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, textString, clusterMap, glyphProperties, justificationOpportunities); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult JustifyGlyphAdvances(float lineWidth, uint glyphCount, JustificationOpportunity* justificationOpportunities, float* glyphAdvances, GlyphOffset* glyphOffsets, float* justifiedGlyphAdvances, GlyphOffset* justifiedGlyphOffsets) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), lineWidth, glyphCount, justificationOpportunities, glyphAdvances, glyphOffsets, justifiedGlyphAdvances, justifiedGlyphOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetJustifiedGlyphs(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis* scriptAnalysis, uint textLength, uint glyphCount, uint maxGlyphCount, ushort* clusterMap, ushort* glyphIndices, float* glyphAdvances, float* justifiedGlyphAdvances, GlyphOffset* justifiedGlyphOffsets, ShapingGlyphProperties* glyphProperties, uint* actualGlyphCount, ushort* modifiedClusterMap, ushort* modifiedGlyphIndices, float* modifiedGlyphAdvances, GlyphOffset* modifiedGlyphOffsets) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, maxGlyphCount, clusterMap, glyphIndices, glyphAdvances, justifiedGlyphAdvances, justifiedGlyphOffsets, glyphProperties, actualGlyphCount, modifiedClusterMap, modifiedGlyphIndices, modifiedGlyphAdvances, modifiedGlyphOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult AnalyzeScript(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult AnalyzeBidi(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult AnalyzeNumberSubstitution(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult AnalyzeLineBreakpoints(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetGlyphs(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, IDWriteNumberSubstitution* numberSubstitution, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, uint maxGlyphCount, ushort* clusterMap, ShapingTextProperties* textProps, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint* actualGlyphCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isSideways, isRightToLeft, scriptAnalysis, localeName, numberSubstitution, features, featureRangeLengths, featureRanges, maxGlyphCount, clusterMap, textProps, glyphIndices, glyphProps, actualGlyphCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetGdiCompatibleGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, pixelsPerDip, transform, useGdiNatural, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetGlyphOrientationTransform(GlyphOrientationAngle glyphOrientationAngle, Bool32 isSideways, float originX, float originY, Matrix* transform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), glyphOrientationAngle, isSideways, originX, originY, transform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetTypographicFeatures(IDWriteFontFace* fontFace, ScriptAnalysis* scriptAnalysis, ushort* localeName, uint maxTagCount, uint* actualTagCount, FontFeatureTag* tags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, scriptAnalysis, localeName, maxTagCount, actualTagCount, tags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CheckTypographicFeature(IDWriteFontFace* fontFace, ScriptAnalysis* scriptAnalysis, ushort* localeName, FontFeatureTag featureTag, uint glyphCount, ushort* glyphIndices, byte* featureApplies) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, scriptAnalysis, localeName, featureTag, glyphCount, glyphIndices, featureApplies); - } -} - -/// -/// IDWriteFontFallback -[Guid("efa008f9-f7a1-48bf-b05c-f224713cc0ff")] -[NativeTypeName("struct IDWriteFontFallback : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFallback -{ - public static ref readonly Guid IID_IDWriteFontFallback - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF9, 0x08, 0xA0, 0xEF, - 0xA1, 0xF7, - 0xBF, 0x48, - 0xB0, - 0x5C, - 0xF2, - 0x24, - 0x71, - 0x3C, - 0xC0, - 0xFF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallback)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult MapCharacters(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteFontCollection* baseFontCollection, ushort* baseFamilyName, FontWeight baseWeight, FontStyle baseStyle, FontStretch baseStretch, uint* mappedLength, IDWriteFont** mappedFont, float* scale) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFallback*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, baseFontCollection, baseFamilyName, baseWeight, baseStyle, baseStretch, mappedLength, mappedFont, scale); - } -} - -/// -/// IDWriteFontFallbackBuilder -[Guid("fd882d06-8aba-4fb8-b849-8be8b73e14de")] -[NativeTypeName("struct IDWriteFontFallbackBuilder : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFallbackBuilder -{ - public static ref readonly Guid IID_IDWriteFontFallbackBuilder - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x06, 0x2D, 0x88, 0xFD, - 0xBA, 0x8A, - 0xB8, 0x4F, - 0xB8, - 0x49, - 0x8B, - 0xE8, - 0xB7, - 0x3E, - 0x14, - 0xDE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallbackBuilder)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult AddMapping(UnicodeRange* ranges, uint rangesCount, ushort** targetFamilyNames, uint targetFamilyNamesCount, IDWriteFontCollection* fontCollection, ushort* localeName, ushort* baseFamilyName, float scale) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFallbackBuilder*)Unsafe.AsPointer(ref this), ranges, rangesCount, targetFamilyNames, targetFamilyNamesCount, fontCollection, localeName, baseFamilyName, scale); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult AddMappings(IDWriteFontFallback* fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFallbackBuilder*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFallbackBuilder*)Unsafe.AsPointer(ref this), fontFallback); - } -} - -/// -/// IDWriteFont2 -[Guid("29748ed6-8c9c-4a6a-be0b-d912e8538944")] -[NativeTypeName("struct IDWriteFont2 : IDWriteFont1")] -[NativeInheritance("IDWriteFont1")] -public unsafe partial struct IDWriteFont2 -{ - public static ref readonly Guid IID_IDWriteFont2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD6, 0x8E, 0x74, 0x29, - 0x9C, 0x8C, - 0x6A, 0x4A, - 0xBE, - 0x0B, - 0xD9, - 0x12, - 0xE8, - 0x53, - 0x89, - 0x44 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetMetrics(FontMetrics1* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFont2*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetPanose(Panose* panose) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFont2*)Unsafe.AsPointer(ref this), panose); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFont2*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public Bool32 IsMonospacedFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetFontFamily(IDWriteFontFamily** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFont2*)Unsafe.AsPointer(ref this), fontFamily); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public FontWeight GetWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public FontStretch GetStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public FontStyle GetStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public Bool32 IsSymbolFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetFaceNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFont2*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFont2*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void GetMetrics(FontMetrics* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFont2*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult HasCharacter(uint unicodeValue, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFont2*)Unsafe.AsPointer(ref this), unicodeValue, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateFontFace(IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFont2*)Unsafe.AsPointer(ref this), fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public Bool32 IsColorFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteFontFace2 -[Guid("d8b768ff-64bc-4e66-982b-ec8e87f693f7")] -[NativeTypeName("struct IDWriteFontFace2 : IDWriteFontFace1")] -[NativeInheritance("IDWriteFontFace1")] -public unsafe partial struct IDWriteFontFace2 -{ - public static ref readonly Guid IID_IDWriteFontFace2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFF, 0x68, 0xB7, 0xD8, - 0xBC, 0x64, - 0x66, 0x4E, - 0x98, - 0x2B, - 0xEC, - 0x8E, - 0x87, - 0xF6, - 0x93, - 0xF7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void GetMetrics(FontMetrics1* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics1* fontMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetCaretMetrics(CaretMetrics* caretMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), caretMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public Bool32 IsMonospacedFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public Bool32 HasKerningPairs() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public Bool32 HasVerticalGlyphVariants() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public new FontFaceType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public uint GetIndex() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public Bool32 IsSymbolFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void GetMetrics(FontMetrics* fontFaceMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public ushort GetGlyphCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void ReleaseFontTable(void* tableContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), tableContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public Bool32 IsColorFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public uint GetColorPaletteCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public uint GetPaletteEntryCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Win32.Graphics.Direct2D.Common.ColorF** paletteEntries) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); - } -} - -/// -/// IDWriteColorGlyphRunEnumerator -[Guid("d31fbe17-f157-41a2-8d24-cb779e0560e8")] -[NativeTypeName("struct IDWriteColorGlyphRunEnumerator : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteColorGlyphRunEnumerator -{ - public static ref readonly Guid IID_IDWriteColorGlyphRunEnumerator - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x17, 0xBE, 0x1F, 0xD3, - 0x57, 0xF1, - 0xA2, 0x41, - 0x8D, - 0x24, - 0xCB, - 0x77, - 0x9E, - 0x05, - 0x60, - 0xE8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteColorGlyphRunEnumerator)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult MoveNext(Bool32* hasRun) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteColorGlyphRunEnumerator*)Unsafe.AsPointer(ref this), hasRun); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCurrentRun(ColorGlyphRun** colorGlyphRun) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteColorGlyphRunEnumerator*)Unsafe.AsPointer(ref this), colorGlyphRun); - } -} - -/// -/// IDWriteRenderingParams2 -[Guid("f9d711c3-9777-40ae-87e8-3e5af9bf0948")] -[NativeTypeName("struct IDWriteRenderingParams2 : IDWriteRenderingParams1")] -[NativeInheritance("IDWriteRenderingParams1")] -public unsafe partial struct IDWriteRenderingParams2 -{ - public static ref readonly Guid IID_IDWriteRenderingParams2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC3, 0x11, 0xD7, 0xF9, - 0x77, 0x97, - 0xAE, 0x40, - 0x87, - 0xE8, - 0x3E, - 0x5A, - 0xF9, - 0xBF, - 0x09, - 0x48 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRenderingParams2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public float GetGrayscaleEnhancedContrast() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public float GetGamma() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public float GetEnhancedContrast() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public float GetClearTypeLevel() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public PixelGeometry GetPixelGeometry() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public RenderingMode GetRenderingMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public GridFitMode GetGridFitMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteFactory2 -[Guid("0439fc60-ca44-4994-8dee-3a9af7b732ec")] -[NativeTypeName("struct IDWriteFactory2 : IDWriteFactory1")] -[NativeInheritance("IDWriteFactory1")] -public unsafe partial struct IDWriteFactory2 -{ - public static ref readonly Guid IID_IDWriteFactory2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x60, 0xFC, 0x39, 0x04, - 0x44, 0xCA, - 0x94, 0x49, - 0x8D, - 0xEE, - 0x3A, - 0x9A, - 0xF7, - 0xB7, - 0x32, - 0xEC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), monitor, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateTypography(IDWriteTypography** typography) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), typography); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), gdiInterop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), textAnalyzer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFallbackBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } -} - -/// -/// IDWriteRenderingParams3 -[Guid("b7924baa-391b-412a-8c5c-e44cc2d867dc")] -[NativeTypeName("struct IDWriteRenderingParams3 : IDWriteRenderingParams2")] -[NativeInheritance("IDWriteRenderingParams2")] -public unsafe partial struct IDWriteRenderingParams3 -{ - public static ref readonly Guid IID_IDWriteRenderingParams3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAA, 0x4B, 0x92, 0xB7, - 0x1B, 0x39, - 0x2A, 0x41, - 0x8C, - 0x5C, - 0xE4, - 0x4C, - 0xC2, - 0xD8, - 0x67, - 0xDC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRenderingParams3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public GridFitMode GetGridFitMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public float GetGrayscaleEnhancedContrast() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public float GetGamma() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public float GetEnhancedContrast() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public float GetClearTypeLevel() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public PixelGeometry GetPixelGeometry() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public RenderingMode GetRenderingMode() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public RenderingMode1 GetRenderingMode1() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteFactory3 -[Guid("9a1b41c3-d3bb-466a-87fc-fe67556a3b65")] -[NativeTypeName("struct IDWriteFactory3 : IDWriteFactory2")] -[NativeInheritance("IDWriteFactory2")] -public unsafe partial struct IDWriteFactory3 -{ - public static ref readonly Guid IID_IDWriteFactory3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC3, 0x41, 0x1B, 0x9A, - 0xBB, 0xD3, - 0x6A, 0x46, - 0x87, - 0xFC, - 0xFE, - 0x67, - 0x55, - 0x6A, - 0x3B, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFallbackBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), monitor, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateTypography(IDWriteTypography** typography) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), typography); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gdiInterop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), textAnalyzer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetSystemFontSet(IDWriteFontSet** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontSetBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontSet, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontDownloadQueue); - } -} - -/// -/// IDWriteFontSet -[Guid("53585141-d9f8-4095-8321-d73cf6bd116b")] -[NativeTypeName("struct IDWriteFontSet : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontSet -{ - public static ref readonly Guid IID_IDWriteFontSet - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x51, 0x58, 0x53, - 0xF8, 0xD9, - 0x95, 0x40, - 0x83, - 0x21, - 0xD7, - 0x3C, - 0xF6, - 0xBD, - 0x11, - 0x6B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetFontCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSet*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), fontFaceReference, listIndex, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), fontFace, listIndex, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), propertyID, values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), propertyID, preferredLocaleNames, values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), listIndex, propertyId, exists, values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), property, propertyOccurrenceCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), familyName, fontWeight, fontStretch, fontStyle, filteredSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet); - } -} - -/// -/// IDWriteFontSetBuilder -[Guid("2f642afe-9c68-4f40-b8be-457401afcb3d")] -[NativeTypeName("struct IDWriteFontSetBuilder : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontSetBuilder -{ - public static ref readonly Guid IID_IDWriteFontSetBuilder - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFE, 0x2A, 0x64, 0x2F, - 0x68, 0x9C, - 0x40, 0x4F, - 0xB8, - 0xBE, - 0x45, - 0x74, - 0x01, - 0xAF, - 0xCB, - 0x3D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference, FontProperty* properties, uint propertyCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontFaceReference, properties, propertyCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult AddFontSet(IDWriteFontSet* fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateFontSet(IDWriteFontSet** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontSet); - } -} - -/// -/// IDWriteFontCollection1 -[Guid("53585141-d9f8-4095-8321-d73cf6bd116c")] -[NativeTypeName("struct IDWriteFontCollection1 : IDWriteFontCollection")] -[NativeInheritance("IDWriteFontCollection")] -public unsafe partial struct IDWriteFontCollection1 -{ - public static ref readonly Guid IID_IDWriteFontCollection1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x51, 0x58, 0x53, - 0xF8, 0xD9, - 0x95, 0x40, - 0x83, - 0x21, - 0xD7, - 0x3C, - 0xF6, - 0xBD, - 0x11, - 0x6C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetFontFamilyCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), index, fontFamily); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), familyName, index, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), fontFace, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetFontSet(IDWriteFontSet** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFontFamily(uint index, IDWriteFontFamily1** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), index, fontFamily); - } -} - -/// -/// IDWriteFontFamily1 -[Guid("da20d8ef-812a-4c43-9802-62ec4abd7adf")] -[NativeTypeName("struct IDWriteFontFamily1 : IDWriteFontFamily")] -[NativeInheritance("IDWriteFontFamily")] -public unsafe partial struct IDWriteFontFamily1 -{ - public static ref readonly Guid IID_IDWriteFontFamily1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEF, 0xD8, 0x20, 0xDA, - 0x2A, 0x81, - 0x43, 0x4C, - 0x98, - 0x02, - 0x62, - 0xEC, - 0x4A, - 0xBD, - 0x7A, - 0xDF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetFamilyNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFirstMatchingFont(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFont** matchingFont) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFont); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetMatchingFonts(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFontList** matchingFonts) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFonts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetFontCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFont(uint index, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), index, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public Locality GetFontLocality(uint listIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), listIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetFont(uint listIndex, IDWriteFont3** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), listIndex, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); - } -} - -/// -/// IDWriteFontList1 -[Guid("da20d8ef-812a-4c43-9802-62ec4abd7ade")] -[NativeTypeName("struct IDWriteFontList1 : IDWriteFontList")] -[NativeInheritance("IDWriteFontList")] -public unsafe partial struct IDWriteFontList1 -{ - public static ref readonly Guid IID_IDWriteFontList1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEF, 0xD8, 0x20, 0xDA, - 0x2A, 0x81, - 0x43, 0x4C, - 0x98, - 0x02, - 0x62, - 0xEC, - 0x4A, - 0xBD, - 0x7A, - 0xDE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetFontCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontList1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetFont(uint index, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), index, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public Locality GetFontLocality(uint listIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), listIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetFont(uint listIndex, IDWriteFont3** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), listIndex, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); - } -} - -/// -/// IDWriteFontFaceReference -[Guid("5e7fa7ca-dde3-424c-89f0-9fcd6fed58cd")] -[NativeTypeName("struct IDWriteFontFaceReference : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontFaceReference -{ - public static ref readonly Guid IID_IDWriteFontFaceReference - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCA, 0xA7, 0x7F, 0x5E, - 0xE3, 0xDD, - 0x4C, 0x42, - 0x89, - 0xF0, - 0x9F, - 0xCD, - 0x6F, - 0xED, - 0x58, - 0xCD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFaceReference)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateFontFace(IDWriteFontFace3** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateFontFaceWithSimulations(FontSimulations fontFaceSimulationFlags, IDWriteFontFace3** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fontFaceSimulationFlags, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public Bool32 Equals(IDWriteFontFaceReference* fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public uint GetFontFaceIndex() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFontFile(IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public ulong GetLocalFileSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public ulong GetFileSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFileTime(ulong* lastWriteTime) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), lastWriteTime); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public Locality GetLocality() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult EnqueueFontDownloadRequest() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult EnqueueCharacterDownloadRequest(ushort* characters, uint characterCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), characters, characterCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult EnqueueGlyphDownloadRequest(ushort* glyphIndices, uint glyphCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult EnqueueFileFragmentDownloadRequest(ulong fileOffset, ulong fragmentSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fileOffset, fragmentSize); - } -} - -/// -/// IDWriteFont3 -[Guid("29748ed6-8c9c-4a6a-be0b-d912e8538944")] -[NativeTypeName("struct IDWriteFont3 : IDWriteFont2")] -[NativeInheritance("IDWriteFont2")] -public unsafe partial struct IDWriteFont3 -{ - public static ref readonly Guid IID_IDWriteFont3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD6, 0x8E, 0x74, 0x29, - 0x9C, 0x8C, - 0x6A, 0x4A, - 0xBE, - 0x0B, - 0xD9, - 0x12, - 0xE8, - 0x53, - 0x89, - 0x44 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Bool32 IsColorFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetMetrics(FontMetrics1* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void GetPanose(Panose* panose) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFont3*)Unsafe.AsPointer(ref this), panose); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFont3*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public Bool32 IsMonospacedFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFontFamily(IDWriteFontFamily** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontFamily); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public FontWeight GetWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public FontStretch GetStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public FontStyle GetStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public Bool32 IsSymbolFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetFaceNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFont3*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFont3*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void GetMetrics(FontMetrics* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult HasCharacter(uint unicodeValue, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFont3*)Unsafe.AsPointer(ref this), unicodeValue, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateFontFace(IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateFontFace(IDWriteFontFace3** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public Bool32 Equals(IDWriteFont* font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFont3*)Unsafe.AsPointer(ref this), font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public Bool32 HasCharacter(uint unicodeValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFont3*)Unsafe.AsPointer(ref this), unicodeValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public Locality GetLocality() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteFontFace3 -[Guid("d37d7598-09be-4222-a236-2081341cc1f2")] -[NativeTypeName("struct IDWriteFontFace3 : IDWriteFontFace2")] -[NativeInheritance("IDWriteFontFace2")] -public unsafe partial struct IDWriteFontFace3 -{ - public static ref readonly Guid IID_IDWriteFontFace3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x98, 0x75, 0x7D, 0xD3, - 0xBE, 0x09, - 0x22, 0x42, - 0xA2, - 0x36, - 0x20, - 0x81, - 0x34, - 0x1C, - 0xC1, - 0xF2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Bool32 IsColorFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetColorPaletteCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetPaletteEntryCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Win32.Graphics.Direct2D.Common.ColorF** paletteEntries) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetMetrics(FontMetrics1* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics1* fontMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void GetCaretMetrics(CaretMetrics* caretMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), caretMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public Bool32 IsMonospacedFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public Bool32 HasKerningPairs() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public Bool32 HasVerticalGlyphVariants() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public new FontFaceType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public uint GetIndex() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public Bool32 IsSymbolFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public void GetMetrics(FontMetrics* fontFaceMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public ushort GetGlyphCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public void ReleaseFontTable(void* tableContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), tableContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public void GetPanose(Panose* panose) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), panose); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public FontWeight GetWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public FontStretch GetStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public FontStyle GetStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult GetFamilyNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult GetFaceNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public Bool32 HasCharacter(uint unicodeValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), unicodeValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public Bool32 IsCharacterLocal(uint unicodeValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), unicodeValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public Bool32 IsGlyphLocal(ushort glyphId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal); - } -} - -/// -/// IDWriteStringList -[Guid("cfee3140-1157-47ca-8b85-31bfcf3f2d0e")] -[NativeTypeName("struct IDWriteStringList : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteStringList -{ - public static ref readonly Guid IID_IDWriteStringList - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x40, 0x31, 0xEE, 0xCF, - 0x57, 0x11, - 0xCA, 0x47, - 0x8B, - 0x85, - 0x31, - 0xBF, - 0xCF, - 0x3F, - 0x2D, - 0x0E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteStringList)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteStringList*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetLocaleNameLength(uint listIndex, uint* length) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, length); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetLocaleName(uint listIndex, ushort* localeName, uint size) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, localeName, size); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetStringLength(uint listIndex, uint* length) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, length); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetString(uint listIndex, ushort* stringBuffer, uint stringBufferSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize); - } -} - -/// -/// IDWriteFontDownloadListener -[Guid("b06fe5b9-43ec-4393-881b-dbe4dc72fda7")] -[NativeTypeName("struct IDWriteFontDownloadListener : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontDownloadListener -{ - public static ref readonly Guid IID_IDWriteFontDownloadListener - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB9, 0xE5, 0x6F, 0xB0, - 0xEC, 0x43, - 0x93, 0x43, - 0x88, - 0x1B, - 0xDB, - 0xE4, - 0xDC, - 0x72, - 0xFD, - 0xA7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontDownloadListener)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void DownloadCompleted(IDWriteFontDownloadQueue* downloadQueue, IUnknown* context, HResult downloadResult) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontDownloadListener*)Unsafe.AsPointer(ref this), downloadQueue, context, downloadResult); - } -} - -/// -/// IDWriteFontDownloadQueue -[Guid("b71e6052-5aea-4fa3-832e-f60d431f7e91")] -[NativeTypeName("struct IDWriteFontDownloadQueue : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontDownloadQueue -{ - public static ref readonly Guid IID_IDWriteFontDownloadQueue - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x52, 0x60, 0x1E, 0xB7, - 0xEA, 0x5A, - 0xA3, 0x4F, - 0x83, - 0x2E, - 0xF6, - 0x0D, - 0x43, - 0x1F, - 0x7E, - 0x91 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontDownloadQueue)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult AddListener(IDWriteFontDownloadListener* listener, uint* token) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this), listener, token); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult RemoveListener(uint token) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this), token); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public Bool32 IsEmpty() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult BeginDownload(IUnknown* context) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this), context); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CancelDownload() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ulong GetGenerationCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteGdiInterop1 -[Guid("4556be70-3abd-4f70-90be-421780a6f515")] -[NativeTypeName("struct IDWriteGdiInterop1 : IDWriteGdiInterop")] -[NativeInheritance("IDWriteGdiInterop")] -public unsafe partial struct IDWriteGdiInterop1 -{ - public static ref readonly Guid IID_IDWriteGdiInterop1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x70, 0xBE, 0x56, 0x45, - 0xBD, 0x3A, - 0x70, 0x4F, - 0x90, - 0xBE, - 0x42, - 0x17, - 0x80, - 0xA6, - 0xF5, - 0x15 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGdiInterop1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateFontFromLOGFONT(Win32.Graphics.Gdi.LogFontW* logFont, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), logFont, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult ConvertFontToLOGFONT(IDWriteFont* font, Win32.Graphics.Gdi.LogFontW** logFont, Bool32* isSystemFont) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), font, logFont, isSystemFont); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult ConvertFontFaceToLOGFONT(IDWriteFontFace* font, Win32.Graphics.Gdi.LogFontW** logFont) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), font, logFont); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateFontFaceFromHdc(IntPtr hdc, IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), hdc, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateBitmapRenderTarget(IntPtr hdc, uint width, uint height, IDWriteBitmapRenderTarget** renderTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), hdc, width, height, renderTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateFontFromLOGFONT(Win32.Graphics.Gdi.LogFontW* logFont, IDWriteFontCollection* fontCollection, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), logFont, fontCollection, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetFontSignature(IDWriteFontFace* fontFace, Win32.Graphics.Gdi.FontSignature** fontSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), fontFace, fontSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetFontSignature(IDWriteFont* font, Win32.Graphics.Gdi.FontSignature** fontSignature) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), font, fontSignature); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetMatchingFontsByLOGFONT(Win32.Graphics.Gdi.LogFontA* logFont, IDWriteFontSet* fontSet, IDWriteFontSet** filteredSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), logFont, fontSet, filteredSet); - } -} - -/// -/// IDWriteTextFormat2 -[Guid("f67e0edd-9e3d-4ecc-8c32-4183253dfe70")] -[NativeTypeName("struct IDWriteTextFormat2 : IDWriteTextFormat1")] -[NativeInheritance("IDWriteTextFormat1")] -public unsafe partial struct IDWriteTextFormat2 -{ - public static ref readonly Guid IID_IDWriteTextFormat2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDD, 0x0E, 0x7E, 0xF6, - 0x3D, 0x9E, - 0xCC, 0x4E, - 0x8C, - 0x32, - 0x41, - 0x83, - 0x25, - 0x3D, - 0xFE, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextFormat2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), glyphOrientation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public VerticalGlyphOrientation GetVerticalGlyphOrientation() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), isLastLineWrappingEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public Bool32 GetLastLineWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetOpticalAlignment(OpticalAlignment opticalAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), opticalAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public OpticalAlignment GetOpticalAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetFontFallback(IDWriteFontFallback* fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetTextAlignment(TextAlignment textAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), textAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), paragraphAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult SetWordWrapping(WordWrapping wordWrapping) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), wordWrapping); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetReadingDirection(ReadingDirection readingDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), readingDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetFlowDirection(FlowDirection flowDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), flowDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetIncrementalTabStop(float incrementalTabStop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), incrementalTabStop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public TextAlignment GetTextAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public ParagraphAlignment GetParagraphAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public WordWrapping GetWordWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public ReadingDirection GetReadingDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public FlowDirection GetFlowDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public float GetIncrementalTabStop() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public uint GetFontFamilyNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public FontWeight GetFontWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public FontStyle GetFontStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public FontStretch GetFontStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public float GetFontSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public uint GetLocaleNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), localeName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult SetLineSpacing(LineSpacing* lineSpacingOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), lineSpacingOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult GetLineSpacing(LineSpacing* lineSpacingOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), lineSpacingOptions); - } -} - -/// -/// IDWriteTextLayout3 -[Guid("07ddcd52-020e-4de8-ac33-6c953d83f92d")] -[NativeTypeName("struct IDWriteTextLayout3 : IDWriteTextLayout2")] -[NativeInheritance("IDWriteTextLayout2")] -public unsafe partial struct IDWriteTextLayout3 -{ - public static ref readonly Guid IID_IDWriteTextLayout3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x52, 0xCD, 0xDD, 0x07, - 0x0E, 0x02, - 0xE8, 0x4D, - 0xAC, - 0x33, - 0x6C, - 0x95, - 0x3D, - 0x83, - 0xF9, - 0x2D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetMetrics(TextMetrics1* textMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), textMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), glyphOrientation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public VerticalGlyphOrientation GetVerticalGlyphOrientation() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), isLastLineWrappingEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public Bool32 GetLastLineWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetOpticalAlignment(OpticalAlignment opticalAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), opticalAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public OpticalAlignment GetOpticalAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetFontFallback(IDWriteFontFallback* fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetPairKerning(Bool32 isPairKerningEnabled, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), isPairKerningEnabled, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetPairKerning(uint currentPosition, Bool32* isPairKerningEnabled, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, isPairKerningEnabled, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetCharacterSpacing(uint currentPosition, float* leadingSpacing, float* trailingSpacing, float* minimumAdvanceWidth, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetMaxWidth(float maxWidth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), maxWidth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult SetMaxHeight(float maxHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), maxHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult SetFontCollection(IDWriteFontCollection* fontCollection, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontCollection, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult SetFontFamilyName(ushort* fontFamilyName, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontFamilyName, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult SetFontWeight(FontWeight fontWeight, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontWeight, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult SetFontStyle(FontStyle fontStyle, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontStyle, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult SetFontStretch(FontStretch fontStretch, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontStretch, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult SetFontSize(float fontSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult SetUnderline(Bool32 hasUnderline, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), hasUnderline, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult SetStrikethrough(Bool32 hasStrikethrough, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), hasStrikethrough, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult SetDrawingEffect(IUnknown* drawingEffect, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), drawingEffect, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult SetInlineObject(IDWriteInlineObject* inlineObject, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), inlineObject, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult SetTypography(IDWriteTypography* typography, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), typography, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult SetLocaleName(ushort* localeName, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), localeName, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public float GetMaxWidth() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public float GetMaxHeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetFontCollection(uint currentPosition, IDWriteFontCollection** fontCollection, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontCollection, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult GetFontFamilyNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetFontWeight(uint currentPosition, FontWeight* fontWeight, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontWeight, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult GetFontStyle(uint currentPosition, FontStyle* fontStyle, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontStyle, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult GetFontStretch(uint currentPosition, FontStretch* fontStretch, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontStretch, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult GetFontSize(uint currentPosition, float* fontSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult GetUnderline(uint currentPosition, Bool32* hasUnderline, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, hasUnderline, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult GetStrikethrough(uint currentPosition, Bool32* hasStrikethrough, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, hasStrikethrough, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult GetDrawingEffect(uint currentPosition, IUnknown** drawingEffect, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, drawingEffect, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult GetInlineObject(uint currentPosition, IDWriteInlineObject** inlineObject, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, inlineObject, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult GetTypography(uint currentPosition, IDWriteTypography** typography, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, typography, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult GetLocaleNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), clientDrawingContext, renderer, originX, originY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult GetLineMetrics(LineMetrics* lineMetrics, uint maxLineCount, uint* actualLineCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult GetMetrics(TextMetrics* textMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), textMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult GetOverhangMetrics(OverhangMetrics* overhangs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), overhangs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult GetClusterMetrics(ClusterMetrics* clusterMetrics, uint maxClusterCount, uint* actualClusterCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), clusterMetrics, maxClusterCount, actualClusterCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult DetermineMinWidth(float* minWidth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), minWidth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult HitTestPoint(float pointX, float pointY, Bool32* isTrailingHit, Bool32* isInside, HitTestMetrics* hitTestMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), pointX, pointY, isTrailingHit, isInside, hitTestMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult HitTestTextPosition(uint textPosition, Bool32 isTrailingHit, float* pointX, float* pointY, HitTestMetrics* hitTestMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), textPosition, isTrailingHit, pointX, pointY, hitTestMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult HitTestTextRange(uint textPosition, uint textLength, float originX, float originY, HitTestMetrics* hitTestMetrics, uint maxHitTestMetricsCount, uint* actualHitTestMetricsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), textPosition, textLength, originX, originY, hitTestMetrics, maxHitTestMetricsCount, actualHitTestMetricsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult SetTextAlignment(TextAlignment textAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), textAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), paragraphAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult SetWordWrapping(WordWrapping wordWrapping) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), wordWrapping); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult SetReadingDirection(ReadingDirection readingDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), readingDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult SetFlowDirection(FlowDirection flowDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), flowDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult SetIncrementalTabStop(float incrementalTabStop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), incrementalTabStop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public TextAlignment GetTextAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public ParagraphAlignment GetParagraphAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public WordWrapping GetWordWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public ReadingDirection GetReadingDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public FlowDirection GetFlowDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public float GetIncrementalTabStop() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public uint GetFontFamilyNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public FontWeight GetFontWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public FontStyle GetFontStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public FontStretch GetFontStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public float GetFontSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public uint GetLocaleNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), localeName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public HResult InvalidateLayout() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public HResult SetLineSpacing(LineSpacing* lineSpacingOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineSpacingOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public HResult GetLineSpacing(LineSpacing* lineSpacingOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineSpacingOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public HResult GetLineMetrics(LineMetrics1* lineMetrics, uint maxLineCount, uint* actualLineCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); - } -} - -/// -/// IDWriteColorGlyphRunEnumerator1 -[Guid("7c5f86da-c7a1-4f05-b8e1-55a179fe5a35")] -[NativeTypeName("struct IDWriteColorGlyphRunEnumerator1 : IDWriteColorGlyphRunEnumerator")] -[NativeInheritance("IDWriteColorGlyphRunEnumerator")] -public unsafe partial struct IDWriteColorGlyphRunEnumerator1 -{ - public static ref readonly Guid IID_IDWriteColorGlyphRunEnumerator1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDA, 0x86, 0x5F, 0x7C, - 0xA1, 0xC7, - 0x05, 0x4F, - 0xB8, - 0xE1, - 0x55, - 0xA1, - 0x79, - 0xFE, - 0x5A, - 0x35 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteColorGlyphRunEnumerator1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult MoveNext(Bool32* hasRun) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteColorGlyphRunEnumerator1*)Unsafe.AsPointer(ref this), hasRun); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCurrentRun(ColorGlyphRun** colorGlyphRun) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteColorGlyphRunEnumerator1*)Unsafe.AsPointer(ref this), colorGlyphRun); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetCurrentRun(ColorGlyphRun1** colorGlyphRun) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteColorGlyphRunEnumerator1*)Unsafe.AsPointer(ref this), colorGlyphRun); - } -} - -/// -/// IDWriteFontFace4 -[Guid("27f2a904-4eb8-441d-9678-0563f53e3e2f")] -[NativeTypeName("struct IDWriteFontFace4 : IDWriteFontFace3")] -[NativeInheritance("IDWriteFontFace3")] -public unsafe partial struct IDWriteFontFace4 -{ - public static ref readonly Guid IID_IDWriteFontFace4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x04, 0xA9, 0xF2, 0x27, - 0xB8, 0x4E, - 0x1D, 0x44, - 0x96, - 0x78, - 0x05, - 0x63, - 0xF5, - 0x3E, - 0x3E, - 0x2F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void GetPanose(Panose* panose) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), panose); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public FontWeight GetWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public FontStretch GetStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public FontStyle GetStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFamilyNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetFaceNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public Bool32 HasCharacter(uint unicodeValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), unicodeValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public Bool32 IsCharacterLocal(uint unicodeValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), unicodeValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public Bool32 IsGlyphLocal(ushort glyphId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public Bool32 IsColorFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public uint GetColorPaletteCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public uint GetPaletteEntryCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Win32.Graphics.Direct2D.Common.ColorF** paletteEntries) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public void GetMetrics(FontMetrics1* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics1* fontMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public void GetCaretMetrics(CaretMetrics* caretMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), caretMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public Bool32 IsMonospacedFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public Bool32 HasKerningPairs() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public Bool32 HasVerticalGlyphVariants() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public new FontFaceType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public uint GetIndex() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public Bool32 IsSymbolFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public void GetMetrics(FontMetrics* fontFaceMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public ushort GetGlyphCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public void ReleaseFontTable(void* tableContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), tableContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult GetGlyphImageFormats(ushort glyphId, uint pixelsPerEmFirst, uint pixelsPerEmLast, GlyphImageFormats* glyphImageFormats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEmFirst, pixelsPerEmLast, glyphImageFormats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public GlyphImageFormats GetGlyphImageFormats() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult GetGlyphImageData(ushort glyphId, uint pixelsPerEm, GlyphImageFormats glyphImageFormat, GlyphImageData* glyphData, void** glyphDataContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEm, glyphImageFormat, glyphData, glyphDataContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public void ReleaseGlyphImageData(void* glyphDataContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphDataContext); - } -} - -/// -/// IDWriteFactory4 -[Guid("4b0b5bd3-0797-4549-8ac5-fe915cc53856")] -[NativeTypeName("struct IDWriteFactory4 : IDWriteFactory3")] -[NativeInheritance("IDWriteFactory3")] -public unsafe partial struct IDWriteFactory4 -{ - public static ref readonly Guid IID_IDWriteFactory4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD3, 0x5B, 0x0B, 0x4B, - 0x97, 0x07, - 0x49, 0x45, - 0x8A, - 0xC5, - 0xFE, - 0x91, - 0x5C, - 0xC5, - 0x38, - 0x56 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetSystemFontSet(IDWriteFontSet** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontSetBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontSet, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontDownloadQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFallbackBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), monitor, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateTypography(IDWriteTypography** typography) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), typography); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gdiInterop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), textAnalyzer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult TranslateColorGlyphRun(System.Drawing.PointF* baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF* baselineOrigin, System.Drawing.PointF** glyphOrigins) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF* baselineOrigin, Matrix* worldAndDpiTransform, System.Drawing.PointF** glyphOrigins) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins); - } -} - -/// -/// IDWriteFontSetBuilder1 -[Guid("3ff7715f-3cdc-4dc6-9b72-ec5621dccafd")] -[NativeTypeName("struct IDWriteFontSetBuilder1 : IDWriteFontSetBuilder")] -[NativeInheritance("IDWriteFontSetBuilder")] -public unsafe partial struct IDWriteFontSetBuilder1 -{ - public static ref readonly Guid IID_IDWriteFontSetBuilder1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5F, 0x71, 0xF7, 0x3F, - 0xDC, 0x3C, - 0xC6, 0x4D, - 0x9B, - 0x72, - 0xEC, - 0x56, - 0x21, - 0xDC, - 0xCA, - 0xFD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference, FontProperty* properties, uint propertyCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontFaceReference, properties, propertyCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult AddFontSet(IDWriteFontSet* fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateFontSet(IDWriteFontSet** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult AddFontFile(IDWriteFontFile* fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontFile); - } -} - -/// -/// IDWriteAsyncResult -[Guid("ce25f8fd-863b-4d13-9651-c1f88dc73fe2")] -[NativeTypeName("struct IDWriteAsyncResult : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteAsyncResult -{ - public static ref readonly Guid IID_IDWriteAsyncResult - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFD, 0xF8, 0x25, 0xCE, - 0x3B, 0x86, - 0x13, 0x4D, - 0x96, - 0x51, - 0xC1, - 0xF8, - 0x8D, - 0xC7, - 0x3F, - 0xE2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteAsyncResult)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public IntPtr GetWaitHandle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteAsyncResult*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetResult() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteAsyncResult*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteRemoteFontFileStream -[Guid("4db3757a-2c72-4ed9-b2b6-1ababe1aff9c")] -[NativeTypeName("struct IDWriteRemoteFontFileStream : IDWriteFontFileStream")] -[NativeInheritance("IDWriteFontFileStream")] -public unsafe partial struct IDWriteRemoteFontFileStream -{ - public static ref readonly Guid IID_IDWriteRemoteFontFileStream - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7A, 0x75, 0xB3, 0x4D, - 0x72, 0x2C, - 0xD9, 0x4E, - 0xB2, - 0xB6, - 0x1A, - 0xBA, - 0xBE, - 0x1A, - 0xFF, - 0x9C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRemoteFontFileStream)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult ReadFileFragment(void** fragmentStart, ulong fileOffset, ulong fragmentSize, void** fragmentContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), fragmentStart, fileOffset, fragmentSize, fragmentContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void ReleaseFileFragment(void* fragmentContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), fragmentContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetFileSize(ulong* fileSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), fileSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetLastWriteTime(ulong* lastWriteTime) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), lastWriteTime); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetLocalFileSize(ulong* localFileSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), localFileSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFileFragmentLocality(ulong fileOffset, ulong fragmentSize, Bool32* isLocal, ulong* partialSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), fileOffset, fragmentSize, isLocal, partialSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public Locality GetLocality() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult BeginDownload(Guid* downloadOperationID, FileFragment* fileFragments, uint fragmentCount, IDWriteAsyncResult** asyncResult) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), downloadOperationID, fileFragments, fragmentCount, asyncResult); - } -} - -/// -/// IDWriteRemoteFontFileLoader -[Guid("68648c83-6ede-46c0-ab46-20083a887fde")] -[NativeTypeName("struct IDWriteRemoteFontFileLoader : IDWriteFontFileLoader")] -[NativeInheritance("IDWriteFontFileLoader")] -public unsafe partial struct IDWriteRemoteFontFileLoader -{ - public static ref readonly Guid IID_IDWriteRemoteFontFileLoader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x83, 0x8C, 0x64, 0x68, - 0xDE, 0x6E, - 0xC0, 0x46, - 0xAB, - 0x46, - 0x20, - 0x08, - 0x3A, - 0x88, - 0x7F, - 0xDE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRemoteFontFileLoader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileStream** fontFileStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteRemoteFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateRemoteStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteRemoteFontFileStream** fontFileStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteRemoteFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetLocalityFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, Locality* locality) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteRemoteFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, locality); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateFontFileReferenceFromUrl(IDWriteFactory* factory, ushort* baseUrl, ushort* fontFileUrl, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteRemoteFontFileLoader*)Unsafe.AsPointer(ref this), factory, baseUrl, fontFileUrl, fontFile); - } -} - -/// -/// IDWriteInMemoryFontFileLoader -[Guid("dc102f47-a12d-4b1c-822d-9e117e33043f")] -[NativeTypeName("struct IDWriteInMemoryFontFileLoader : IDWriteFontFileLoader")] -[NativeInheritance("IDWriteFontFileLoader")] -public unsafe partial struct IDWriteInMemoryFontFileLoader -{ - public static ref readonly Guid IID_IDWriteInMemoryFontFileLoader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x47, 0x2F, 0x10, 0xDC, - 0x2D, 0xA1, - 0x1C, 0x4B, - 0x82, - 0x2D, - 0x9E, - 0x11, - 0x7E, - 0x33, - 0x04, - 0x3F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteInMemoryFontFileLoader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileStream** fontFileStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteInMemoryFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateInMemoryFontFileReference(IDWriteFactory* factory, void* fontData, uint fontDataSize, IUnknown* ownerObject, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteInMemoryFontFileLoader*)Unsafe.AsPointer(ref this), factory, fontData, fontDataSize, ownerObject, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetFileCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteInMemoryFontFileLoader*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteFactory5 -[Guid("958db99a-be2a-4f09-af7d-65189803d1d3")] -[NativeTypeName("struct IDWriteFactory5 : IDWriteFactory4")] -[NativeInheritance("IDWriteFactory4")] -public unsafe partial struct IDWriteFactory5 -{ - public static ref readonly Guid IID_IDWriteFactory5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9A, 0xB9, 0x8D, 0x95, - 0x2A, 0xBE, - 0x09, 0x4F, - 0xAF, - 0x7D, - 0x65, - 0x18, - 0x98, - 0x03, - 0xD1, - 0xD3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory5)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult TranslateColorGlyphRun(System.Drawing.PointF* baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF* baselineOrigin, System.Drawing.PointF** glyphOrigins) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF* baselineOrigin, Matrix* worldAndDpiTransform, System.Drawing.PointF** glyphOrigins) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetSystemFontSet(IDWriteFontSet** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontSetBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontSet, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontDownloadQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFallbackBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), monitor, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult CreateTypography(IDWriteTypography** typography) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), typography); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gdiInterop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), textAnalyzer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult CreateFontSetBuilder(IDWriteFontSetBuilder1** fontSetBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontSetBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult CreateInMemoryFontFileLoader(IDWriteInMemoryFontFileLoader** newLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), newLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult CreateHttpFontFileLoader(ushort* referrerUrl, ushort* extraHeaders, IDWriteRemoteFontFileLoader** newLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), referrerUrl, extraHeaders, newLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public ContainerType AnalyzeContainerType(void* fileData, uint fileDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fileData, fileDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult UnpackFontFile(ContainerType containerType, void* fileData, uint fileDataSize, IDWriteFontFileStream** unpackedFontStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), containerType, fileData, fileDataSize, unpackedFontStream); - } -} - -/// -/// IDWriteFactory6 -[Guid("f3744d80-21f7-42eb-b35d-995bc72fc223")] -[NativeTypeName("struct IDWriteFactory6 : IDWriteFactory5")] -[NativeInheritance("IDWriteFactory5")] -public unsafe partial struct IDWriteFactory6 -{ - public static ref readonly Guid IID_IDWriteFactory6 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x80, 0x4D, 0x74, 0xF3, - 0xF7, 0x21, - 0xEB, 0x42, - 0xB3, - 0x5D, - 0x99, - 0x5B, - 0xC7, - 0x2F, - 0xC2, - 0x23 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory6)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateFontSetBuilder(IDWriteFontSetBuilder1** fontSetBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSetBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateInMemoryFontFileLoader(IDWriteInMemoryFontFileLoader** newLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), newLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateHttpFontFileLoader(ushort* referrerUrl, ushort* extraHeaders, IDWriteRemoteFontFileLoader** newLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), referrerUrl, extraHeaders, newLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ContainerType AnalyzeContainerType(void* fileData, uint fileDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fileData, fileDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult UnpackFontFile(ContainerType containerType, void* fileData, uint fileDataSize, IDWriteFontFileStream** unpackedFontStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), containerType, fileData, fileDataSize, unpackedFontStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult TranslateColorGlyphRun(System.Drawing.PointF* baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF* baselineOrigin, System.Drawing.PointF** glyphOrigins) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF* baselineOrigin, Matrix* worldAndDpiTransform, System.Drawing.PointF** glyphOrigins) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetSystemFontSet(IDWriteFontSet** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSetBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSet, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontDownloadQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFallbackBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), monitor, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult CreateTypography(IDWriteTypography** typography) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), typography); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gdiInterop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), textAnalyzer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFaceReference1** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontAxisValues, fontAxisValueCount, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult CreateFontResource(IDWriteFontFile* fontFile, uint faceIndex, IDWriteFontResource** fontResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult GetSystemFontSet(Bool32 includeDownloadableFonts, IDWriteFontSet1** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontFamilyModel, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSet, fontFamilyModel, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult CreateFontSetBuilder(IDWriteFontSetBuilder2** fontSetBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSetBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontAxisValue* fontAxisValues, uint fontAxisValueCount, float fontSize, ushort* localeName, IDWriteTextFormat3** textFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontAxisValues, fontAxisValueCount, fontSize, localeName, textFormat); - } -} - -/// -/// IDWriteFontFace5 -[Guid("98eff3a5-b667-479a-b145-e2fa5b9fdc29")] -[NativeTypeName("struct IDWriteFontFace5 : IDWriteFontFace4")] -[NativeInheritance("IDWriteFontFace4")] -public unsafe partial struct IDWriteFontFace5 -{ - public static ref readonly Guid IID_IDWriteFontFace5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA5, 0xF3, 0xEF, 0x98, - 0x67, 0xB6, - 0x9A, 0x47, - 0xB1, - 0x45, - 0xE2, - 0xFA, - 0x5B, - 0x9F, - 0xDC, - 0x29 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace5)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetGlyphImageFormats(ushort glyphId, uint pixelsPerEmFirst, uint pixelsPerEmLast, GlyphImageFormats* glyphImageFormats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEmFirst, pixelsPerEmLast, glyphImageFormats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public GlyphImageFormats GetGlyphImageFormats() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetGlyphImageData(ushort glyphId, uint pixelsPerEm, GlyphImageFormats glyphImageFormat, GlyphImageData* glyphData, void** glyphDataContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEm, glyphImageFormat, glyphData, glyphDataContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public void ReleaseGlyphImageData(void* glyphDataContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphDataContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void GetPanose(Panose* panose) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), panose); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public FontWeight GetWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public FontStretch GetStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public FontStyle GetStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetFamilyNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetFaceNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public Bool32 HasCharacter(uint unicodeValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), unicodeValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public Bool32 IsCharacterLocal(uint unicodeValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), unicodeValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public Bool32 IsGlyphLocal(ushort glyphId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public Bool32 IsColorFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public uint GetColorPaletteCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public uint GetPaletteEntryCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Win32.Graphics.Direct2D.Common.ColorF** paletteEntries) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public void GetMetrics(FontMetrics1* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics1* fontMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void GetCaretMetrics(CaretMetrics* caretMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), caretMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public Bool32 IsMonospacedFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public Bool32 HasKerningPairs() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public Bool32 HasVerticalGlyphVariants() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public new FontFaceType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public uint GetIndex() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public Bool32 IsSymbolFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public void GetMetrics(FontMetrics* fontFaceMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public ushort GetGlyphCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void ReleaseFontTable(void* tableContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), tableContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public uint GetFontAxisValueCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public Bool32 HasVariations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult GetFontResource(IDWriteFontResource** fontResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public Bool32 Equals(IDWriteFontFace* fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontFace); - } -} - -/// -/// IDWriteFontResource -[Guid("1f803a76-6871-48e8-987f-b975551c50f2")] -[NativeTypeName("struct IDWriteFontResource : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDWriteFontResource -{ - public static ref readonly Guid IID_IDWriteFontResource - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x76, 0x3A, 0x80, 0x1F, - 0x71, 0x68, - 0xE8, 0x48, - 0x98, - 0x7F, - 0xB9, - 0x75, - 0x55, - 0x1C, - 0x50, - 0xF2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontResource)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetFontFile(IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public uint GetFontFaceIndex() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontResource*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetFontAxisCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontResource*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDefaultFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public FontAxisAttributes GetFontAxisAttributes(uint axisIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), axisIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetAxisNames(uint axisIndex, IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), axisIndex, names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public uint GetAxisValueNameCount(uint axisIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), axisIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetAxisValueNames(uint axisIndex, uint axisValueIndex, FontAxisRange* fontAxisRange, IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), axisIndex, axisValueIndex, fontAxisRange, names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public Bool32 HasVariations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontResource*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateFontFace(FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFace5** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontSimulations, fontAxisValues, fontAxisValueCount, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateFontFaceReference(FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFaceReference1** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontSimulations, fontAxisValues, fontAxisValueCount, fontFaceReference); - } -} - -/// -/// IDWriteFontFaceReference1 -[Guid("c081fe77-2fd1-41ac-a5a3-34983c4ba61a")] -[NativeTypeName("struct IDWriteFontFaceReference1 : IDWriteFontFaceReference")] -[NativeInheritance("IDWriteFontFaceReference")] -public unsafe partial struct IDWriteFontFaceReference1 -{ - public static ref readonly Guid IID_IDWriteFontFaceReference1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x77, 0xFE, 0x81, 0xC0, - 0xD1, 0x2F, - 0xAC, 0x41, - 0xA5, - 0xA3, - 0x34, - 0x98, - 0x3C, - 0x4B, - 0xA6, - 0x1A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFaceReference1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateFontFace(IDWriteFontFace3** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateFontFaceWithSimulations(FontSimulations fontFaceSimulationFlags, IDWriteFontFace3** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFaceSimulationFlags, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public Bool32 Equals(IDWriteFontFaceReference* fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public uint GetFontFaceIndex() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFontFile(IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public ulong GetLocalFileSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public ulong GetFileSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFileTime(ulong* lastWriteTime) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), lastWriteTime); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public Locality GetLocality() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult EnqueueFontDownloadRequest() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult EnqueueCharacterDownloadRequest(ushort* characters, uint characterCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), characters, characterCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult EnqueueGlyphDownloadRequest(ushort* glyphIndices, uint glyphCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult EnqueueFileFragmentDownloadRequest(ulong fileOffset, ulong fragmentSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fileOffset, fragmentSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateFontFace(IDWriteFontFace5** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public uint GetFontAxisValueCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); - } -} - -/// -/// IDWriteFontSetBuilder2 -[Guid("ee5ba612-b131-463c-8f4f-3189b9401e45")] -[NativeTypeName("struct IDWriteFontSetBuilder2 : IDWriteFontSetBuilder1")] -[NativeInheritance("IDWriteFontSetBuilder1")] -public unsafe partial struct IDWriteFontSetBuilder2 -{ - public static ref readonly Guid IID_IDWriteFontSetBuilder2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x12, 0xA6, 0x5B, 0xEE, - 0x31, 0xB1, - 0x3C, 0x46, - 0x8F, - 0x4F, - 0x31, - 0x89, - 0xB9, - 0x40, - 0x1E, - 0x45 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult AddFontFile(IDWriteFontFile* fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference, FontProperty* properties, uint propertyCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontFaceReference, properties, propertyCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult AddFontSet(IDWriteFontSet* fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateFontSet(IDWriteFontSet** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult AddFont(IDWriteFontFile* fontFile, uint fontFaceIndex, FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, FontProperty* properties, uint propertyCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontFile, fontFaceIndex, fontSimulations, fontAxisValues, fontAxisValueCount, fontAxisRanges, fontAxisRangeCount, properties, propertyCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult AddFontFile(ushort* filePath) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), filePath); - } -} - -/// -/// IDWriteFontSet1 -[Guid("7e9fda85-6c92-4053-bc47-7ae3530db4d3")] -[NativeTypeName("struct IDWriteFontSet1 : IDWriteFontSet")] -[NativeInheritance("IDWriteFontSet")] -public unsafe partial struct IDWriteFontSet1 -{ - public static ref readonly Guid IID_IDWriteFontSet1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x85, 0xDA, 0x9F, 0x7E, - 0x92, 0x6C, - 0x53, 0x40, - 0xBC, - 0x47, - 0x7A, - 0xE3, - 0x53, - 0x0D, - 0xB4, - 0xD3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetFontCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontFaceReference, listIndex, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontFace, listIndex, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), propertyID, values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), propertyID, preferredLocaleNames, values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, propertyId, exists, values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), property, propertyOccurrenceCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), familyName, fontWeight, fontStretch, fontStyle, filteredSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetMatchingFonts(FontProperty* fontProperty, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontSet1** matchingFonts) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontProperty, fontAxisValues, fontAxisValueCount, matchingFonts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetFirstFontResources(IDWriteFontSet1** filteredFontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), filteredFontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetFilteredFonts(uint* indices, uint indexCount, IDWriteFontSet1** filteredFontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), indices, indexCount, filteredFontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetFilteredFonts(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, IDWriteFontSet1** filteredFontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, filteredFontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetFilteredFonts(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, IDWriteFontSet1** filteredFontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, filteredFontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetFilteredFontIndices(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, uint* indices, uint maxIndexCount, uint* actualIndexCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, indices, maxIndexCount, actualIndexCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetFilteredFontIndices(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, uint* indices, uint maxIndexCount, uint* actualIndexCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, indices, maxIndexCount, actualIndexCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetFontAxisRanges(uint listIndex, FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference1** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateFontResource(uint listIndex, IDWriteFontResource** fontResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateFontFace(uint listIndex, IDWriteFontFace5** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public Locality GetFontLocality(uint listIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex); - } -} - -/// -/// IDWriteFontList2 -[Guid("c0763a34-77af-445a-b735-08c37b0a5bf5")] -[NativeTypeName("struct IDWriteFontList2 : IDWriteFontList1")] -[NativeInheritance("IDWriteFontList1")] -public unsafe partial struct IDWriteFontList2 -{ - public static ref readonly Guid IID_IDWriteFontList2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x34, 0x3A, 0x76, 0xC0, - 0xAF, 0x77, - 0x5A, 0x44, - 0xB7, - 0x35, - 0x08, - 0xC3, - 0x7B, - 0x0A, - 0x5B, - 0xF5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Locality GetFontLocality(uint listIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), listIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFont(uint listIndex, IDWriteFont3** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), listIndex, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetFontCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontList2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFont(uint index, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), index, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetFontSet(IDWriteFontSet1** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), fontSet); - } -} - -/// -/// IDWriteFontFamily2 -[Guid("3ed49e77-a398-4261-b9cf-c126c2131ef3")] -[NativeTypeName("struct IDWriteFontFamily2 : IDWriteFontFamily1")] -[NativeInheritance("IDWriteFontFamily1")] -public unsafe partial struct IDWriteFontFamily2 -{ - public static ref readonly Guid IID_IDWriteFontFamily2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x77, 0x9E, 0xD4, 0x3E, - 0x98, 0xA3, - 0x61, 0x42, - 0xB9, - 0xCF, - 0xC1, - 0x26, - 0xC2, - 0x13, - 0x1E, - 0xF3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Locality GetFontLocality(uint listIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), listIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFont(uint listIndex, IDWriteFont3** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), listIndex, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFamilyNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetFirstMatchingFont(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFont** matchingFont) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFont); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetMatchingFonts(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFontList** matchingFonts) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFonts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public uint GetFontCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFont(uint index, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), index, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetMatchingFonts(FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontList2** matchingFonts) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount, matchingFonts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetFontSet(IDWriteFontSet1** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), fontSet); - } -} - -/// -/// IDWriteFontCollection2 -[Guid("514039c6-4617-4064-bf8b-92ea83e506e0")] -[NativeTypeName("struct IDWriteFontCollection2 : IDWriteFontCollection1")] -[NativeInheritance("IDWriteFontCollection1")] -public unsafe partial struct IDWriteFontCollection2 -{ - public static ref readonly Guid IID_IDWriteFontCollection2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC6, 0x39, 0x40, 0x51, - 0x17, 0x46, - 0x64, 0x40, - 0xBF, - 0x8B, - 0x92, - 0xEA, - 0x83, - 0xE5, - 0x06, - 0xE0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetFontSet(IDWriteFontSet** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFontFamily(uint index, IDWriteFontFamily1** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), index, fontFamily); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetFontFamilyCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), index, fontFamily); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), familyName, index, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), fontFace, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetFontFamily(uint index, IDWriteFontFamily2** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), index, fontFamily); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetMatchingFonts(ushort* familyName, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontList2** fontList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), familyName, fontAxisValues, fontAxisValueCount, fontList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public FontFamilyModel GetFontFamilyModel() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetFontSet(IDWriteFontSet1** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), fontSet); - } -} - -/// -/// IDWriteTextLayout4 -[Guid("05a9bf42-223f-4441-b5fb-8263685f55e9")] -[NativeTypeName("struct IDWriteTextLayout4 : IDWriteTextLayout3")] -[NativeInheritance("IDWriteTextLayout3")] -public unsafe partial struct IDWriteTextLayout4 -{ - public static ref readonly Guid IID_IDWriteTextLayout4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x42, 0xBF, 0xA9, 0x05, - 0x3F, 0x22, - 0x41, 0x44, - 0xB5, - 0xFB, - 0x82, - 0x63, - 0x68, - 0x5F, - 0x55, - 0xE9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult InvalidateLayout() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetLineSpacing(LineSpacing* lineSpacingOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), lineSpacingOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetLineSpacing(LineSpacing* lineSpacingOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), lineSpacingOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetLineMetrics(LineMetrics1* lineMetrics, uint maxLineCount, uint* actualLineCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetMetrics(TextMetrics1* textMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), textMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), glyphOrientation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public VerticalGlyphOrientation GetVerticalGlyphOrientation() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), isLastLineWrappingEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public Bool32 GetLastLineWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetOpticalAlignment(OpticalAlignment opticalAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), opticalAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public OpticalAlignment GetOpticalAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetFontFallback(IDWriteFontFallback* fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetPairKerning(Bool32 isPairKerningEnabled, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), isPairKerningEnabled, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetPairKerning(uint currentPosition, Bool32* isPairKerningEnabled, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, isPairKerningEnabled, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult SetCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetCharacterSpacing(uint currentPosition, float* leadingSpacing, float* trailingSpacing, float* minimumAdvanceWidth, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult SetMaxWidth(float maxWidth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), maxWidth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult SetMaxHeight(float maxHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), maxHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult SetFontCollection(IDWriteFontCollection* fontCollection, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontCollection, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult SetFontFamilyName(ushort* fontFamilyName, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontFamilyName, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult SetFontWeight(FontWeight fontWeight, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontWeight, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult SetFontStyle(FontStyle fontStyle, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontStyle, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult SetFontStretch(FontStretch fontStretch, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontStretch, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult SetFontSize(float fontSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult SetUnderline(Bool32 hasUnderline, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), hasUnderline, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult SetStrikethrough(Bool32 hasStrikethrough, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), hasStrikethrough, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult SetDrawingEffect(IUnknown* drawingEffect, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), drawingEffect, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult SetInlineObject(IDWriteInlineObject* inlineObject, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), inlineObject, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult SetTypography(IDWriteTypography* typography, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), typography, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult SetLocaleName(ushort* localeName, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), localeName, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public float GetMaxWidth() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public float GetMaxHeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult GetFontCollection(uint currentPosition, IDWriteFontCollection** fontCollection, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontCollection, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult GetFontFamilyNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult GetFontWeight(uint currentPosition, FontWeight* fontWeight, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontWeight, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult GetFontStyle(uint currentPosition, FontStyle* fontStyle, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontStyle, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult GetFontStretch(uint currentPosition, FontStretch* fontStretch, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontStretch, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult GetFontSize(uint currentPosition, float* fontSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult GetUnderline(uint currentPosition, Bool32* hasUnderline, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, hasUnderline, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult GetStrikethrough(uint currentPosition, Bool32* hasStrikethrough, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, hasStrikethrough, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult GetDrawingEffect(uint currentPosition, IUnknown** drawingEffect, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, drawingEffect, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult GetInlineObject(uint currentPosition, IDWriteInlineObject** inlineObject, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, inlineObject, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult GetTypography(uint currentPosition, IDWriteTypography** typography, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, typography, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult GetLocaleNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), clientDrawingContext, renderer, originX, originY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult GetLineMetrics(LineMetrics* lineMetrics, uint maxLineCount, uint* actualLineCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult GetMetrics(TextMetrics* textMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), textMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult GetOverhangMetrics(OverhangMetrics* overhangs) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), overhangs); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult GetClusterMetrics(ClusterMetrics* clusterMetrics, uint maxClusterCount, uint* actualClusterCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), clusterMetrics, maxClusterCount, actualClusterCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult DetermineMinWidth(float* minWidth) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), minWidth); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult HitTestPoint(float pointX, float pointY, Bool32* isTrailingHit, Bool32* isInside, HitTestMetrics* hitTestMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), pointX, pointY, isTrailingHit, isInside, hitTestMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult HitTestTextPosition(uint textPosition, Bool32 isTrailingHit, float* pointX, float* pointY, HitTestMetrics* hitTestMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), textPosition, isTrailingHit, pointX, pointY, hitTestMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult HitTestTextRange(uint textPosition, uint textLength, float originX, float originY, HitTestMetrics* hitTestMetrics, uint maxHitTestMetricsCount, uint* actualHitTestMetricsCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), textPosition, textLength, originX, originY, hitTestMetrics, maxHitTestMetricsCount, actualHitTestMetricsCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult SetTextAlignment(TextAlignment textAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), textAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(60)] - public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), paragraphAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(61)] - public HResult SetWordWrapping(WordWrapping wordWrapping) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), wordWrapping); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(62)] - public HResult SetReadingDirection(ReadingDirection readingDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), readingDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(63)] - public HResult SetFlowDirection(FlowDirection flowDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), flowDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(64)] - public HResult SetIncrementalTabStop(float incrementalTabStop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), incrementalTabStop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(65)] - public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(66)] - public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(67)] - public TextAlignment GetTextAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(68)] - public ParagraphAlignment GetParagraphAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(69)] - public WordWrapping GetWordWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(70)] - public ReadingDirection GetReadingDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(71)] - public FlowDirection GetFlowDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(72)] - public float GetIncrementalTabStop() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(73)] - public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(74)] - public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(75)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(76)] - public uint GetFontFamilyNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(77)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(78)] - public FontWeight GetFontWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(79)] - public FontStyle GetFontStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(80)] - public FontStretch GetFontStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(81)] - public float GetFontSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(82)] - public uint GetLocaleNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(83)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), localeName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(84)] - public HResult SetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(85)] - public uint GetFontAxisValueCount(uint currentPosition) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(86)] - public HResult GetFontAxisValues(uint currentPosition, FontAxisValue* fontAxisValues, uint fontAxisValueCount, TextRange* textRange) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontAxisValues, fontAxisValueCount, textRange); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(87)] - public AutomaticFontAxes GetAutomaticFontAxes() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(88)] - public HResult SetAutomaticFontAxes(AutomaticFontAxes automaticFontAxes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), automaticFontAxes); - } -} - -/// -/// IDWriteTextFormat3 -[Guid("6d3b5641-e550-430d-a85b-b7bf48a93427")] -[NativeTypeName("struct IDWriteTextFormat3 : IDWriteTextFormat2")] -[NativeInheritance("IDWriteTextFormat2")] -public unsafe partial struct IDWriteTextFormat3 -{ - public static ref readonly Guid IID_IDWriteTextFormat3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x56, 0x3B, 0x6D, - 0x50, 0xE5, - 0x0D, 0x43, - 0xA8, - 0x5B, - 0xB7, - 0xBF, - 0x48, - 0xA9, - 0x34, - 0x27 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextFormat3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetLineSpacing(LineSpacing* lineSpacingOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), lineSpacingOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetLineSpacing(LineSpacing* lineSpacingOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), lineSpacingOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), glyphOrientation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public VerticalGlyphOrientation GetVerticalGlyphOrientation() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), isLastLineWrappingEnabled); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public Bool32 GetLastLineWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetOpticalAlignment(OpticalAlignment opticalAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), opticalAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public OpticalAlignment GetOpticalAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetFontFallback(IDWriteFontFallback* fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult SetTextAlignment(TextAlignment textAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), textAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), paragraphAlignment); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetWordWrapping(WordWrapping wordWrapping) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), wordWrapping); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetReadingDirection(ReadingDirection readingDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), readingDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult SetFlowDirection(FlowDirection flowDirection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), flowDirection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult SetIncrementalTabStop(float incrementalTabStop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), incrementalTabStop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public TextAlignment GetTextAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public ParagraphAlignment GetParagraphAlignment() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public WordWrapping GetWordWrapping() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public ReadingDirection GetReadingDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public FlowDirection GetFlowDirection() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public float GetIncrementalTabStop() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetFontCollection(IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public uint GetFontFamilyNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public FontWeight GetFontWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public FontStyle GetFontStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public FontStretch GetFontStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public float GetFontSize() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public uint GetLocaleNameLength() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), localeName, nameSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult SetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public uint GetFontAxisValueCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public AutomaticFontAxes GetAutomaticFontAxes() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult SetAutomaticFontAxes(AutomaticFontAxes automaticFontAxes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), automaticFontAxes); - } -} - -/// -/// IDWriteFontFallback1 -[Guid("2397599d-dd0d-4681-bd6a-f4f31eaade77")] -[NativeTypeName("struct IDWriteFontFallback1 : IDWriteFontFallback")] -[NativeInheritance("IDWriteFontFallback")] -public unsafe partial struct IDWriteFontFallback1 -{ - public static ref readonly Guid IID_IDWriteFontFallback1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9D, 0x59, 0x97, 0x23, - 0x0D, 0xDD, - 0x81, 0x46, - 0xBD, - 0x6A, - 0xF4, - 0xF3, - 0x1E, - 0xAA, - 0xDE, - 0x77 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallback1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult MapCharacters(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteFontCollection* baseFontCollection, ushort* baseFamilyName, FontWeight baseWeight, FontStyle baseStyle, FontStretch baseStretch, uint* mappedLength, IDWriteFont** mappedFont, float* scale) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFallback1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, baseFontCollection, baseFamilyName, baseWeight, baseStyle, baseStretch, mappedLength, mappedFont, scale); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult MapCharacters(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteFontCollection* baseFontCollection, ushort* baseFamilyName, FontAxisValue* fontAxisValues, uint fontAxisValueCount, uint* mappedLength, float* scale, IDWriteFontFace5** mappedFontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFallback1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, baseFontCollection, baseFamilyName, fontAxisValues, fontAxisValueCount, mappedLength, scale, mappedFontFace); - } -} - -/// -/// IDWriteFontSet2 -[Guid("dc7ead19-e54c-43af-b2da-4e2b79ba3f7f")] -[NativeTypeName("struct IDWriteFontSet2 : IDWriteFontSet1")] -[NativeInheritance("IDWriteFontSet1")] -public unsafe partial struct IDWriteFontSet2 -{ - public static ref readonly Guid IID_IDWriteFontSet2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x19, 0xAD, 0x7E, 0xDC, - 0x4C, 0xE5, - 0xAF, 0x43, - 0xB2, - 0xDA, - 0x4E, - 0x2B, - 0x79, - 0xBA, - 0x3F, - 0x7F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetMatchingFonts(FontProperty* fontProperty, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontSet1** matchingFonts) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontProperty, fontAxisValues, fontAxisValueCount, matchingFonts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFirstFontResources(IDWriteFontSet1** filteredFontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), filteredFontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetFilteredFonts(uint* indices, uint indexCount, IDWriteFontSet1** filteredFontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), indices, indexCount, filteredFontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFilteredFonts(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, IDWriteFontSet1** filteredFontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, filteredFontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetFilteredFonts(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, IDWriteFontSet1** filteredFontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, filteredFontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFilteredFontIndices(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, uint* indices, uint maxIndexCount, uint* actualIndexCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, indices, maxIndexCount, actualIndexCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetFilteredFontIndices(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, uint* indices, uint maxIndexCount, uint* actualIndexCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, indices, maxIndexCount, actualIndexCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetFontAxisRanges(uint listIndex, FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference1** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateFontResource(uint listIndex, IDWriteFontResource** fontResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateFontFace(uint listIndex, IDWriteFontFace5** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public Locality GetFontLocality(uint listIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public uint GetFontCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontFaceReference, listIndex, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontFace, listIndex, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), propertyID, values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), propertyID, preferredLocaleNames, values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, propertyId, exists, values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), property, propertyOccurrenceCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), familyName, fontWeight, fontStretch, fontStyle, filteredSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public IntPtr GetExpirationEvent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteFontCollection3 -[Guid("a4d055a6-f9e3-4e25-93b7-9e309f3af8e9")] -[NativeTypeName("struct IDWriteFontCollection3 : IDWriteFontCollection2")] -[NativeInheritance("IDWriteFontCollection2")] -public unsafe partial struct IDWriteFontCollection3 -{ - public static ref readonly Guid IID_IDWriteFontCollection3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA6, 0x55, 0xD0, 0xA4, - 0xE3, 0xF9, - 0x25, 0x4E, - 0x93, - 0xB7, - 0x9E, - 0x30, - 0x9F, - 0x3A, - 0xF8, - 0xE9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetFontFamily(uint index, IDWriteFontFamily2** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), index, fontFamily); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetMatchingFonts(ushort* familyName, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontList2** fontList) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), familyName, fontAxisValues, fontAxisValueCount, fontList); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public FontFamilyModel GetFontFamilyModel() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFontSet(IDWriteFontSet1** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetFontSet(IDWriteFontSet** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFontFamily(uint index, IDWriteFontFamily1** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), index, fontFamily); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public uint GetFontFamilyCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), index, fontFamily); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), familyName, index, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), fontFace, font); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public IntPtr GetExpirationEvent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDWriteFactory7 -[Guid("35d0e0b3-9076-4d2e-a016-a91b568a06b4")] -[NativeTypeName("struct IDWriteFactory7 : IDWriteFactory6")] -[NativeInheritance("IDWriteFactory6")] -public unsafe partial struct IDWriteFactory7 -{ - public static ref readonly Guid IID_IDWriteFactory7 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB3, 0xE0, 0xD0, 0x35, - 0x76, 0x90, - 0x2E, 0x4D, - 0xA0, - 0x16, - 0xA9, - 0x1B, - 0x56, - 0x8A, - 0x06, - 0xB4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory7)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFaceReference1** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontAxisValues, fontAxisValueCount, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateFontResource(IDWriteFontFile* fontFile, uint faceIndex, IDWriteFontResource** fontResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetSystemFontSet(Bool32 includeDownloadableFonts, IDWriteFontSet1** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontFamilyModel, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSet, fontFamilyModel, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateFontSetBuilder(IDWriteFontSetBuilder2** fontSetBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSetBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontAxisValue* fontAxisValues, uint fontAxisValueCount, float fontSize, ushort* localeName, IDWriteTextFormat3** textFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontAxisValues, fontAxisValueCount, fontSize, localeName, textFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateFontSetBuilder(IDWriteFontSetBuilder1** fontSetBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSetBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateInMemoryFontFileLoader(IDWriteInMemoryFontFileLoader** newLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), newLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateHttpFontFileLoader(ushort* referrerUrl, ushort* extraHeaders, IDWriteRemoteFontFileLoader** newLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), referrerUrl, extraHeaders, newLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public ContainerType AnalyzeContainerType(void* fileData, uint fileDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fileData, fileDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult UnpackFontFile(ContainerType containerType, void* fileData, uint fileDataSize, IDWriteFontFileStream** unpackedFontStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), containerType, fileData, fileDataSize, unpackedFontStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult TranslateColorGlyphRun(System.Drawing.PointF* baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF* baselineOrigin, System.Drawing.PointF** glyphOrigins) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF* baselineOrigin, Matrix* worldAndDpiTransform, System.Drawing.PointF** glyphOrigins) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetSystemFontSet(IDWriteFontSet** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSetBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSet, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontDownloadQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFallback); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFallbackBuilder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontCollectionLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), monitor, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFileLoader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public HResult CreateTypography(IDWriteTypography** typography) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), typography); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gdiInterop); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), textAnalyzer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult GetSystemFontSet(Bool32 includeDownloadableFonts, IDWriteFontSet2** fontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection3** fontCollection) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontFamilyModel, fontCollection); - } -} - -/// -/// IDWriteFontSet3 -[Guid("7c073ef2-a7f4-4045-8c32-8ab8ae640f90")] -[NativeTypeName("struct IDWriteFontSet3 : IDWriteFontSet2")] -[NativeInheritance("IDWriteFontSet2")] -public unsafe partial struct IDWriteFontSet3 -{ - public static ref readonly Guid IID_IDWriteFontSet3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF2, 0x3E, 0x07, 0x7C, - 0xF4, 0xA7, - 0x45, 0x40, - 0x8C, - 0x32, - 0x8A, - 0xB8, - 0xAE, - 0x64, - 0x0F, - 0x90 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public IntPtr GetExpirationEvent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetMatchingFonts(FontProperty* fontProperty, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontSet1** matchingFonts) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontProperty, fontAxisValues, fontAxisValueCount, matchingFonts); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetFirstFontResources(IDWriteFontSet1** filteredFontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), filteredFontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFilteredFonts(uint* indices, uint indexCount, IDWriteFontSet1** filteredFontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), indices, indexCount, filteredFontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetFilteredFonts(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, IDWriteFontSet1** filteredFontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, filteredFontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetFilteredFonts(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, IDWriteFontSet1** filteredFontSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, filteredFontSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetFilteredFontIndices(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, uint* indices, uint maxIndexCount, uint* actualIndexCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, indices, maxIndexCount, actualIndexCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetFilteredFontIndices(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, uint* indices, uint maxIndexCount, uint* actualIndexCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, indices, maxIndexCount, actualIndexCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFontAxisRanges(uint listIndex, FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference1** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateFontResource(uint listIndex, IDWriteFontResource** fontResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateFontFace(uint listIndex, IDWriteFontFace5** fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public Locality GetFontLocality(uint listIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public uint GetFontCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontFaceReference, listIndex, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontFace, listIndex, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), propertyID, values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), propertyID, preferredLocaleNames, values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, propertyId, exists, values); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), property, propertyOccurrenceCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), familyName, fontWeight, fontStretch, fontStyle, filteredSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public FontSourceType GetFontSourceType(uint fontIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public uint GetFontSourceNameLength(uint listIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetFontSourceName(uint listIndex, ushort* stringBuffer, uint stringBufferSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize); - } -} - -/// -/// IDWriteFontFace6 -[Guid("c4b1fe1b-6e84-47d5-b54c-a597981b06ad")] -[NativeTypeName("struct IDWriteFontFace6 : IDWriteFontFace5")] -[NativeInheritance("IDWriteFontFace5")] -public unsafe partial struct IDWriteFontFace6 -{ - public static ref readonly Guid IID_IDWriteFontFace6 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1B, 0xFE, 0xB1, 0xC4, - 0x84, 0x6E, - 0xD5, 0x47, - 0xB5, - 0x4C, - 0xA5, - 0x97, - 0x98, - 0x1B, - 0x06, - 0xAD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace6)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetFontAxisValueCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public Bool32 HasVariations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFontResource(IDWriteFontResource** fontResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public Bool32 Equals(IDWriteFontFace* fontFace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetGlyphImageFormats(ushort glyphId, uint pixelsPerEmFirst, uint pixelsPerEmLast, GlyphImageFormats* glyphImageFormats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEmFirst, pixelsPerEmLast, glyphImageFormats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public GlyphImageFormats GetGlyphImageFormats() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetGlyphImageData(ushort glyphId, uint pixelsPerEm, GlyphImageFormats glyphImageFormat, GlyphImageData* glyphData, void** glyphDataContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEm, glyphImageFormat, glyphData, glyphDataContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public void ReleaseGlyphImageData(void* glyphDataContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphDataContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFaceReference); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void GetPanose(Panose* panose) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), panose); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public FontWeight GetWeight() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public FontStretch GetStretch() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public FontStyle GetStyle() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetFamilyNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetFaceNames(IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public Bool32 HasCharacter(uint unicodeValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), unicodeValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public Bool32 IsCharacterLocal(uint unicodeValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), unicodeValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public Bool32 IsGlyphLocal(ushort glyphId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public Bool32 IsColorFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public uint GetColorPaletteCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public uint GetPaletteEntryCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Win32.Graphics.Direct2D.Common.ColorF** paletteEntries) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public void GetMetrics(FontMetrics1* fontMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics1* fontMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public void GetCaretMetrics(CaretMetrics* caretMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), caretMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public Bool32 IsMonospacedFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public Bool32 HasKerningPairs() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public Bool32 HasVerticalGlyphVariants() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(43)] - public new FontFaceType GetType() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(44)] - public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(45)] - public uint GetIndex() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(46)] - public FontSimulations GetSimulations() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(47)] - public Bool32 IsSymbolFont() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(48)] - public void GetMetrics(FontMetrics* fontFaceMetrics) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(49)] - public ushort GetGlyphCount() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(50)] - public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(51)] - public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(52)] - public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(53)] - public void ReleaseFontTable(void* tableContext) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), tableContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(54)] - public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(55)] - public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(56)] - public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(57)] - public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(58)] - public HResult GetFamilyNames(FontFamilyModel fontFamilyModel, IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFamilyModel, names); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(59)] - public HResult GetFaceNames(FontFamilyModel fontFamilyModel, IDWriteLocalizedStrings** names) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFamilyModel, names); - } -} - #endregion Com Types #region Functions diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteAsyncResult.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteAsyncResult.cs new file mode 100644 index 0000000..283e154 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteAsyncResult.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteAsyncResult +[Guid("ce25f8fd-863b-4d13-9651-c1f88dc73fe2")] +[NativeTypeName("struct IDWriteAsyncResult : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteAsyncResult +{ + public static ref readonly Guid IID_IDWriteAsyncResult + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFD, 0xF8, 0x25, 0xCE, + 0x3B, 0x86, + 0x13, 0x4D, + 0x96, + 0x51, + 0xC1, + 0xF8, + 0x8D, + 0xC7, + 0x3F, + 0xE2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteAsyncResult)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public IntPtr GetWaitHandle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteAsyncResult*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetResult() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteAsyncResult*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteBitmapRenderTarget.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteBitmapRenderTarget.cs new file mode 100644 index 0000000..9c8dc7a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteBitmapRenderTarget.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteBitmapRenderTarget +[Guid("5e5a32a3-8dff-4773-9ff6-0696eab77267")] +[NativeTypeName("struct IDWriteBitmapRenderTarget : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteBitmapRenderTarget +{ + public static ref readonly Guid IID_IDWriteBitmapRenderTarget + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA3, 0x32, 0x5A, 0x5E, + 0xFF, 0x8D, + 0x73, 0x47, + 0x9F, + 0xF6, + 0x06, + 0x96, + 0xEA, + 0xB7, + 0x72, + 0x67 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteBitmapRenderTarget)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, IDWriteRenderingParams* renderingParams, uint textColor, RawRect* blackBoxRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, measuringMode, glyphRun, renderingParams, textColor, blackBoxRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public IntPtr GetMemoryDC() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public float GetPixelsPerDip() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPixelsPerDip(float pixelsPerDip) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), pixelsPerDip); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetCurrentTransform(Matrix* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetCurrentTransform(Matrix* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSize(System.Drawing.Size* size) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Resize(uint width, uint height) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), width, height); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteBitmapRenderTarget1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteBitmapRenderTarget1.cs new file mode 100644 index 0000000..3573cca --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteBitmapRenderTarget1.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteBitmapRenderTarget1 +[Guid("791e8298-3ef3-4230-9880-c9bdecc42064")] +[NativeTypeName("struct IDWriteBitmapRenderTarget1 : IDWriteBitmapRenderTarget")] +[NativeInheritance("IDWriteBitmapRenderTarget")] +public unsafe partial struct IDWriteBitmapRenderTarget1 +{ + public static ref readonly Guid IID_IDWriteBitmapRenderTarget1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x98, 0x82, 0x1E, 0x79, + 0xF3, 0x3E, + 0x30, 0x42, + 0x98, + 0x80, + 0xC9, + 0xBD, + 0xEC, + 0xC4, + 0x20, + 0x64 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteBitmapRenderTarget1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, IDWriteRenderingParams* renderingParams, uint textColor, RawRect* blackBoxRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, measuringMode, glyphRun, renderingParams, textColor, blackBoxRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public IntPtr GetMemoryDC() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public float GetPixelsPerDip() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPixelsPerDip(float pixelsPerDip) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), pixelsPerDip); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetCurrentTransform(Matrix* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetCurrentTransform(Matrix* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSize(System.Drawing.Size* size) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Resize(uint width, uint height) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), width, height); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult SetTextAntialiasMode(TextAntialiasMode antialiasMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), antialiasMode); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteColorGlyphRunEnumerator.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteColorGlyphRunEnumerator.cs new file mode 100644 index 0000000..24dda65 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteColorGlyphRunEnumerator.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteColorGlyphRunEnumerator +[Guid("d31fbe17-f157-41a2-8d24-cb779e0560e8")] +[NativeTypeName("struct IDWriteColorGlyphRunEnumerator : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteColorGlyphRunEnumerator +{ + public static ref readonly Guid IID_IDWriteColorGlyphRunEnumerator + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x17, 0xBE, 0x1F, 0xD3, + 0x57, 0xF1, + 0xA2, 0x41, + 0x8D, + 0x24, + 0xCB, + 0x77, + 0x9E, + 0x05, + 0x60, + 0xE8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteColorGlyphRunEnumerator)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult MoveNext(Bool32* hasRun) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteColorGlyphRunEnumerator*)Unsafe.AsPointer(ref this), hasRun); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCurrentRun(ColorGlyphRun** colorGlyphRun) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteColorGlyphRunEnumerator*)Unsafe.AsPointer(ref this), colorGlyphRun); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteColorGlyphRunEnumerator1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteColorGlyphRunEnumerator1.cs new file mode 100644 index 0000000..cc181ee --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteColorGlyphRunEnumerator1.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteColorGlyphRunEnumerator1 +[Guid("7c5f86da-c7a1-4f05-b8e1-55a179fe5a35")] +[NativeTypeName("struct IDWriteColorGlyphRunEnumerator1 : IDWriteColorGlyphRunEnumerator")] +[NativeInheritance("IDWriteColorGlyphRunEnumerator")] +public unsafe partial struct IDWriteColorGlyphRunEnumerator1 +{ + public static ref readonly Guid IID_IDWriteColorGlyphRunEnumerator1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDA, 0x86, 0x5F, 0x7C, + 0xA1, 0xC7, + 0x05, 0x4F, + 0xB8, + 0xE1, + 0x55, + 0xA1, + 0x79, + 0xFE, + 0x5A, + 0x35 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteColorGlyphRunEnumerator1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult MoveNext(Bool32* hasRun) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteColorGlyphRunEnumerator1*)Unsafe.AsPointer(ref this), hasRun); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCurrentRun(ColorGlyphRun** colorGlyphRun) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteColorGlyphRunEnumerator1*)Unsafe.AsPointer(ref this), colorGlyphRun); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetCurrentRun(ColorGlyphRun1** colorGlyphRun) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteColorGlyphRunEnumerator1*)Unsafe.AsPointer(ref this), colorGlyphRun); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory.cs new file mode 100644 index 0000000..8e4a2d4 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory.cs @@ -0,0 +1,251 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFactory +[Guid("b859ee5a-d838-4b5b-a2e8-1adc7d93db48")] +[NativeTypeName("struct IDWriteFactory : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFactory +{ + public static ref readonly Guid IID_IDWriteFactory + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5A, 0xEE, 0x59, 0xB8, + 0x38, 0xD8, + 0x5B, 0x4B, + 0xA2, + 0xE8, + 0x1A, + 0xDC, + 0x7D, + 0x93, + 0xDB, + 0x48 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory*)Unsafe.AsPointer(ref this), renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory*)Unsafe.AsPointer(ref this), monitor, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateTypography(IDWriteTypography** typography) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory*)Unsafe.AsPointer(ref this), typography); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory*)Unsafe.AsPointer(ref this), gdiInterop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory*)Unsafe.AsPointer(ref this), textAnalyzer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory1.cs new file mode 100644 index 0000000..2818b65 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory1.cs @@ -0,0 +1,267 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFactory1 +[Guid("30572f99-dac6-41db-a16e-0486307e606a")] +[NativeTypeName("struct IDWriteFactory1 : IDWriteFactory")] +[NativeInheritance("IDWriteFactory")] +public unsafe partial struct IDWriteFactory1 +{ + public static ref readonly Guid IID_IDWriteFactory1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x99, 0x2F, 0x57, 0x30, + 0xC6, 0xDA, + 0xDB, 0x41, + 0xA1, + 0x6E, + 0x04, + 0x86, + 0x30, + 0x7E, + 0x60, + 0x6A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), monitor, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateTypography(IDWriteTypography** typography) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), typography); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), gdiInterop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), textAnalyzer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory2.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory2.cs new file mode 100644 index 0000000..a605572 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory2.cs @@ -0,0 +1,307 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFactory2 +[Guid("0439fc60-ca44-4994-8dee-3a9af7b732ec")] +[NativeTypeName("struct IDWriteFactory2 : IDWriteFactory1")] +[NativeInheritance("IDWriteFactory1")] +public unsafe partial struct IDWriteFactory2 +{ + public static ref readonly Guid IID_IDWriteFactory2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x60, 0xFC, 0x39, 0x04, + 0x44, 0xCA, + 0x94, 0x49, + 0x8D, + 0xEE, + 0x3A, + 0x9A, + 0xF7, + 0xB7, + 0x32, + 0xEC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), monitor, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateTypography(IDWriteTypography** typography) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), typography); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), gdiInterop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), textAnalyzer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), fontFallbackBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory3.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory3.cs new file mode 100644 index 0000000..4202ff4 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory3.cs @@ -0,0 +1,379 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFactory3 +[Guid("9a1b41c3-d3bb-466a-87fc-fe67556a3b65")] +[NativeTypeName("struct IDWriteFactory3 : IDWriteFactory2")] +[NativeInheritance("IDWriteFactory2")] +public unsafe partial struct IDWriteFactory3 +{ + public static ref readonly Guid IID_IDWriteFactory3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC3, 0x41, 0x1B, 0x9A, + 0xBB, 0xD3, + 0x6A, 0x46, + 0x87, + 0xFC, + 0xFE, + 0x67, + 0x55, + 0x6A, + 0x3B, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), monitor, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateTypography(IDWriteTypography** typography) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), typography); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gdiInterop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), textAnalyzer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFallbackBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetSystemFontSet(IDWriteFontSet** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontSetBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontSet, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontDownloadQueue); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory4.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory4.cs new file mode 100644 index 0000000..3af19f6 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory4.cs @@ -0,0 +1,403 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFactory4 +[Guid("4b0b5bd3-0797-4549-8ac5-fe915cc53856")] +[NativeTypeName("struct IDWriteFactory4 : IDWriteFactory3")] +[NativeInheritance("IDWriteFactory3")] +public unsafe partial struct IDWriteFactory4 +{ + public static ref readonly Guid IID_IDWriteFactory4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD3, 0x5B, 0x0B, 0x4B, + 0x97, 0x07, + 0x49, 0x45, + 0x8A, + 0xC5, + 0xFE, + 0x91, + 0x5C, + 0xC5, + 0x38, + 0x56 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), monitor, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateTypography(IDWriteTypography** typography) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), typography); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gdiInterop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), textAnalyzer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFallbackBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetSystemFontSet(IDWriteFontSet** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontSetBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontSet, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), fontDownloadQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult TranslateColorGlyphRun(System.Drawing.PointF* baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF* baselineOrigin, System.Drawing.PointF** glyphOrigins) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF* baselineOrigin, Matrix* worldAndDpiTransform, System.Drawing.PointF** glyphOrigins) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory5.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory5.cs new file mode 100644 index 0000000..521e114 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory5.cs @@ -0,0 +1,443 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFactory5 +[Guid("958db99a-be2a-4f09-af7d-65189803d1d3")] +[NativeTypeName("struct IDWriteFactory5 : IDWriteFactory4")] +[NativeInheritance("IDWriteFactory4")] +public unsafe partial struct IDWriteFactory5 +{ + public static ref readonly Guid IID_IDWriteFactory5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9A, 0xB9, 0x8D, 0x95, + 0x2A, 0xBE, + 0x09, 0x4F, + 0xAF, + 0x7D, + 0x65, + 0x18, + 0x98, + 0x03, + 0xD1, + 0xD3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory5)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), monitor, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateTypography(IDWriteTypography** typography) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), typography); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gdiInterop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), textAnalyzer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFallbackBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetSystemFontSet(IDWriteFontSet** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontSetBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontSet, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontDownloadQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult TranslateColorGlyphRun(System.Drawing.PointF* baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF* baselineOrigin, System.Drawing.PointF** glyphOrigins) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF* baselineOrigin, Matrix* worldAndDpiTransform, System.Drawing.PointF** glyphOrigins) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder1** fontSetBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fontSetBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreateInMemoryFontFileLoader(IDWriteInMemoryFontFileLoader** newLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), newLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult CreateHttpFontFileLoader(ushort* referrerUrl, ushort* extraHeaders, IDWriteRemoteFontFileLoader** newLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), referrerUrl, extraHeaders, newLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public ContainerType AnalyzeContainerType(void* fileData, uint fileDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), fileData, fileDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult UnpackFontFile(ContainerType containerType, void* fileData, uint fileDataSize, IDWriteFontFileStream** unpackedFontStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), containerType, fileData, fileDataSize, unpackedFontStream); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory6.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory6.cs new file mode 100644 index 0000000..319e670 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory6.cs @@ -0,0 +1,499 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFactory6 +[Guid("f3744d80-21f7-42eb-b35d-995bc72fc223")] +[NativeTypeName("struct IDWriteFactory6 : IDWriteFactory5")] +[NativeInheritance("IDWriteFactory5")] +public unsafe partial struct IDWriteFactory6 +{ + public static ref readonly Guid IID_IDWriteFactory6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x80, 0x4D, 0x74, 0xF3, + 0xF7, 0x21, + 0xEB, 0x42, + 0xB3, + 0x5D, + 0x99, + 0x5B, + 0xC7, + 0x2F, + 0xC2, + 0x23 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory6)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), monitor, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateTypography(IDWriteTypography** typography) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), typography); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gdiInterop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), textAnalyzer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFallbackBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetSystemFontSet(IDWriteFontSet** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSetBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSet, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontDownloadQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult TranslateColorGlyphRun(System.Drawing.PointF* baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF* baselineOrigin, System.Drawing.PointF** glyphOrigins) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF* baselineOrigin, Matrix* worldAndDpiTransform, System.Drawing.PointF** glyphOrigins) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder1** fontSetBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSetBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreateInMemoryFontFileLoader(IDWriteInMemoryFontFileLoader** newLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), newLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult CreateHttpFontFileLoader(ushort* referrerUrl, ushort* extraHeaders, IDWriteRemoteFontFileLoader** newLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), referrerUrl, extraHeaders, newLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public ContainerType AnalyzeContainerType(void* fileData, uint fileDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fileData, fileDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult UnpackFontFile(ContainerType containerType, void* fileData, uint fileDataSize, IDWriteFontFileStream** unpackedFontStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), containerType, fileData, fileDataSize, unpackedFontStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFaceReference1** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontAxisValues, fontAxisValueCount, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult CreateFontResource(IDWriteFontFile* fontFile, uint faceIndex, IDWriteFontResource** fontResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult GetSystemFontSet(Bool32 includeDownloadableFonts, IDWriteFontSet1** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontFamilyModel, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSet, fontFamilyModel, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder2** fontSetBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontSetBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontAxisValue* fontAxisValues, uint fontAxisValueCount, float fontSize, ushort* localeName, IDWriteTextFormat3** textFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontAxisValues, fontAxisValueCount, fontSize, localeName, textFormat); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory7.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory7.cs new file mode 100644 index 0000000..52dab99 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFactory7.cs @@ -0,0 +1,515 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFactory7 +[Guid("35d0e0b3-9076-4d2e-a016-a91b568a06b4")] +[NativeTypeName("struct IDWriteFactory7 : IDWriteFactory6")] +[NativeInheritance("IDWriteFactory6")] +public unsafe partial struct IDWriteFactory7 +{ + public static ref readonly Guid IID_IDWriteFactory7 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB3, 0xE0, 0xD0, 0x35, + 0x76, 0x90, + 0x2E, 0x4D, + 0xA0, + 0x16, + 0xA9, + 0x1B, + 0x56, + 0x8A, + 0x06, + 0xB4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory7)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileLoader, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), monitor, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontWeight, fontStyle, fontStretch, fontSize, localeName, textFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateTypography(IDWriteTypography** typography) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), typography); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gdiInterop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), textAnalyzer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFallbackBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, glyphRun, glyphRunDescription, measuringMode, worldToDeviceTransform, colorPaletteIndex, colorLayers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetSystemFontSet(IDWriteFontSet** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSetBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSet, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontDownloadQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult TranslateColorGlyphRun(System.Drawing.PointF* baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF* baselineOrigin, System.Drawing.PointF** glyphOrigins) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF* baselineOrigin, Matrix* worldAndDpiTransform, System.Drawing.PointF** glyphOrigins) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder1** fontSetBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSetBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreateInMemoryFontFileLoader(IDWriteInMemoryFontFileLoader** newLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), newLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult CreateHttpFontFileLoader(ushort* referrerUrl, ushort* extraHeaders, IDWriteRemoteFontFileLoader** newLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), referrerUrl, extraHeaders, newLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public ContainerType AnalyzeContainerType(void* fileData, uint fileDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fileData, fileDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult UnpackFontFile(ContainerType containerType, void* fileData, uint fileDataSize, IDWriteFontFileStream** unpackedFontStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), containerType, fileData, fileDataSize, unpackedFontStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFaceReference1** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontSimulations, fontAxisValues, fontAxisValueCount, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult CreateFontResource(IDWriteFontFile* fontFile, uint faceIndex, IDWriteFontResource** fontResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult GetSystemFontSet(Bool32 includeDownloadableFonts, IDWriteFontSet1** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontFamilyModel, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSet, fontFamilyModel, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder2** fontSetBuilder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontSetBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontAxisValue* fontAxisValues, uint fontAxisValueCount, float fontSize, ushort* localeName, IDWriteTextFormat3** textFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontAxisValues, fontAxisValueCount, fontSize, localeName, textFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult GetSystemFontSet(Bool32 includeDownloadableFonts, IDWriteFontSet2** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection3** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontFamilyModel, fontCollection); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont.cs new file mode 100644 index 0000000..2dc6bf8 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFont +[Guid("acd16696-8c14-4f5d-877e-fe3fc1d32737")] +[NativeTypeName("struct IDWriteFont : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFont +{ + public static ref readonly Guid IID_IDWriteFont + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x96, 0x66, 0xD1, 0xAC, + 0x14, 0x8C, + 0x5D, 0x4F, + 0x87, + 0x7E, + 0xFE, + 0x3F, + 0xC1, + 0xD3, + 0x27, + 0x37 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetFontFamily(IDWriteFontFamily** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFont*)Unsafe.AsPointer(ref this), fontFamily); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public FontWeight GetWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFont*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public FontStretch GetStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFont*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public FontStyle GetStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFont*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsSymbolFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFont*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFaceNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFont*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFont*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFont*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void GetMetrics(FontMetrics* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFont*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult HasCharacter(uint unicodeValue, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFont*)Unsafe.AsPointer(ref this), unicodeValue, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateFontFace(IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFont*)Unsafe.AsPointer(ref this), fontFace); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont1.cs new file mode 100644 index 0000000..b09b404 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont1.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFont1 +[Guid("acd16696-8c14-4f5d-877e-fe3fc1d32738")] +[NativeTypeName("struct IDWriteFont1 : IDWriteFont")] +[NativeInheritance("IDWriteFont")] +public unsafe partial struct IDWriteFont1 +{ + public static ref readonly Guid IID_IDWriteFont1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x96, 0x66, 0xD1, 0xAC, + 0x14, 0x8C, + 0x5D, 0x4F, + 0x87, + 0x7E, + 0xFE, + 0x3F, + 0xC1, + 0xD3, + 0x27, + 0x38 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetFontFamily(IDWriteFontFamily** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFont1*)Unsafe.AsPointer(ref this), fontFamily); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public FontWeight GetWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFont1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public FontStretch GetStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFont1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public FontStyle GetStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFont1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsSymbolFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFont1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFaceNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFont1*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFont1*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFont1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void GetMetrics(FontMetrics* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFont1*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult HasCharacter(uint unicodeValue, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFont1*)Unsafe.AsPointer(ref this), unicodeValue, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateFontFace(IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFont1*)Unsafe.AsPointer(ref this), fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void GetMetrics(FontMetrics1* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFont1*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void GetPanose(Panose* panose) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFont1*)Unsafe.AsPointer(ref this), panose); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFont1*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public Bool32 IsMonospacedFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFont1*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont2.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont2.cs new file mode 100644 index 0000000..bd37748 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont2.cs @@ -0,0 +1,211 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFont2 +[Guid("29748ed6-8c9c-4a6a-be0b-d912e8538944")] +[NativeTypeName("struct IDWriteFont2 : IDWriteFont1")] +[NativeInheritance("IDWriteFont1")] +public unsafe partial struct IDWriteFont2 +{ + public static ref readonly Guid IID_IDWriteFont2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD6, 0x8E, 0x74, 0x29, + 0x9C, 0x8C, + 0x6A, 0x4A, + 0xBE, + 0x0B, + 0xD9, + 0x12, + 0xE8, + 0x53, + 0x89, + 0x44 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetFontFamily(IDWriteFontFamily** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFont2*)Unsafe.AsPointer(ref this), fontFamily); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public FontWeight GetWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public FontStretch GetStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public FontStyle GetStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsSymbolFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFaceNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFont2*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFont2*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void GetMetrics(FontMetrics* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFont2*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult HasCharacter(uint unicodeValue, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFont2*)Unsafe.AsPointer(ref this), unicodeValue, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateFontFace(IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFont2*)Unsafe.AsPointer(ref this), fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void GetMetrics(FontMetrics1* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFont2*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void GetPanose(Panose* panose) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFont2*)Unsafe.AsPointer(ref this), panose); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFont2*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public Bool32 IsMonospacedFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public Bool32 IsColorFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFont2*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont3.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont3.cs new file mode 100644 index 0000000..7592283 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFont3.cs @@ -0,0 +1,251 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFont3 +[Guid("29748ed6-8c9c-4a6a-be0b-d912e8538944")] +[NativeTypeName("struct IDWriteFont3 : IDWriteFont2")] +[NativeInheritance("IDWriteFont2")] +public unsafe partial struct IDWriteFont3 +{ + public static ref readonly Guid IID_IDWriteFont3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD6, 0x8E, 0x74, 0x29, + 0x9C, 0x8C, + 0x6A, 0x4A, + 0xBE, + 0x0B, + 0xD9, + 0x12, + 0xE8, + 0x53, + 0x89, + 0x44 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFont3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetFontFamily(IDWriteFontFamily** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontFamily); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public FontWeight GetWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public FontStretch GetStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public FontStyle GetStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsSymbolFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFaceNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFont3*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFont3*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void GetMetrics(FontMetrics* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult HasCharacter(uint unicodeValue, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFont3*)Unsafe.AsPointer(ref this), unicodeValue, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateFontFace(IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void GetMetrics(FontMetrics1* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void GetPanose(Panose* panose) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFont3*)Unsafe.AsPointer(ref this), panose); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFont3*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public Bool32 IsMonospacedFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public Bool32 IsColorFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateFontFace(IDWriteFontFace3** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public Bool32 Equals(IDWriteFont* font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFont3*)Unsafe.AsPointer(ref this), font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFont3*)Unsafe.AsPointer(ref this), fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public Bool32 HasCharacter(uint unicodeValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFont3*)Unsafe.AsPointer(ref this), unicodeValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Locality GetLocality() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFont3*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection.cs new file mode 100644 index 0000000..f45c163 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontCollection +[Guid("a84cee02-3eea-4eee-a827-87c1a02a0fcc")] +[NativeTypeName("struct IDWriteFontCollection : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontCollection +{ + public static ref readonly Guid IID_IDWriteFontCollection + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x02, 0xEE, 0x4C, 0xA8, + 0xEA, 0x3E, + 0xEE, 0x4E, + 0xA8, + 0x27, + 0x87, + 0xC1, + 0xA0, + 0x2A, + 0x0F, + 0xCC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetFontFamilyCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), index, fontFamily); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), familyName, index, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), fontFace, font); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection1.cs new file mode 100644 index 0000000..3976885 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection1.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontCollection1 +[Guid("53585141-d9f8-4095-8321-d73cf6bd116c")] +[NativeTypeName("struct IDWriteFontCollection1 : IDWriteFontCollection")] +[NativeInheritance("IDWriteFontCollection")] +public unsafe partial struct IDWriteFontCollection1 +{ + public static ref readonly Guid IID_IDWriteFontCollection1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x51, 0x58, 0x53, + 0xF8, 0xD9, + 0x95, 0x40, + 0x83, + 0x21, + 0xD7, + 0x3C, + 0xF6, + 0xBD, + 0x11, + 0x6C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetFontFamilyCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), index, fontFamily); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), familyName, index, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), fontFace, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetFontSet(IDWriteFontSet** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFontFamily(uint index, IDWriteFontFamily1** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), index, fontFamily); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection2.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection2.cs new file mode 100644 index 0000000..76bb746 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection2.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontCollection2 +[Guid("514039c6-4617-4064-bf8b-92ea83e506e0")] +[NativeTypeName("struct IDWriteFontCollection2 : IDWriteFontCollection1")] +[NativeInheritance("IDWriteFontCollection1")] +public unsafe partial struct IDWriteFontCollection2 +{ + public static ref readonly Guid IID_IDWriteFontCollection2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC6, 0x39, 0x40, 0x51, + 0x17, 0x46, + 0x64, 0x40, + 0xBF, + 0x8B, + 0x92, + 0xEA, + 0x83, + 0xE5, + 0x06, + 0xE0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetFontFamilyCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), index, fontFamily); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), familyName, index, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), fontFace, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetFontSet(IDWriteFontSet** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFontFamily(uint index, IDWriteFontFamily1** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), index, fontFamily); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetFontFamily(uint index, IDWriteFontFamily2** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), index, fontFamily); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetMatchingFonts(ushort* familyName, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontList2** fontList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), familyName, fontAxisValues, fontAxisValueCount, fontList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public FontFamilyModel GetFontFamilyModel() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetFontSet(IDWriteFontSet1** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), fontSet); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection3.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection3.cs new file mode 100644 index 0000000..5a49afd --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollection3.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontCollection3 +[Guid("a4d055a6-f9e3-4e25-93b7-9e309f3af8e9")] +[NativeTypeName("struct IDWriteFontCollection3 : IDWriteFontCollection2")] +[NativeInheritance("IDWriteFontCollection2")] +public unsafe partial struct IDWriteFontCollection3 +{ + public static ref readonly Guid IID_IDWriteFontCollection3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA6, 0x55, 0xD0, 0xA4, + 0xE3, 0xF9, + 0x25, 0x4E, + 0x93, + 0xB7, + 0x9E, + 0x30, + 0x9F, + 0x3A, + 0xF8, + 0xE9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollection3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetFontFamilyCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), index, fontFamily); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), familyName, index, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), fontFace, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetFontSet(IDWriteFontSet** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFontFamily(uint index, IDWriteFontFamily1** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), index, fontFamily); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetFontFamily(uint index, IDWriteFontFamily2** fontFamily) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), index, fontFamily); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetMatchingFonts(ushort* familyName, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontList2** fontList) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), familyName, fontAxisValues, fontAxisValueCount, fontList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public FontFamilyModel GetFontFamilyModel() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetFontSet(IDWriteFontSet1** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public IntPtr GetExpirationEvent() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollectionLoader.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollectionLoader.cs new file mode 100644 index 0000000..9ef4939 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontCollectionLoader.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontCollectionLoader +[Guid("cca920e4-52f0-492b-bfa8-29c72ee0a468")] +[NativeTypeName("struct IDWriteFontCollectionLoader : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontCollectionLoader +{ + public static ref readonly Guid IID_IDWriteFontCollectionLoader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE4, 0x20, 0xA9, 0xCC, + 0xF0, 0x52, + 0x2B, 0x49, + 0xBF, + 0xA8, + 0x29, + 0xC7, + 0x2E, + 0xE0, + 0xA4, + 0x68 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontCollectionLoader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateEnumeratorFromKey(IDWriteFactory* factory, void* collectionKey, uint collectionKeySize, IDWriteFontFileEnumerator** fontFileEnumerator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontCollectionLoader*)Unsafe.AsPointer(ref this), factory, collectionKey, collectionKeySize, fontFileEnumerator); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontDownloadListener.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontDownloadListener.cs new file mode 100644 index 0000000..6576410 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontDownloadListener.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontDownloadListener +[Guid("b06fe5b9-43ec-4393-881b-dbe4dc72fda7")] +[NativeTypeName("struct IDWriteFontDownloadListener : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontDownloadListener +{ + public static ref readonly Guid IID_IDWriteFontDownloadListener + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB9, 0xE5, 0x6F, 0xB0, + 0xEC, 0x43, + 0x93, 0x43, + 0x88, + 0x1B, + 0xDB, + 0xE4, + 0xDC, + 0x72, + 0xFD, + 0xA7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontDownloadListener)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void DownloadCompleted(IDWriteFontDownloadQueue* downloadQueue, IUnknown* context, HResult downloadResult) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontDownloadListener*)Unsafe.AsPointer(ref this), downloadQueue, context, downloadResult); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontDownloadQueue.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontDownloadQueue.cs new file mode 100644 index 0000000..bdad370 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontDownloadQueue.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontDownloadQueue +[Guid("b71e6052-5aea-4fa3-832e-f60d431f7e91")] +[NativeTypeName("struct IDWriteFontDownloadQueue : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontDownloadQueue +{ + public static ref readonly Guid IID_IDWriteFontDownloadQueue + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x52, 0x60, 0x1E, 0xB7, + 0xEA, 0x5A, + 0xA3, 0x4F, + 0x83, + 0x2E, + 0xF6, + 0x0D, + 0x43, + 0x1F, + 0x7E, + 0x91 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontDownloadQueue)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult AddListener(IDWriteFontDownloadListener* listener, uint* token) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this), listener, token); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult RemoveListener(uint token) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this), token); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public Bool32 IsEmpty() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult BeginDownload(IUnknown* context) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this), context); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CancelDownload() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public ulong GetGenerationCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace.cs new file mode 100644 index 0000000..4f5d1ca --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFace +[Guid("5f49804d-7024-4d43-bfa9-d25984f53849")] +[NativeTypeName("struct IDWriteFontFace : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontFace +{ + public static ref readonly Guid IID_IDWriteFontFace + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x80, 0x49, 0x5F, + 0x24, 0x70, + 0x43, 0x4D, + 0xBF, + 0xA9, + 0xD2, + 0x59, + 0x84, + 0xF5, + 0x38, + 0x49 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public new FontFaceType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetIndex() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsSymbolFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetMetrics(FontMetrics* fontFaceMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ushort GetGlyphCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void ReleaseFontTable(void* tableContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), tableContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace1.cs new file mode 100644 index 0000000..bd8357a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace1.cs @@ -0,0 +1,299 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFace1 +[Guid("a71efdb4-9fdb-4838-ad90-cfc3be8c3daf")] +[NativeTypeName("struct IDWriteFontFace1 : IDWriteFontFace")] +[NativeInheritance("IDWriteFontFace")] +public unsafe partial struct IDWriteFontFace1 +{ + public static ref readonly Guid IID_IDWriteFontFace1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB4, 0xFD, 0x1E, 0xA7, + 0xDB, 0x9F, + 0x38, 0x48, + 0xAD, + 0x90, + 0xCF, + 0xC3, + 0xBE, + 0x8C, + 0x3D, + 0xAF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public new FontFaceType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetIndex() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsSymbolFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetMetrics(FontMetrics* fontFaceMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ushort GetGlyphCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void ReleaseFontTable(void* tableContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), tableContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void GetMetrics(FontMetrics1* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics1* fontMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void GetCaretMetrics(CaretMetrics* caretMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), caretMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public Bool32 IsMonospacedFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public Bool32 HasKerningPairs() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public Bool32 HasVerticalGlyphVariants() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace2.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace2.cs new file mode 100644 index 0000000..981fe5c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace2.cs @@ -0,0 +1,339 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFace2 +[Guid("d8b768ff-64bc-4e66-982b-ec8e87f693f7")] +[NativeTypeName("struct IDWriteFontFace2 : IDWriteFontFace1")] +[NativeInheritance("IDWriteFontFace1")] +public unsafe partial struct IDWriteFontFace2 +{ + public static ref readonly Guid IID_IDWriteFontFace2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFF, 0x68, 0xB7, 0xD8, + 0xBC, 0x64, + 0x66, 0x4E, + 0x98, + 0x2B, + 0xEC, + 0x8E, + 0x87, + 0xF6, + 0x93, + 0xF7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public new FontFaceType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetIndex() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsSymbolFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetMetrics(FontMetrics* fontFaceMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ushort GetGlyphCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void ReleaseFontTable(void* tableContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), tableContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void GetMetrics(FontMetrics1* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics1* fontMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void GetCaretMetrics(CaretMetrics* caretMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), caretMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public Bool32 IsMonospacedFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public Bool32 HasKerningPairs() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public Bool32 HasVerticalGlyphVariants() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public Bool32 IsColorFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public uint GetColorPaletteCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public uint GetPaletteEntryCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Win32.Graphics.Direct2D.Common.ColorF** paletteEntries) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace3.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace3.cs new file mode 100644 index 0000000..b61ea6a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace3.cs @@ -0,0 +1,451 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFace3 +[Guid("d37d7598-09be-4222-a236-2081341cc1f2")] +[NativeTypeName("struct IDWriteFontFace3 : IDWriteFontFace2")] +[NativeInheritance("IDWriteFontFace2")] +public unsafe partial struct IDWriteFontFace3 +{ + public static ref readonly Guid IID_IDWriteFontFace3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x98, 0x75, 0x7D, 0xD3, + 0xBE, 0x09, + 0x22, 0x42, + 0xA2, + 0x36, + 0x20, + 0x81, + 0x34, + 0x1C, + 0xC1, + 0xF2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public new FontFaceType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetIndex() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsSymbolFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetMetrics(FontMetrics* fontFaceMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ushort GetGlyphCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void ReleaseFontTable(void* tableContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), tableContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void GetMetrics(FontMetrics1* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics1* fontMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void GetCaretMetrics(CaretMetrics* caretMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), caretMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public Bool32 IsMonospacedFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public Bool32 HasKerningPairs() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public Bool32 HasVerticalGlyphVariants() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public Bool32 IsColorFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public uint GetColorPaletteCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public uint GetPaletteEntryCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Win32.Graphics.Direct2D.Common.ColorF** paletteEntries) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void GetPanose(Panose* panose) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), panose); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public FontWeight GetWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public FontStretch GetStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public FontStyle GetStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult GetFamilyNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult GetFaceNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Bool32 HasCharacter(uint unicodeValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), unicodeValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public Bool32 IsCharacterLocal(uint unicodeValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), unicodeValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public Bool32 IsGlyphLocal(ushort glyphId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace4.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace4.cs new file mode 100644 index 0000000..9fafc3d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace4.cs @@ -0,0 +1,483 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFace4 +[Guid("27f2a904-4eb8-441d-9678-0563f53e3e2f")] +[NativeTypeName("struct IDWriteFontFace4 : IDWriteFontFace3")] +[NativeInheritance("IDWriteFontFace3")] +public unsafe partial struct IDWriteFontFace4 +{ + public static ref readonly Guid IID_IDWriteFontFace4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x04, 0xA9, 0xF2, 0x27, + 0xB8, 0x4E, + 0x1D, 0x44, + 0x96, + 0x78, + 0x05, + 0x63, + 0xF5, + 0x3E, + 0x3E, + 0x2F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public new FontFaceType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetIndex() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsSymbolFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetMetrics(FontMetrics* fontFaceMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ushort GetGlyphCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void ReleaseFontTable(void* tableContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), tableContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void GetMetrics(FontMetrics1* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics1* fontMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void GetCaretMetrics(CaretMetrics* caretMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), caretMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public Bool32 IsMonospacedFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public Bool32 HasKerningPairs() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public Bool32 HasVerticalGlyphVariants() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public Bool32 IsColorFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public uint GetColorPaletteCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public uint GetPaletteEntryCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Win32.Graphics.Direct2D.Common.ColorF** paletteEntries) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void GetPanose(Panose* panose) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), panose); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public FontWeight GetWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public FontStretch GetStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public FontStyle GetStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult GetFamilyNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult GetFaceNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Bool32 HasCharacter(uint unicodeValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), unicodeValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public Bool32 IsCharacterLocal(uint unicodeValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), unicodeValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public Bool32 IsGlyphLocal(ushort glyphId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult GetGlyphImageFormats(ushort glyphId, uint pixelsPerEmFirst, uint pixelsPerEmLast, GlyphImageFormats* glyphImageFormats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEmFirst, pixelsPerEmLast, glyphImageFormats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public GlyphImageFormats GetGlyphImageFormats() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult GetGlyphImageData(ushort glyphId, uint pixelsPerEm, GlyphImageFormats glyphImageFormat, GlyphImageData* glyphData, void** glyphDataContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEm, glyphImageFormat, glyphData, glyphDataContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void ReleaseGlyphImageData(void* glyphDataContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphDataContext); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace5.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace5.cs new file mode 100644 index 0000000..5d70391 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace5.cs @@ -0,0 +1,523 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFace5 +[Guid("98eff3a5-b667-479a-b145-e2fa5b9fdc29")] +[NativeTypeName("struct IDWriteFontFace5 : IDWriteFontFace4")] +[NativeInheritance("IDWriteFontFace4")] +public unsafe partial struct IDWriteFontFace5 +{ + public static ref readonly Guid IID_IDWriteFontFace5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA5, 0xF3, 0xEF, 0x98, + 0x67, 0xB6, + 0x9A, 0x47, + 0xB1, + 0x45, + 0xE2, + 0xFA, + 0x5B, + 0x9F, + 0xDC, + 0x29 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace5)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public new FontFaceType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetIndex() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsSymbolFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetMetrics(FontMetrics* fontFaceMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ushort GetGlyphCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void ReleaseFontTable(void* tableContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), tableContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void GetMetrics(FontMetrics1* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics1* fontMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void GetCaretMetrics(CaretMetrics* caretMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), caretMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public Bool32 IsMonospacedFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public Bool32 HasKerningPairs() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public Bool32 HasVerticalGlyphVariants() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public Bool32 IsColorFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public uint GetColorPaletteCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public uint GetPaletteEntryCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Win32.Graphics.Direct2D.Common.ColorF** paletteEntries) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void GetPanose(Panose* panose) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), panose); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public FontWeight GetWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public FontStretch GetStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public FontStyle GetStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult GetFamilyNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult GetFaceNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Bool32 HasCharacter(uint unicodeValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), unicodeValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public Bool32 IsCharacterLocal(uint unicodeValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), unicodeValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public Bool32 IsGlyphLocal(ushort glyphId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult GetGlyphImageFormats(ushort glyphId, uint pixelsPerEmFirst, uint pixelsPerEmLast, GlyphImageFormats* glyphImageFormats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEmFirst, pixelsPerEmLast, glyphImageFormats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public GlyphImageFormats GetGlyphImageFormats() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult GetGlyphImageData(ushort glyphId, uint pixelsPerEm, GlyphImageFormats glyphImageFormat, GlyphImageData* glyphData, void** glyphDataContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEm, glyphImageFormat, glyphData, glyphDataContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void ReleaseGlyphImageData(void* glyphDataContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), glyphDataContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public uint GetFontAxisValueCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public Bool32 HasVariations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult GetFontResource(IDWriteFontResource** fontResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public Bool32 Equals(IDWriteFontFace* fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontFace); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace6.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace6.cs new file mode 100644 index 0000000..7b785f4 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFace6.cs @@ -0,0 +1,539 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFace6 +[Guid("c4b1fe1b-6e84-47d5-b54c-a597981b06ad")] +[NativeTypeName("struct IDWriteFontFace6 : IDWriteFontFace5")] +[NativeInheritance("IDWriteFontFace5")] +public unsafe partial struct IDWriteFontFace6 +{ + public static ref readonly Guid IID_IDWriteFontFace6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1B, 0xFE, 0xB1, 0xC4, + 0x84, 0x6E, + 0xD5, 0x47, + 0xB5, + 0x4C, + 0xA5, + 0x97, + 0x98, + 0x1B, + 0x06, + 0xAD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace6)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public new FontFaceType GetType() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetIndex() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsSymbolFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetMetrics(FontMetrics* fontFaceMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ushort GetGlyphCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), codePoints, codePointCount, glyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void ReleaseFontTable(void* tableContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), tableContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, glyphIndices, glyphAdvances, glyphOffsets, glyphCount, isSideways, isRightToLeft, geometrySink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics* fontFaceMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void GetMetrics(FontMetrics1* fontMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix* transform, FontMetrics1* fontMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void GetCaretMetrics(CaretMetrics* caretMetrics) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), caretMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public Bool32 IsMonospacedFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, isSideways, glyphCount, glyphIndices, glyphAdvances); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public Bool32 HasKerningPairs() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public Bool32 HasVerticalGlyphVariants() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public Bool32 IsColorFont() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public uint GetColorPaletteCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public uint GetPaletteEntryCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Win32.Graphics.Direct2D.Common.ColorF** paletteEntries) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void GetPanose(Panose* panose) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), panose); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public FontWeight GetWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public FontStretch GetStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public FontStyle GetStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult GetFamilyNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult GetFaceNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Bool32 HasCharacter(uint unicodeValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), unicodeValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public Bool32 IsCharacterLocal(uint unicodeValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), unicodeValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public Bool32 IsGlyphLocal(ushort glyphId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult GetGlyphImageFormats(ushort glyphId, uint pixelsPerEmFirst, uint pixelsPerEmLast, GlyphImageFormats* glyphImageFormats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEmFirst, pixelsPerEmLast, glyphImageFormats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public GlyphImageFormats GetGlyphImageFormats() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult GetGlyphImageData(ushort glyphId, uint pixelsPerEm, GlyphImageFormats glyphImageFormat, GlyphImageData* glyphData, void** glyphDataContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEm, glyphImageFormat, glyphData, glyphDataContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void ReleaseGlyphImageData(void* glyphDataContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), glyphDataContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public uint GetFontAxisValueCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public Bool32 HasVariations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult GetFontResource(IDWriteFontResource** fontResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public Bool32 Equals(IDWriteFontFace* fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult GetFamilyNames(FontFamilyModel fontFamilyModel, IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFamilyModel, names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult GetFaceNames(FontFamilyModel fontFamilyModel, IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFamilyModel, names); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFaceReference.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFaceReference.cs new file mode 100644 index 0000000..d7eaee6 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFaceReference.cs @@ -0,0 +1,195 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFaceReference +[Guid("5e7fa7ca-dde3-424c-89f0-9fcd6fed58cd")] +[NativeTypeName("struct IDWriteFontFaceReference : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontFaceReference +{ + public static ref readonly Guid IID_IDWriteFontFaceReference + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCA, 0xA7, 0x7F, 0x5E, + 0xE3, 0xDD, + 0x4C, 0x42, + 0x89, + 0xF0, + 0x9F, + 0xCD, + 0x6F, + 0xED, + 0x58, + 0xCD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFaceReference)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateFontFace(IDWriteFontFace3** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateFontFaceWithSimulations(FontSimulations fontFaceSimulationFlags, IDWriteFontFace3** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fontFaceSimulationFlags, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public Bool32 Equals(IDWriteFontFaceReference* fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public uint GetFontFaceIndex() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFontFile(IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ulong GetLocalFileSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ulong GetFileSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetFileTime(ulong* lastWriteTime) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), lastWriteTime); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public Locality GetLocality() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult EnqueueFontDownloadRequest() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult EnqueueCharacterDownloadRequest(ushort* characters, uint characterCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), characters, characterCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult EnqueueGlyphDownloadRequest(ushort* glyphIndices, uint glyphCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult EnqueueFileFragmentDownloadRequest(ulong fileOffset, ulong fragmentSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fileOffset, fragmentSize); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFaceReference1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFaceReference1.cs new file mode 100644 index 0000000..45a9011 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFaceReference1.cs @@ -0,0 +1,219 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFaceReference1 +[Guid("c081fe77-2fd1-41ac-a5a3-34983c4ba61a")] +[NativeTypeName("struct IDWriteFontFaceReference1 : IDWriteFontFaceReference")] +[NativeInheritance("IDWriteFontFaceReference")] +public unsafe partial struct IDWriteFontFaceReference1 +{ + public static ref readonly Guid IID_IDWriteFontFaceReference1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x77, 0xFE, 0x81, 0xC0, + 0xD1, 0x2F, + 0xAC, 0x41, + 0xA5, + 0xA3, + 0x34, + 0x98, + 0x3C, + 0x4B, + 0xA6, + 0x1A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFaceReference1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateFontFace(IDWriteFontFace3** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateFontFaceWithSimulations(FontSimulations fontFaceSimulationFlags, IDWriteFontFace3** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFaceSimulationFlags, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public Bool32 Equals(IDWriteFontFaceReference* fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public uint GetFontFaceIndex() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFontFile(IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ulong GetLocalFileSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ulong GetFileSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetFileTime(ulong* lastWriteTime) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), lastWriteTime); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public Locality GetLocality() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult EnqueueFontDownloadRequest() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult EnqueueCharacterDownloadRequest(ushort* characters, uint characterCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), characters, characterCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult EnqueueGlyphDownloadRequest(ushort* glyphIndices, uint glyphCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult EnqueueFileFragmentDownloadRequest(ulong fileOffset, ulong fragmentSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fileOffset, fragmentSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateFontFace(IDWriteFontFace5** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public uint GetFontAxisValueCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFallback.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFallback.cs new file mode 100644 index 0000000..d78b45e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFallback.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFallback +[Guid("efa008f9-f7a1-48bf-b05c-f224713cc0ff")] +[NativeTypeName("struct IDWriteFontFallback : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontFallback +{ + public static ref readonly Guid IID_IDWriteFontFallback + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF9, 0x08, 0xA0, 0xEF, + 0xA1, 0xF7, + 0xBF, 0x48, + 0xB0, + 0x5C, + 0xF2, + 0x24, + 0x71, + 0x3C, + 0xC0, + 0xFF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallback)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult MapCharacters(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteFontCollection* baseFontCollection, ushort* baseFamilyName, FontWeight baseWeight, FontStyle baseStyle, FontStretch baseStretch, uint* mappedLength, IDWriteFont** mappedFont, float* scale) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFallback*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, baseFontCollection, baseFamilyName, baseWeight, baseStyle, baseStretch, mappedLength, mappedFont, scale); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFallback1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFallback1.cs new file mode 100644 index 0000000..48a1b05 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFallback1.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFallback1 +[Guid("2397599d-dd0d-4681-bd6a-f4f31eaade77")] +[NativeTypeName("struct IDWriteFontFallback1 : IDWriteFontFallback")] +[NativeInheritance("IDWriteFontFallback")] +public unsafe partial struct IDWriteFontFallback1 +{ + public static ref readonly Guid IID_IDWriteFontFallback1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9D, 0x59, 0x97, 0x23, + 0x0D, 0xDD, + 0x81, 0x46, + 0xBD, + 0x6A, + 0xF4, + 0xF3, + 0x1E, + 0xAA, + 0xDE, + 0x77 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallback1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult MapCharacters(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteFontCollection* baseFontCollection, ushort* baseFamilyName, FontWeight baseWeight, FontStyle baseStyle, FontStretch baseStretch, uint* mappedLength, IDWriteFont** mappedFont, float* scale) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFallback1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, baseFontCollection, baseFamilyName, baseWeight, baseStyle, baseStretch, mappedLength, mappedFont, scale); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult MapCharacters(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteFontCollection* baseFontCollection, ushort* baseFamilyName, FontAxisValue* fontAxisValues, uint fontAxisValueCount, uint* mappedLength, float* scale, IDWriteFontFace5** mappedFontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFallback1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, baseFontCollection, baseFamilyName, fontAxisValues, fontAxisValueCount, mappedLength, scale, mappedFontFace); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFallbackBuilder.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFallbackBuilder.cs new file mode 100644 index 0000000..76cb102 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFallbackBuilder.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFallbackBuilder +[Guid("fd882d06-8aba-4fb8-b849-8be8b73e14de")] +[NativeTypeName("struct IDWriteFontFallbackBuilder : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontFallbackBuilder +{ + public static ref readonly Guid IID_IDWriteFontFallbackBuilder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x06, 0x2D, 0x88, 0xFD, + 0xBA, 0x8A, + 0xB8, 0x4F, + 0xB8, + 0x49, + 0x8B, + 0xE8, + 0xB7, + 0x3E, + 0x14, + 0xDE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFallbackBuilder)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult AddMapping(UnicodeRange* ranges, uint rangesCount, ushort** targetFamilyNames, uint targetFamilyNamesCount, IDWriteFontCollection* fontCollection, ushort* localeName, ushort* baseFamilyName, float scale) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFallbackBuilder*)Unsafe.AsPointer(ref this), ranges, rangesCount, targetFamilyNames, targetFamilyNamesCount, fontCollection, localeName, baseFamilyName, scale); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult AddMappings(IDWriteFontFallback* fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFallbackBuilder*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFallbackBuilder*)Unsafe.AsPointer(ref this), fontFallback); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFamily.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFamily.cs new file mode 100644 index 0000000..f5e8361 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFamily.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFamily +[Guid("da20d8ef-812a-4c43-9802-62ec4abd7add")] +[NativeTypeName("struct IDWriteFontFamily : IDWriteFontList")] +[NativeInheritance("IDWriteFontList")] +public unsafe partial struct IDWriteFontFamily +{ + public static ref readonly Guid IID_IDWriteFontFamily + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEF, 0xD8, 0x20, 0xDA, + 0x2A, 0x81, + 0x43, 0x4C, + 0x98, + 0x02, + 0x62, + 0xEC, + 0x4A, + 0xBD, + 0x7A, + 0xDD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetFontCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetFont(uint index, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), index, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetFamilyNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetFirstMatchingFont(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFont** matchingFont) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFont); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetMatchingFonts(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFontList** matchingFonts) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFonts); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFamily1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFamily1.cs new file mode 100644 index 0000000..d43cb80 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFamily1.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFamily1 +[Guid("da20d8ef-812a-4c43-9802-62ec4abd7adf")] +[NativeTypeName("struct IDWriteFontFamily1 : IDWriteFontFamily")] +[NativeInheritance("IDWriteFontFamily")] +public unsafe partial struct IDWriteFontFamily1 +{ + public static ref readonly Guid IID_IDWriteFontFamily1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEF, 0xD8, 0x20, 0xDA, + 0x2A, 0x81, + 0x43, 0x4C, + 0x98, + 0x02, + 0x62, + 0xEC, + 0x4A, + 0xBD, + 0x7A, + 0xDF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetFontCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetFont(uint index, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), index, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetFamilyNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetFirstMatchingFont(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFont** matchingFont) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFont); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetMatchingFonts(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFontList** matchingFonts) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFonts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public Locality GetFontLocality(uint listIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), listIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFont(uint listIndex, IDWriteFont3** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), listIndex, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFamily2.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFamily2.cs new file mode 100644 index 0000000..fd36e82 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFamily2.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFamily2 +[Guid("3ed49e77-a398-4261-b9cf-c126c2131ef3")] +[NativeTypeName("struct IDWriteFontFamily2 : IDWriteFontFamily1")] +[NativeInheritance("IDWriteFontFamily1")] +public unsafe partial struct IDWriteFontFamily2 +{ + public static ref readonly Guid IID_IDWriteFontFamily2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x77, 0x9E, 0xD4, 0x3E, + 0x98, 0xA3, + 0x61, 0x42, + 0xB9, + 0xCF, + 0xC1, + 0x26, + 0xC2, + 0x13, + 0x1E, + 0xF3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFamily2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetFontCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetFont(uint index, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), index, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetFamilyNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetFirstMatchingFont(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFont** matchingFont) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFont); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetMatchingFonts(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFontList** matchingFonts) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFonts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public Locality GetFontLocality(uint listIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), listIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFont(uint listIndex, IDWriteFont3** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), listIndex, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetMatchingFonts(FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontList2** matchingFonts) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount, matchingFonts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetFontSet(IDWriteFontSet1** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), fontSet); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFile.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFile.cs new file mode 100644 index 0000000..94e24e4 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFile.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFile +[Guid("739d886a-cef5-47dc-8769-1a8b41bebbb0")] +[NativeTypeName("struct IDWriteFontFile : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontFile +{ + public static ref readonly Guid IID_IDWriteFontFile + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6A, 0x88, 0x9D, 0x73, + 0xF5, 0xCE, + 0xDC, 0x47, + 0x87, + 0x69, + 0x1A, + 0x8B, + 0x41, + 0xBE, + 0xBB, + 0xB0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFile)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetReferenceKey(void** fontFileReferenceKey, uint* fontFileReferenceKeySize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetLoader(IDWriteFontFileLoader** fontFileLoader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult Analyze(Bool32* isSupportedFontType, FontFileType* fontFileType, FontFaceType* fontFaceType, uint* numberOfFaces) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), isSupportedFontType, fontFileType, fontFaceType, numberOfFaces); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFileEnumerator.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFileEnumerator.cs new file mode 100644 index 0000000..4f1227a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFileEnumerator.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFileEnumerator +[Guid("72755049-5ff7-435d-8348-4be97cfa6c7c")] +[NativeTypeName("struct IDWriteFontFileEnumerator : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontFileEnumerator +{ + public static ref readonly Guid IID_IDWriteFontFileEnumerator + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x50, 0x75, 0x72, + 0xF7, 0x5F, + 0x5D, 0x43, + 0x83, + 0x48, + 0x4B, + 0xE9, + 0x7C, + 0xFA, + 0x6C, + 0x7C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileEnumerator)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult MoveNext(Bool32* hasCurrentFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFileEnumerator*)Unsafe.AsPointer(ref this), hasCurrentFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCurrentFontFile(IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFileEnumerator*)Unsafe.AsPointer(ref this), fontFile); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFileLoader.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFileLoader.cs new file mode 100644 index 0000000..3cb6b5d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFileLoader.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFileLoader +[Guid("727cad4e-d6af-4c9e-8a08-d695b11caa49")] +[NativeTypeName("struct IDWriteFontFileLoader : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontFileLoader +{ + public static ref readonly Guid IID_IDWriteFontFileLoader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4E, 0xAD, 0x7C, 0x72, + 0xAF, 0xD6, + 0x9E, 0x4C, + 0x8A, + 0x08, + 0xD6, + 0x95, + 0xB1, + 0x1C, + 0xAA, + 0x49 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileLoader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileStream** fontFileStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileStream); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFileStream.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFileStream.cs new file mode 100644 index 0000000..c057d11 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontFileStream.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFileStream +[Guid("6d4865fe-0ab8-4d91-8f62-5dd6be34a3e0")] +[NativeTypeName("struct IDWriteFontFileStream : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontFileStream +{ + public static ref readonly Guid IID_IDWriteFontFileStream + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFE, 0x65, 0x48, 0x6D, + 0xB8, 0x0A, + 0x91, 0x4D, + 0x8F, + 0x62, + 0x5D, + 0xD6, + 0xBE, + 0x34, + 0xA3, + 0xE0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFileStream)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReadFileFragment(void** fragmentStart, ulong fileOffset, ulong fragmentSize, void** fragmentContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), fragmentStart, fileOffset, fragmentSize, fragmentContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void ReleaseFileFragment(void* fragmentContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), fragmentContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetFileSize(ulong* fileSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), fileSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetLastWriteTime(ulong* lastWriteTime) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), lastWriteTime); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontList.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontList.cs new file mode 100644 index 0000000..5531fca --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontList.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontList +[Guid("1a0d8438-1d97-4ec1-aef9-a2fb86ed6acb")] +[NativeTypeName("struct IDWriteFontList : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontList +{ + public static ref readonly Guid IID_IDWriteFontList + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x38, 0x84, 0x0D, 0x1A, + 0x97, 0x1D, + 0xC1, 0x4E, + 0xAE, + 0xF9, + 0xA2, + 0xFB, + 0x86, + 0xED, + 0x6A, + 0xCB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontList*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetFontCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontList*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetFont(uint index, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontList*)Unsafe.AsPointer(ref this), index, font); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontList1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontList1.cs new file mode 100644 index 0000000..bd243e9 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontList1.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontList1 +[Guid("da20d8ef-812a-4c43-9802-62ec4abd7ade")] +[NativeTypeName("struct IDWriteFontList1 : IDWriteFontList")] +[NativeInheritance("IDWriteFontList")] +public unsafe partial struct IDWriteFontList1 +{ + public static ref readonly Guid IID_IDWriteFontList1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEF, 0xD8, 0x20, 0xDA, + 0x2A, 0x81, + 0x43, 0x4C, + 0x98, + 0x02, + 0x62, + 0xEC, + 0x4A, + 0xBD, + 0x7A, + 0xDE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetFontCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontList1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetFont(uint index, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), index, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public Locality GetFontLocality(uint listIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), listIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetFont(uint listIndex, IDWriteFont3** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), listIndex, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontList2.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontList2.cs new file mode 100644 index 0000000..3dda12d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontList2.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontList2 +[Guid("c0763a34-77af-445a-b735-08c37b0a5bf5")] +[NativeTypeName("struct IDWriteFontList2 : IDWriteFontList1")] +[NativeInheritance("IDWriteFontList1")] +public unsafe partial struct IDWriteFontList2 +{ + public static ref readonly Guid IID_IDWriteFontList2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x34, 0x3A, 0x76, 0xC0, + 0xAF, 0x77, + 0x5A, 0x44, + 0xB7, + 0x35, + 0x08, + 0xC3, + 0x7B, + 0x0A, + 0x5B, + 0xF5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetFontCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontList2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetFont(uint index, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), index, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public Locality GetFontLocality(uint listIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), listIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetFont(uint listIndex, IDWriteFont3** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), listIndex, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetFontSet(IDWriteFontSet1** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), fontSet); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontResource.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontResource.cs new file mode 100644 index 0000000..6ca3cb4 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontResource.cs @@ -0,0 +1,179 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontResource +[Guid("1f803a76-6871-48e8-987f-b975551c50f2")] +[NativeTypeName("struct IDWriteFontResource : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontResource +{ + public static ref readonly Guid IID_IDWriteFontResource + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x76, 0x3A, 0x80, 0x1F, + 0x71, 0x68, + 0xE8, 0x48, + 0x98, + 0x7F, + 0xB9, + 0x75, + 0x55, + 0x1C, + 0x50, + 0xF2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontResource)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetFontFile(IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetFontFaceIndex() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontResource*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetFontAxisCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontResource*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetDefaultFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public FontAxisAttributes GetFontAxisAttributes(uint axisIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), axisIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetAxisNames(uint axisIndex, IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), axisIndex, names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public uint GetAxisValueNameCount(uint axisIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), axisIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetAxisValueNames(uint axisIndex, uint axisValueIndex, FontAxisRange* fontAxisRange, IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), axisIndex, axisValueIndex, fontAxisRange, names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public Bool32 HasVariations() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontResource*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateFontFace(FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFace5** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontSimulations, fontAxisValues, fontAxisValueCount, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateFontFaceReference(FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFaceReference1** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontSimulations, fontAxisValues, fontAxisValueCount, fontFaceReference); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet.cs new file mode 100644 index 0000000..42559b5 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontSet +[Guid("53585141-d9f8-4095-8321-d73cf6bd116b")] +[NativeTypeName("struct IDWriteFontSet : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontSet +{ + public static ref readonly Guid IID_IDWriteFontSet + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x51, 0x58, 0x53, + 0xF8, 0xD9, + 0x95, 0x40, + 0x83, + 0x21, + 0xD7, + 0x3C, + 0xF6, + 0xBD, + 0x11, + 0x6B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetFontCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSet*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), fontFaceReference, listIndex, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), fontFace, listIndex, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), propertyID, values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), propertyID, preferredLocaleNames, values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), listIndex, propertyId, exists, values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), property, propertyOccurrenceCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), familyName, fontWeight, fontStretch, fontStyle, filteredSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet1.cs new file mode 100644 index 0000000..59343b1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet1.cs @@ -0,0 +1,267 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontSet1 +[Guid("7e9fda85-6c92-4053-bc47-7ae3530db4d3")] +[NativeTypeName("struct IDWriteFontSet1 : IDWriteFontSet")] +[NativeInheritance("IDWriteFontSet")] +public unsafe partial struct IDWriteFontSet1 +{ + public static ref readonly Guid IID_IDWriteFontSet1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x85, 0xDA, 0x9F, 0x7E, + 0x92, 0x6C, + 0x53, 0x40, + 0xBC, + 0x47, + 0x7A, + 0xE3, + 0x53, + 0x0D, + 0xB4, + 0xD3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetFontCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontFaceReference, listIndex, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontFace, listIndex, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), propertyID, values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), propertyID, preferredLocaleNames, values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, propertyId, exists, values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), property, propertyOccurrenceCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), familyName, fontWeight, fontStretch, fontStyle, filteredSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetMatchingFonts(FontProperty* fontProperty, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontSet1** matchingFonts) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontProperty, fontAxisValues, fontAxisValueCount, matchingFonts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetFirstFontResources(IDWriteFontSet1** filteredFontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), filteredFontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetFilteredFonts(uint* indices, uint indexCount, IDWriteFontSet1** filteredFontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), indices, indexCount, filteredFontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetFilteredFonts(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, IDWriteFontSet1** filteredFontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, filteredFontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetFilteredFonts(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, IDWriteFontSet1** filteredFontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, filteredFontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetFilteredFontIndices(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, uint* indices, uint maxIndexCount, uint* actualIndexCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, indices, maxIndexCount, actualIndexCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFilteredFontIndices(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, uint* indices, uint maxIndexCount, uint* actualIndexCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, indices, maxIndexCount, actualIndexCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult GetFontAxisRanges(uint listIndex, FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference1** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateFontResource(uint listIndex, IDWriteFontResource** fontResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateFontFace(uint listIndex, IDWriteFontFace5** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public Locality GetFontLocality(uint listIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet2.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet2.cs new file mode 100644 index 0000000..bad43d5 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet2.cs @@ -0,0 +1,275 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontSet2 +[Guid("dc7ead19-e54c-43af-b2da-4e2b79ba3f7f")] +[NativeTypeName("struct IDWriteFontSet2 : IDWriteFontSet1")] +[NativeInheritance("IDWriteFontSet1")] +public unsafe partial struct IDWriteFontSet2 +{ + public static ref readonly Guid IID_IDWriteFontSet2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x19, 0xAD, 0x7E, 0xDC, + 0x4C, 0xE5, + 0xAF, 0x43, + 0xB2, + 0xDA, + 0x4E, + 0x2B, + 0x79, + 0xBA, + 0x3F, + 0x7F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetFontCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontFaceReference, listIndex, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontFace, listIndex, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), propertyID, values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), propertyID, preferredLocaleNames, values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, propertyId, exists, values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), property, propertyOccurrenceCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), familyName, fontWeight, fontStretch, fontStyle, filteredSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetMatchingFonts(FontProperty* fontProperty, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontSet1** matchingFonts) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontProperty, fontAxisValues, fontAxisValueCount, matchingFonts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetFirstFontResources(IDWriteFontSet1** filteredFontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), filteredFontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetFilteredFonts(uint* indices, uint indexCount, IDWriteFontSet1** filteredFontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), indices, indexCount, filteredFontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetFilteredFonts(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, IDWriteFontSet1** filteredFontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, filteredFontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetFilteredFonts(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, IDWriteFontSet1** filteredFontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, filteredFontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetFilteredFontIndices(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, uint* indices, uint maxIndexCount, uint* actualIndexCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, indices, maxIndexCount, actualIndexCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFilteredFontIndices(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, uint* indices, uint maxIndexCount, uint* actualIndexCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, indices, maxIndexCount, actualIndexCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult GetFontAxisRanges(uint listIndex, FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference1** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateFontResource(uint listIndex, IDWriteFontResource** fontResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateFontFace(uint listIndex, IDWriteFontFace5** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public Locality GetFontLocality(uint listIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this), listIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public IntPtr GetExpirationEvent() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet3.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet3.cs new file mode 100644 index 0000000..4ceb19b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSet3.cs @@ -0,0 +1,299 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontSet3 +[Guid("7c073ef2-a7f4-4045-8c32-8ab8ae640f90")] +[NativeTypeName("struct IDWriteFontSet3 : IDWriteFontSet2")] +[NativeInheritance("IDWriteFontSet2")] +public unsafe partial struct IDWriteFontSet3 +{ + public static ref readonly Guid IID_IDWriteFontSet3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF2, 0x3E, 0x07, 0x7C, + 0xF4, 0xA7, + 0x45, 0x40, + 0x8C, + 0x32, + 0x8A, + 0xB8, + 0xAE, + 0x64, + 0x0F, + 0x90 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSet3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetFontCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontFaceReference, listIndex, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontFace, listIndex, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), propertyID, values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), propertyID, preferredLocaleNames, values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, propertyId, exists, values); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), property, propertyOccurrenceCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), familyName, fontWeight, fontStretch, fontStyle, filteredSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetMatchingFonts(FontProperty* fontProperty, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontSet1** matchingFonts) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontProperty, fontAxisValues, fontAxisValueCount, matchingFonts); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetFirstFontResources(IDWriteFontSet1** filteredFontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), filteredFontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetFilteredFonts(uint* indices, uint indexCount, IDWriteFontSet1** filteredFontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), indices, indexCount, filteredFontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetFilteredFonts(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, IDWriteFontSet1** filteredFontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, filteredFontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetFilteredFonts(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, IDWriteFontSet1** filteredFontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, filteredFontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetFilteredFontIndices(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, uint* indices, uint maxIndexCount, uint* actualIndexCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontAxisRanges, fontAxisRangeCount, selectAnyRange, indices, maxIndexCount, actualIndexCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFilteredFontIndices(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, uint* indices, uint maxIndexCount, uint* actualIndexCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), properties, propertyCount, selectAnyProperty, indices, maxIndexCount, actualIndexCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult GetFontAxisRanges(uint listIndex, FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontAxisRanges, maxFontAxisRangeCount, actualFontAxisRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference1** fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateFontResource(uint listIndex, IDWriteFontResource** fontResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateFontFace(uint listIndex, IDWriteFontFace5** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public Locality GetFontLocality(uint listIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public IntPtr GetExpirationEvent() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public FontSourceType GetFontSourceType(uint fontIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), fontIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public uint GetFontSourceNameLength(uint listIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult GetFontSourceName(uint listIndex, ushort* stringBuffer, uint stringBufferSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSetBuilder.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSetBuilder.cs new file mode 100644 index 0000000..28651a8 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSetBuilder.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontSetBuilder +[Guid("2f642afe-9c68-4f40-b8be-457401afcb3d")] +[NativeTypeName("struct IDWriteFontSetBuilder : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteFontSetBuilder +{ + public static ref readonly Guid IID_IDWriteFontSetBuilder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFE, 0x2A, 0x64, 0x2F, + 0x68, 0x9C, + 0x40, 0x4F, + 0xB8, + 0xBE, + 0x45, + 0x74, + 0x01, + 0xAF, + 0xCB, + 0x3D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference, FontProperty* properties, uint propertyCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontFaceReference, properties, propertyCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult AddFontSet(IDWriteFontSet* fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateFontSet(IDWriteFontSet** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontSet); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSetBuilder1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSetBuilder1.cs new file mode 100644 index 0000000..70cca6c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSetBuilder1.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontSetBuilder1 +[Guid("3ff7715f-3cdc-4dc6-9b72-ec5621dccafd")] +[NativeTypeName("struct IDWriteFontSetBuilder1 : IDWriteFontSetBuilder")] +[NativeInheritance("IDWriteFontSetBuilder")] +public unsafe partial struct IDWriteFontSetBuilder1 +{ + public static ref readonly Guid IID_IDWriteFontSetBuilder1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5F, 0x71, 0xF7, 0x3F, + 0xDC, 0x3C, + 0xC6, 0x4D, + 0x9B, + 0x72, + 0xEC, + 0x56, + 0x21, + 0xDC, + 0xCA, + 0xFD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference, FontProperty* properties, uint propertyCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontFaceReference, properties, propertyCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult AddFontSet(IDWriteFontSet* fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateFontSet(IDWriteFontSet** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult AddFontFile(IDWriteFontFile* fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontFile); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSetBuilder2.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSetBuilder2.cs new file mode 100644 index 0000000..114e063 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteFontSetBuilder2.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontSetBuilder2 +[Guid("ee5ba612-b131-463c-8f4f-3189b9401e45")] +[NativeTypeName("struct IDWriteFontSetBuilder2 : IDWriteFontSetBuilder1")] +[NativeInheritance("IDWriteFontSetBuilder1")] +public unsafe partial struct IDWriteFontSetBuilder2 +{ + public static ref readonly Guid IID_IDWriteFontSetBuilder2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x12, 0xA6, 0x5B, 0xEE, + 0x31, 0xB1, + 0x3C, 0x46, + 0x8F, + 0x4F, + 0x31, + 0x89, + 0xB9, + 0x40, + 0x1E, + 0x45 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontSetBuilder2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference, FontProperty* properties, uint propertyCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontFaceReference, properties, propertyCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult AddFontSet(IDWriteFontSet* fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateFontSet(IDWriteFontSet** fontSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult AddFontFile(IDWriteFontFile* fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult AddFont(IDWriteFontFile* fontFile, uint fontFaceIndex, FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, FontProperty* properties, uint propertyCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), fontFile, fontFaceIndex, fontSimulations, fontAxisValues, fontAxisValueCount, fontAxisRanges, fontAxisRangeCount, properties, propertyCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult AddFontFile(ushort* filePath) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), filePath); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteGdiInterop.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteGdiInterop.cs new file mode 100644 index 0000000..0565f9d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteGdiInterop.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteGdiInterop +[Guid("1edd9491-9853-4299-898f-6432983b6f3a")] +[NativeTypeName("struct IDWriteGdiInterop : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteGdiInterop +{ + public static ref readonly Guid IID_IDWriteGdiInterop + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x91, 0x94, 0xDD, 0x1E, + 0x53, 0x98, + 0x99, 0x42, + 0x89, + 0x8F, + 0x64, + 0x32, + 0x98, + 0x3B, + 0x6F, + 0x3A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGdiInterop)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateFontFromLOGFONT(Win32.Graphics.Gdi.LogFontW* logFont, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), logFont, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult ConvertFontToLOGFONT(IDWriteFont* font, Win32.Graphics.Gdi.LogFontW** logFont, Bool32* isSystemFont) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), font, logFont, isSystemFont); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult ConvertFontFaceToLOGFONT(IDWriteFontFace* font, Win32.Graphics.Gdi.LogFontW** logFont) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), font, logFont); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateFontFaceFromHdc(IntPtr hdc, IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), hdc, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapRenderTarget(IntPtr hdc, uint width, uint height, IDWriteBitmapRenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), hdc, width, height, renderTarget); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteGdiInterop1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteGdiInterop1.cs new file mode 100644 index 0000000..8eabb41 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteGdiInterop1.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteGdiInterop1 +[Guid("4556be70-3abd-4f70-90be-421780a6f515")] +[NativeTypeName("struct IDWriteGdiInterop1 : IDWriteGdiInterop")] +[NativeInheritance("IDWriteGdiInterop")] +public unsafe partial struct IDWriteGdiInterop1 +{ + public static ref readonly Guid IID_IDWriteGdiInterop1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x70, 0xBE, 0x56, 0x45, + 0xBD, 0x3A, + 0x70, 0x4F, + 0x90, + 0xBE, + 0x42, + 0x17, + 0x80, + 0xA6, + 0xF5, + 0x15 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGdiInterop1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateFontFromLOGFONT(Win32.Graphics.Gdi.LogFontW* logFont, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), logFont, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult ConvertFontToLOGFONT(IDWriteFont* font, Win32.Graphics.Gdi.LogFontW** logFont, Bool32* isSystemFont) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), font, logFont, isSystemFont); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult ConvertFontFaceToLOGFONT(IDWriteFontFace* font, Win32.Graphics.Gdi.LogFontW** logFont) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), font, logFont); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateFontFaceFromHdc(IntPtr hdc, IDWriteFontFace** fontFace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), hdc, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateBitmapRenderTarget(IntPtr hdc, uint width, uint height, IDWriteBitmapRenderTarget** renderTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), hdc, width, height, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateFontFromLOGFONT(Win32.Graphics.Gdi.LogFontW* logFont, IDWriteFontCollection* fontCollection, IDWriteFont** font) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), logFont, fontCollection, font); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetFontSignature(IDWriteFontFace* fontFace, Win32.Graphics.Gdi.FontSignature** fontSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), fontFace, fontSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFontSignature(IDWriteFont* font, Win32.Graphics.Gdi.FontSignature** fontSignature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), font, fontSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetMatchingFontsByLOGFONT(Win32.Graphics.Gdi.LogFontA* logFont, IDWriteFontSet* fontSet, IDWriteFontSet** filteredSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), logFont, fontSet, filteredSet); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteGlyphRunAnalysis.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteGlyphRunAnalysis.cs new file mode 100644 index 0000000..da8de1e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteGlyphRunAnalysis.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteGlyphRunAnalysis +[Guid("7d97dbf7-e085-42d4-81e3-6a883bded118")] +[NativeTypeName("struct IDWriteGlyphRunAnalysis : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteGlyphRunAnalysis +{ + public static ref readonly Guid IID_IDWriteGlyphRunAnalysis + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF7, 0xDB, 0x97, 0x7D, + 0x85, 0xE0, + 0xD4, 0x42, + 0x81, + 0xE3, + 0x6A, + 0x88, + 0x3B, + 0xDE, + 0xD1, + 0x18 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteGlyphRunAnalysis)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetAlphaTextureBounds(TextureType textureType, RawRect* textureBounds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteGlyphRunAnalysis*)Unsafe.AsPointer(ref this), textureType, textureBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateAlphaTexture(TextureType textureType, RawRect* textureBounds, byte* alphaValues, uint bufferSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteGlyphRunAnalysis*)Unsafe.AsPointer(ref this), textureType, textureBounds, alphaValues, bufferSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetAlphaBlendParams(IDWriteRenderingParams* renderingParams, float* blendGamma, float* blendEnhancedContrast, float* blendClearTypeLevel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteGlyphRunAnalysis*)Unsafe.AsPointer(ref this), renderingParams, blendGamma, blendEnhancedContrast, blendClearTypeLevel); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteInMemoryFontFileLoader.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteInMemoryFontFileLoader.cs new file mode 100644 index 0000000..80abd8d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteInMemoryFontFileLoader.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteInMemoryFontFileLoader +[Guid("dc102f47-a12d-4b1c-822d-9e117e33043f")] +[NativeTypeName("struct IDWriteInMemoryFontFileLoader : IDWriteFontFileLoader")] +[NativeInheritance("IDWriteFontFileLoader")] +public unsafe partial struct IDWriteInMemoryFontFileLoader +{ + public static ref readonly Guid IID_IDWriteInMemoryFontFileLoader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x47, 0x2F, 0x10, 0xDC, + 0x2D, 0xA1, + 0x1C, 0x4B, + 0x82, + 0x2D, + 0x9E, + 0x11, + 0x7E, + 0x33, + 0x04, + 0x3F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteInMemoryFontFileLoader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileStream** fontFileStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteInMemoryFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateInMemoryFontFileReference(IDWriteFactory* factory, void* fontData, uint fontDataSize, IUnknown* ownerObject, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteInMemoryFontFileLoader*)Unsafe.AsPointer(ref this), factory, fontData, fontDataSize, ownerObject, fontFile); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetFileCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteInMemoryFontFileLoader*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteInlineObject.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteInlineObject.cs new file mode 100644 index 0000000..f2c0d5a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteInlineObject.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteInlineObject +[Guid("8339fde3-106f-47ab-8373-1c6295eb10b3")] +[NativeTypeName("struct IDWriteInlineObject : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteInlineObject +{ + public static ref readonly Guid IID_IDWriteInlineObject + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE3, 0xFD, 0x39, 0x83, + 0x6F, 0x10, + 0xAB, 0x47, + 0x83, + 0x73, + 0x1C, + 0x62, + 0x95, + 0xEB, + 0x10, + 0xB3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteInlineObject)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY, Bool32 isSideways, Bool32 isRightToLeft, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteInlineObject*)Unsafe.AsPointer(ref this), clientDrawingContext, renderer, originX, originY, isSideways, isRightToLeft, clientDrawingEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetMetrics(InlineObjectMetrics* metrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteInlineObject*)Unsafe.AsPointer(ref this), metrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetOverhangMetrics(OverhangMetrics* overhangs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteInlineObject*)Unsafe.AsPointer(ref this), overhangs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetBreakConditions(BreakCondition* breakConditionBefore, BreakCondition* breakConditionAfter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteInlineObject*)Unsafe.AsPointer(ref this), breakConditionBefore, breakConditionAfter); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteLocalFontFileLoader.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteLocalFontFileLoader.cs new file mode 100644 index 0000000..1fef17f --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteLocalFontFileLoader.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteLocalFontFileLoader +[Guid("b2d9f3ec-c9fe-4a11-a2ec-d86208f7c0a2")] +[NativeTypeName("struct IDWriteLocalFontFileLoader : IDWriteFontFileLoader")] +[NativeInheritance("IDWriteFontFileLoader")] +public unsafe partial struct IDWriteLocalFontFileLoader +{ + public static ref readonly Guid IID_IDWriteLocalFontFileLoader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEC, 0xF3, 0xD9, 0xB2, + 0xFE, 0xC9, + 0x11, 0x4A, + 0xA2, + 0xEC, + 0xD8, + 0x62, + 0x08, + 0xF7, + 0xC0, + 0xA2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteLocalFontFileLoader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileStream** fontFileStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteLocalFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFilePathLengthFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, uint* filePathLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteLocalFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, filePathLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetFilePathFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, ushort* filePath, uint filePathSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteLocalFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, filePath, filePathSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetLastWriteTimeFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, ulong* lastWriteTime) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteLocalFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, lastWriteTime); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteLocalizedStrings.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteLocalizedStrings.cs new file mode 100644 index 0000000..311480c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteLocalizedStrings.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteLocalizedStrings +[Guid("08256209-099a-4b34-b86d-c22b110e7771")] +[NativeTypeName("struct IDWriteLocalizedStrings : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteLocalizedStrings +{ + public static ref readonly Guid IID_IDWriteLocalizedStrings + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x09, 0x62, 0x25, 0x08, + 0x9A, 0x09, + 0x34, 0x4B, + 0xB8, + 0x6D, + 0xC2, + 0x2B, + 0x11, + 0x0E, + 0x77, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteLocalizedStrings)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult FindLocaleName(ushort* localeName, uint* index, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), localeName, index, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetLocaleNameLength(uint index, uint* length) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, length); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetLocaleName(uint index, ushort* localeName, uint size) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, localeName, size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetStringLength(uint index, uint* length) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, length); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetString(uint index, ushort* stringBuffer, uint size) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, stringBuffer, size); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteNumberSubstitution.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteNumberSubstitution.cs new file mode 100644 index 0000000..5797b17 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteNumberSubstitution.cs @@ -0,0 +1,84 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteNumberSubstitution +[Guid("14885cc9-bab0-4f90-b6ed-5c366a2cd03d")] +[NativeTypeName("struct IDWriteNumberSubstitution : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteNumberSubstitution +{ + public static ref readonly Guid IID_IDWriteNumberSubstitution + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC9, 0x5C, 0x88, 0x14, + 0xB0, 0xBA, + 0x90, 0x4F, + 0xB6, + 0xED, + 0x5C, + 0x36, + 0x6A, + 0x2C, + 0xD0, + 0x3D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteNumberSubstitution)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWritePixelSnapping.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWritePixelSnapping.cs new file mode 100644 index 0000000..18a5ac0 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWritePixelSnapping.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWritePixelSnapping +[Guid("eaf3a2da-ecf4-4d24-b644-b34f6842024b")] +[NativeTypeName("struct IDWritePixelSnapping : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWritePixelSnapping +{ + public static ref readonly Guid IID_IDWritePixelSnapping + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDA, 0xA2, 0xF3, 0xEA, + 0xF4, 0xEC, + 0x24, 0x4D, + 0xB6, + 0x44, + 0xB3, + 0x4F, + 0x68, + 0x42, + 0x02, + 0x4B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWritePixelSnapping)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult IsPixelSnappingDisabled(void* clientDrawingContext, Bool32* isDisabled) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this), clientDrawingContext, isDisabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCurrentTransform(void* clientDrawingContext, Matrix* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this), clientDrawingContext, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPixelsPerDip(void* clientDrawingContext, float* pixelsPerDip) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this), clientDrawingContext, pixelsPerDip); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRemoteFontFileLoader.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRemoteFontFileLoader.cs new file mode 100644 index 0000000..c691098 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRemoteFontFileLoader.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteRemoteFontFileLoader +[Guid("68648c83-6ede-46c0-ab46-20083a887fde")] +[NativeTypeName("struct IDWriteRemoteFontFileLoader : IDWriteFontFileLoader")] +[NativeInheritance("IDWriteFontFileLoader")] +public unsafe partial struct IDWriteRemoteFontFileLoader +{ + public static ref readonly Guid IID_IDWriteRemoteFontFileLoader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x83, 0x8C, 0x64, 0x68, + 0xDE, 0x6E, + 0xC0, 0x46, + 0xAB, + 0x46, + 0x20, + 0x08, + 0x3A, + 0x88, + 0x7F, + 0xDE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRemoteFontFileLoader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileStream** fontFileStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteRemoteFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateRemoteStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteRemoteFontFileStream** fontFileStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteRemoteFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetLocalityFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, Locality* locality) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteRemoteFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, locality); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateFontFileReferenceFromUrl(IDWriteFactory* factory, ushort* baseUrl, ushort* fontFileUrl, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteRemoteFontFileLoader*)Unsafe.AsPointer(ref this), factory, baseUrl, fontFileUrl, fontFile); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRemoteFontFileStream.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRemoteFontFileStream.cs new file mode 100644 index 0000000..cfb4eda --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRemoteFontFileStream.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteRemoteFontFileStream +[Guid("4db3757a-2c72-4ed9-b2b6-1ababe1aff9c")] +[NativeTypeName("struct IDWriteRemoteFontFileStream : IDWriteFontFileStream")] +[NativeInheritance("IDWriteFontFileStream")] +public unsafe partial struct IDWriteRemoteFontFileStream +{ + public static ref readonly Guid IID_IDWriteRemoteFontFileStream + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7A, 0x75, 0xB3, 0x4D, + 0x72, 0x2C, + 0xD9, 0x4E, + 0xB2, + 0xB6, + 0x1A, + 0xBA, + 0xBE, + 0x1A, + 0xFF, + 0x9C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRemoteFontFileStream)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReadFileFragment(void** fragmentStart, ulong fileOffset, ulong fragmentSize, void** fragmentContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), fragmentStart, fileOffset, fragmentSize, fragmentContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void ReleaseFileFragment(void* fragmentContext) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), fragmentContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetFileSize(ulong* fileSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), fileSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetLastWriteTime(ulong* lastWriteTime) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), lastWriteTime); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetLocalFileSize(ulong* localFileSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), localFileSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetFileFragmentLocality(ulong fileOffset, ulong fragmentSize, Bool32* isLocal, ulong* partialSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), fileOffset, fragmentSize, isLocal, partialSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public Locality GetLocality() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult BeginDownload(Guid* downloadOperationID, FileFragment* fileFragments, uint fragmentCount, IDWriteAsyncResult** asyncResult) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), downloadOperationID, fileFragments, fragmentCount, asyncResult); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams.cs new file mode 100644 index 0000000..60c1985 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteRenderingParams +[Guid("2f0da53a-2add-47cd-82ee-d9ec34688e75")] +[NativeTypeName("struct IDWriteRenderingParams : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteRenderingParams +{ + public static ref readonly Guid IID_IDWriteRenderingParams + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3A, 0xA5, 0x0D, 0x2F, + 0xDD, 0x2A, + 0xCD, 0x47, + 0x82, + 0xEE, + 0xD9, + 0xEC, + 0x34, + 0x68, + 0x8E, + 0x75 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRenderingParams)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public float GetGamma() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteRenderingParams*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public float GetEnhancedContrast() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteRenderingParams*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public float GetClearTypeLevel() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteRenderingParams*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public PixelGeometry GetPixelGeometry() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteRenderingParams*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public RenderingMode GetRenderingMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteRenderingParams*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams1.cs new file mode 100644 index 0000000..4f5a0e1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams1.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteRenderingParams1 +[Guid("94413cf4-a6fc-4248-8b50-6674348fcad3")] +[NativeTypeName("struct IDWriteRenderingParams1 : IDWriteRenderingParams")] +[NativeInheritance("IDWriteRenderingParams")] +public unsafe partial struct IDWriteRenderingParams1 +{ + public static ref readonly Guid IID_IDWriteRenderingParams1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF4, 0x3C, 0x41, 0x94, + 0xFC, 0xA6, + 0x48, 0x42, + 0x8B, + 0x50, + 0x66, + 0x74, + 0x34, + 0x8F, + 0xCA, + 0xD3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRenderingParams1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public float GetGamma() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public float GetEnhancedContrast() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public float GetClearTypeLevel() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public PixelGeometry GetPixelGeometry() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public RenderingMode GetRenderingMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public float GetGrayscaleEnhancedContrast() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams2.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams2.cs new file mode 100644 index 0000000..43d8e35 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams2.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteRenderingParams2 +[Guid("f9d711c3-9777-40ae-87e8-3e5af9bf0948")] +[NativeTypeName("struct IDWriteRenderingParams2 : IDWriteRenderingParams1")] +[NativeInheritance("IDWriteRenderingParams1")] +public unsafe partial struct IDWriteRenderingParams2 +{ + public static ref readonly Guid IID_IDWriteRenderingParams2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC3, 0x11, 0xD7, 0xF9, + 0x77, 0x97, + 0xAE, 0x40, + 0x87, + 0xE8, + 0x3E, + 0x5A, + 0xF9, + 0xBF, + 0x09, + 0x48 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRenderingParams2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public float GetGamma() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public float GetEnhancedContrast() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public float GetClearTypeLevel() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public PixelGeometry GetPixelGeometry() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public RenderingMode GetRenderingMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public float GetGrayscaleEnhancedContrast() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public GridFitMode GetGridFitMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams3.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams3.cs new file mode 100644 index 0000000..efba673 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteRenderingParams3.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteRenderingParams3 +[Guid("b7924baa-391b-412a-8c5c-e44cc2d867dc")] +[NativeTypeName("struct IDWriteRenderingParams3 : IDWriteRenderingParams2")] +[NativeInheritance("IDWriteRenderingParams2")] +public unsafe partial struct IDWriteRenderingParams3 +{ + public static ref readonly Guid IID_IDWriteRenderingParams3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0x4B, 0x92, 0xB7, + 0x1B, 0x39, + 0x2A, 0x41, + 0x8C, + 0x5C, + 0xE4, + 0x4C, + 0xC2, + 0xD8, + 0x67, + 0xDC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteRenderingParams3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public float GetGamma() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public float GetEnhancedContrast() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public float GetClearTypeLevel() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public PixelGeometry GetPixelGeometry() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public RenderingMode GetRenderingMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public float GetGrayscaleEnhancedContrast() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public GridFitMode GetGridFitMode() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public RenderingMode1 GetRenderingMode1() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteStringList.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteStringList.cs new file mode 100644 index 0000000..13a03f6 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteStringList.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteStringList +[Guid("cfee3140-1157-47ca-8b85-31bfcf3f2d0e")] +[NativeTypeName("struct IDWriteStringList : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteStringList +{ + public static ref readonly Guid IID_IDWriteStringList + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x40, 0x31, 0xEE, 0xCF, + 0x57, 0x11, + 0xCA, 0x47, + 0x8B, + 0x85, + 0x31, + 0xBF, + 0xCF, + 0x3F, + 0x2D, + 0x0E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteStringList)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteStringList*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetLocaleNameLength(uint listIndex, uint* length) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, length); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetLocaleName(uint listIndex, ushort* localeName, uint size) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, localeName, size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetStringLength(uint listIndex, uint* length) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, length); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetString(uint listIndex, ushort* stringBuffer, uint stringBufferSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSink.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSink.cs new file mode 100644 index 0000000..2d48a99 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSink.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextAnalysisSink +[Guid("5810cd44-0ca0-4701-b3fa-bec5182ae4f6")] +[NativeTypeName("struct IDWriteTextAnalysisSink : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteTextAnalysisSink +{ + public static ref readonly Guid IID_IDWriteTextAnalysisSink + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x44, 0xCD, 0x10, 0x58, + 0xA0, 0x0C, + 0x01, 0x47, + 0xB3, + 0xFA, + 0xBE, + 0xC5, + 0x18, + 0x2A, + 0xE4, + 0xF6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalysisSink)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetScriptAnalysis(uint textPosition, uint textLength, ScriptAnalysis* scriptAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalysisSink*)Unsafe.AsPointer(ref this), textPosition, textLength, scriptAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetLineBreakpoints(uint textPosition, uint textLength, LineBreakpoint* lineBreakpoints) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalysisSink*)Unsafe.AsPointer(ref this), textPosition, textLength, lineBreakpoints); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetBidiLevel(uint textPosition, uint textLength, byte explicitLevel, byte resolvedLevel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalysisSink*)Unsafe.AsPointer(ref this), textPosition, textLength, explicitLevel, resolvedLevel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetNumberSubstitution(uint textPosition, uint textLength, IDWriteNumberSubstitution* numberSubstitution) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalysisSink*)Unsafe.AsPointer(ref this), textPosition, textLength, numberSubstitution); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSink1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSink1.cs new file mode 100644 index 0000000..e3aefda --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSink1.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextAnalysisSink1 +[Guid("b0d941a0-85e7-4d8b-9fd3-5ced9934482a")] +[NativeTypeName("struct IDWriteTextAnalysisSink1 : IDWriteTextAnalysisSink")] +[NativeInheritance("IDWriteTextAnalysisSink")] +public unsafe partial struct IDWriteTextAnalysisSink1 +{ + public static ref readonly Guid IID_IDWriteTextAnalysisSink1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA0, 0x41, 0xD9, 0xB0, + 0xE7, 0x85, + 0x8B, 0x4D, + 0x9F, + 0xD3, + 0x5C, + 0xED, + 0x99, + 0x34, + 0x48, + 0x2A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalysisSink1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetScriptAnalysis(uint textPosition, uint textLength, ScriptAnalysis* scriptAnalysis) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalysisSink1*)Unsafe.AsPointer(ref this), textPosition, textLength, scriptAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetLineBreakpoints(uint textPosition, uint textLength, LineBreakpoint* lineBreakpoints) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalysisSink1*)Unsafe.AsPointer(ref this), textPosition, textLength, lineBreakpoints); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetBidiLevel(uint textPosition, uint textLength, byte explicitLevel, byte resolvedLevel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalysisSink1*)Unsafe.AsPointer(ref this), textPosition, textLength, explicitLevel, resolvedLevel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetNumberSubstitution(uint textPosition, uint textLength, IDWriteNumberSubstitution* numberSubstitution) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalysisSink1*)Unsafe.AsPointer(ref this), textPosition, textLength, numberSubstitution); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetGlyphOrientation(uint textPosition, uint textLength, GlyphOrientationAngle glyphOrientationAngle, byte adjustedBidiLevel, Bool32 isSideways, Bool32 isRightToLeft) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextAnalysisSink1*)Unsafe.AsPointer(ref this), textPosition, textLength, glyphOrientationAngle, adjustedBidiLevel, isSideways, isRightToLeft); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSource.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSource.cs new file mode 100644 index 0000000..8f24676 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSource.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextAnalysisSource +[Guid("688e1a58-5094-47c8-adc8-fbcea60ae92b")] +[NativeTypeName("struct IDWriteTextAnalysisSource : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteTextAnalysisSource +{ + public static ref readonly Guid IID_IDWriteTextAnalysisSource + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x58, 0x1A, 0x8E, 0x68, + 0x94, 0x50, + 0xC8, 0x47, + 0xAD, + 0xC8, + 0xFB, + 0xCE, + 0xA6, + 0x0A, + 0xE9, + 0x2B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalysisSource)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetTextAtPosition(uint textPosition, ushort** textString, uint* textLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalysisSource*)Unsafe.AsPointer(ref this), textPosition, textString, textLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetTextBeforePosition(uint textPosition, ushort** textString, uint* textLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalysisSource*)Unsafe.AsPointer(ref this), textPosition, textString, textLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public ReadingDirection GetParagraphReadingDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalysisSource*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetLocaleName(uint textPosition, uint* textLength, ushort** localeName) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalysisSource*)Unsafe.AsPointer(ref this), textPosition, textLength, localeName); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetNumberSubstitution(uint textPosition, uint* textLength, IDWriteNumberSubstitution** numberSubstitution) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextAnalysisSource*)Unsafe.AsPointer(ref this), textPosition, textLength, numberSubstitution); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSource1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSource1.cs new file mode 100644 index 0000000..88ad39b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalysisSource1.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextAnalysisSource1 +[Guid("639cfad8-0fb4-4b21-a58a-067920120009")] +[NativeTypeName("struct IDWriteTextAnalysisSource1 : IDWriteTextAnalysisSource")] +[NativeInheritance("IDWriteTextAnalysisSource")] +public unsafe partial struct IDWriteTextAnalysisSource1 +{ + public static ref readonly Guid IID_IDWriteTextAnalysisSource1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD8, 0xFA, 0x9C, 0x63, + 0xB4, 0x0F, + 0x21, 0x4B, + 0xA5, + 0x8A, + 0x06, + 0x79, + 0x20, + 0x12, + 0x00, + 0x09 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalysisSource1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetTextAtPosition(uint textPosition, ushort** textString, uint* textLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this), textPosition, textString, textLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetTextBeforePosition(uint textPosition, ushort** textString, uint* textLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this), textPosition, textString, textLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public ReadingDirection GetParagraphReadingDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetLocaleName(uint textPosition, uint* textLength, ushort** localeName) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this), textPosition, textLength, localeName); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetNumberSubstitution(uint textPosition, uint* textLength, IDWriteNumberSubstitution** numberSubstitution) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this), textPosition, textLength, numberSubstitution); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetVerticalGlyphOrientation(uint textPosition, uint* textLength, VerticalGlyphOrientation* glyphOrientation, byte* bidiLevel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this), textPosition, textLength, glyphOrientation, bidiLevel); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalyzer.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalyzer.cs new file mode 100644 index 0000000..9c3fe52 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalyzer.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextAnalyzer +[Guid("b7e6163e-7f46-43b4-84b3-e4e6249c365d")] +[NativeTypeName("struct IDWriteTextAnalyzer : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteTextAnalyzer +{ + public static ref readonly Guid IID_IDWriteTextAnalyzer + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3E, 0x16, 0xE6, 0xB7, + 0x46, 0x7F, + 0xB4, 0x43, + 0x84, + 0xB3, + 0xE4, + 0xE6, + 0x24, + 0x9C, + 0x36, + 0x5D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalyzer)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult AnalyzeScript(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult AnalyzeBidi(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult AnalyzeNumberSubstitution(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult AnalyzeLineBreakpoints(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetGlyphs(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, IDWriteNumberSubstitution* numberSubstitution, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, uint maxGlyphCount, ushort* clusterMap, ShapingTextProperties* textProps, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint* actualGlyphCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isSideways, isRightToLeft, scriptAnalysis, localeName, numberSubstitution, features, featureRangeLengths, featureRanges, maxGlyphCount, clusterMap, textProps, glyphIndices, glyphProps, actualGlyphCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetGdiCompatibleGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, pixelsPerDip, transform, useGdiNatural, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalyzer1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalyzer1.cs new file mode 100644 index 0000000..6fbc7ef --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalyzer1.cs @@ -0,0 +1,211 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextAnalyzer1 +[Guid("80dad800-e21f-4e83-96ce-bfcce500db7c")] +[NativeTypeName("struct IDWriteTextAnalyzer1 : IDWriteTextAnalyzer")] +[NativeInheritance("IDWriteTextAnalyzer")] +public unsafe partial struct IDWriteTextAnalyzer1 +{ + public static ref readonly Guid IID_IDWriteTextAnalyzer1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0xD8, 0xDA, 0x80, + 0x1F, 0xE2, + 0x83, 0x4E, + 0x96, + 0xCE, + 0xBF, + 0xCC, + 0xE5, + 0x00, + 0xDB, + 0x7C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalyzer1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult AnalyzeScript(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult AnalyzeBidi(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult AnalyzeNumberSubstitution(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult AnalyzeLineBreakpoints(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetGlyphs(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, IDWriteNumberSubstitution* numberSubstitution, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, uint maxGlyphCount, ushort* clusterMap, ShapingTextProperties* textProps, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint* actualGlyphCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isSideways, isRightToLeft, scriptAnalysis, localeName, numberSubstitution, features, featureRangeLengths, featureRanges, maxGlyphCount, clusterMap, textProps, glyphIndices, glyphProps, actualGlyphCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetGdiCompatibleGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, pixelsPerDip, transform, useGdiNatural, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult ApplyCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, uint textLength, uint glyphCount, ushort* clusterMap, float* glyphAdvances, GlyphOffset* glyphOffsets, ShapingGlyphProperties* glyphProperties, float* modifiedGlyphAdvances, GlyphOffset* modifiedGlyphOffsets) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), leadingSpacing, trailingSpacing, minimumAdvanceWidth, textLength, glyphCount, clusterMap, glyphAdvances, glyphOffsets, glyphProperties, modifiedGlyphAdvances, modifiedGlyphOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetBaseline(IDWriteFontFace* fontFace, Baseline baseline, Bool32 isVertical, Bool32 isSimulationAllowed, ScriptAnalysis* scriptAnalysis, ushort* localeName, int* baselineCoordinate, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), fontFace, baseline, isVertical, isSimulationAllowed, scriptAnalysis, localeName, baselineCoordinate, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult AnalyzeVerticalGlyphOrientation(IDWriteTextAnalysisSource1* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink1* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetGlyphOrientationTransform(GlyphOrientationAngle glyphOrientationAngle, Bool32 isSideways, Matrix* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), glyphOrientationAngle, isSideways, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetScriptProperties(ScriptAnalysis* scriptAnalysis, ScriptProperties* scriptProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), scriptAnalysis, scriptProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetTextComplexity(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32* isTextSimple, uint* textLengthRead, ushort* glyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isTextSimple, textLengthRead, glyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetJustificationOpportunities(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis* scriptAnalysis, uint textLength, uint glyphCount, ushort* textString, ushort* clusterMap, ShapingGlyphProperties* glyphProperties, JustificationOpportunity* justificationOpportunities) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, textString, clusterMap, glyphProperties, justificationOpportunities); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult JustifyGlyphAdvances(float lineWidth, uint glyphCount, JustificationOpportunity* justificationOpportunities, float* glyphAdvances, GlyphOffset* glyphOffsets, float* justifiedGlyphAdvances, GlyphOffset* justifiedGlyphOffsets) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), lineWidth, glyphCount, justificationOpportunities, glyphAdvances, glyphOffsets, justifiedGlyphAdvances, justifiedGlyphOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetJustifiedGlyphs(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis* scriptAnalysis, uint textLength, uint glyphCount, uint maxGlyphCount, ushort* clusterMap, ushort* glyphIndices, float* glyphAdvances, float* justifiedGlyphAdvances, GlyphOffset* justifiedGlyphOffsets, ShapingGlyphProperties* glyphProperties, uint* actualGlyphCount, ushort* modifiedClusterMap, ushort* modifiedGlyphIndices, float* modifiedGlyphAdvances, GlyphOffset* modifiedGlyphOffsets) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, maxGlyphCount, clusterMap, glyphIndices, glyphAdvances, justifiedGlyphAdvances, justifiedGlyphOffsets, glyphProperties, actualGlyphCount, modifiedClusterMap, modifiedGlyphIndices, modifiedGlyphAdvances, modifiedGlyphOffsets); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalyzer2.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalyzer2.cs new file mode 100644 index 0000000..72caa03 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextAnalyzer2.cs @@ -0,0 +1,235 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextAnalyzer2 +[Guid("553a9ff3-5693-4df7-b52b-74806f7f2eb9")] +[NativeTypeName("struct IDWriteTextAnalyzer2 : IDWriteTextAnalyzer1")] +[NativeInheritance("IDWriteTextAnalyzer1")] +public unsafe partial struct IDWriteTextAnalyzer2 +{ + public static ref readonly Guid IID_IDWriteTextAnalyzer2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF3, 0x9F, 0x3A, 0x55, + 0x93, 0x56, + 0xF7, 0x4D, + 0xB5, + 0x2B, + 0x74, + 0x80, + 0x6F, + 0x7F, + 0x2E, + 0xB9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextAnalyzer2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult AnalyzeScript(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult AnalyzeBidi(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult AnalyzeNumberSubstitution(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult AnalyzeLineBreakpoints(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetGlyphs(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, IDWriteNumberSubstitution* numberSubstitution, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, uint maxGlyphCount, ushort* clusterMap, ShapingTextProperties* textProps, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint* actualGlyphCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isSideways, isRightToLeft, scriptAnalysis, localeName, numberSubstitution, features, featureRangeLengths, featureRanges, maxGlyphCount, clusterMap, textProps, glyphIndices, glyphProps, actualGlyphCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetGdiCompatibleGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, float pixelsPerDip, Matrix* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, pixelsPerDip, transform, useGdiNatural, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult ApplyCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, uint textLength, uint glyphCount, ushort* clusterMap, float* glyphAdvances, GlyphOffset* glyphOffsets, ShapingGlyphProperties* glyphProperties, float* modifiedGlyphAdvances, GlyphOffset* modifiedGlyphOffsets) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), leadingSpacing, trailingSpacing, minimumAdvanceWidth, textLength, glyphCount, clusterMap, glyphAdvances, glyphOffsets, glyphProperties, modifiedGlyphAdvances, modifiedGlyphOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetBaseline(IDWriteFontFace* fontFace, Baseline baseline, Bool32 isVertical, Bool32 isSimulationAllowed, ScriptAnalysis* scriptAnalysis, ushort* localeName, int* baselineCoordinate, Bool32* exists) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, baseline, isVertical, isSimulationAllowed, scriptAnalysis, localeName, baselineCoordinate, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult AnalyzeVerticalGlyphOrientation(IDWriteTextAnalysisSource1* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink1* analysisSink) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, analysisSink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetGlyphOrientationTransform(GlyphOrientationAngle glyphOrientationAngle, Bool32 isSideways, Matrix* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), glyphOrientationAngle, isSideways, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetScriptProperties(ScriptAnalysis* scriptAnalysis, ScriptProperties* scriptProperties) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), scriptAnalysis, scriptProperties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetTextComplexity(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32* isTextSimple, uint* textLengthRead, ushort* glyphIndices) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isTextSimple, textLengthRead, glyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetJustificationOpportunities(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis* scriptAnalysis, uint textLength, uint glyphCount, ushort* textString, ushort* clusterMap, ShapingGlyphProperties* glyphProperties, JustificationOpportunity* justificationOpportunities) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, textString, clusterMap, glyphProperties, justificationOpportunities); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult JustifyGlyphAdvances(float lineWidth, uint glyphCount, JustificationOpportunity* justificationOpportunities, float* glyphAdvances, GlyphOffset* glyphOffsets, float* justifiedGlyphAdvances, GlyphOffset* justifiedGlyphOffsets) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), lineWidth, glyphCount, justificationOpportunities, glyphAdvances, glyphOffsets, justifiedGlyphAdvances, justifiedGlyphOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetJustifiedGlyphs(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis* scriptAnalysis, uint textLength, uint glyphCount, uint maxGlyphCount, ushort* clusterMap, ushort* glyphIndices, float* glyphAdvances, float* justifiedGlyphAdvances, GlyphOffset* justifiedGlyphOffsets, ShapingGlyphProperties* glyphProperties, uint* actualGlyphCount, ushort* modifiedClusterMap, ushort* modifiedGlyphIndices, float* modifiedGlyphAdvances, GlyphOffset* modifiedGlyphOffsets) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, maxGlyphCount, clusterMap, glyphIndices, glyphAdvances, justifiedGlyphAdvances, justifiedGlyphOffsets, glyphProperties, actualGlyphCount, modifiedClusterMap, modifiedGlyphIndices, modifiedGlyphAdvances, modifiedGlyphOffsets); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetGlyphOrientationTransform(GlyphOrientationAngle glyphOrientationAngle, Bool32 isSideways, float originX, float originY, Matrix* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), glyphOrientationAngle, isSideways, originX, originY, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult GetTypographicFeatures(IDWriteFontFace* fontFace, ScriptAnalysis* scriptAnalysis, ushort* localeName, uint maxTagCount, uint* actualTagCount, FontFeatureTag* tags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, scriptAnalysis, localeName, maxTagCount, actualTagCount, tags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CheckTypographicFeature(IDWriteFontFace* fontFace, ScriptAnalysis* scriptAnalysis, ushort* localeName, FontFeatureTag featureTag, uint glyphCount, ushort* glyphIndices, byte* featureApplies) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, scriptAnalysis, localeName, featureTag, glyphCount, glyphIndices, featureApplies); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat.cs new file mode 100644 index 0000000..619e338 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat.cs @@ -0,0 +1,283 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextFormat +[Guid("9c906818-31d7-4fd3-a151-7c5e225db55a")] +[NativeTypeName("struct IDWriteTextFormat : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteTextFormat +{ + public static ref readonly Guid IID_IDWriteTextFormat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x18, 0x68, 0x90, 0x9C, + 0xD7, 0x31, + 0xD3, 0x4F, + 0xA1, + 0x51, + 0x7C, + 0x5E, + 0x22, + 0x5D, + 0xB5, + 0x5A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextFormat)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetTextAlignment(TextAlignment textAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), textAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), paragraphAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetWordWrapping(WordWrapping wordWrapping) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), wordWrapping); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetReadingDirection(ReadingDirection readingDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), readingDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetFlowDirection(FlowDirection flowDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), flowDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetIncrementalTabStop(float incrementalTabStop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), incrementalTabStop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public TextAlignment GetTextAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public ParagraphAlignment GetParagraphAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public WordWrapping GetWordWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public ReadingDirection GetReadingDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public FlowDirection GetFlowDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public float GetIncrementalTabStop() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetFontFamilyNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public FontWeight GetFontWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public FontStyle GetFontStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public FontStretch GetFontStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public float GetFontSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public uint GetLocaleNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetLocaleName(ushort* localeName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), localeName, nameSize); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat1.cs new file mode 100644 index 0000000..2c4dbe3 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat1.cs @@ -0,0 +1,347 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextFormat1 +[Guid("5f174b49-0d8b-4cfb-8bca-f1cce9d06c67")] +[NativeTypeName("struct IDWriteTextFormat1 : IDWriteTextFormat")] +[NativeInheritance("IDWriteTextFormat")] +public unsafe partial struct IDWriteTextFormat1 +{ + public static ref readonly Guid IID_IDWriteTextFormat1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x4B, 0x17, 0x5F, + 0x8B, 0x0D, + 0xFB, 0x4C, + 0x8B, + 0xCA, + 0xF1, + 0xCC, + 0xE9, + 0xD0, + 0x6C, + 0x67 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextFormat1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetTextAlignment(TextAlignment textAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), textAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), paragraphAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetWordWrapping(WordWrapping wordWrapping) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), wordWrapping); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetReadingDirection(ReadingDirection readingDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), readingDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetFlowDirection(FlowDirection flowDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), flowDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetIncrementalTabStop(float incrementalTabStop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), incrementalTabStop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public TextAlignment GetTextAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public ParagraphAlignment GetParagraphAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public WordWrapping GetWordWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public ReadingDirection GetReadingDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public FlowDirection GetFlowDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public float GetIncrementalTabStop() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetFontFamilyNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public FontWeight GetFontWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public FontStyle GetFontStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public FontStretch GetFontStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public float GetFontSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public uint GetLocaleNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetLocaleName(ushort* localeName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), localeName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), glyphOrientation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public VerticalGlyphOrientation GetVerticalGlyphOrientation() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), isLastLineWrappingEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public Bool32 GetLastLineWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult SetOpticalAlignment(OpticalAlignment opticalAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), opticalAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public OpticalAlignment GetOpticalAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult SetFontFallback(IDWriteFontFallback* fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), fontFallback); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat2.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat2.cs new file mode 100644 index 0000000..51c5efb --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat2.cs @@ -0,0 +1,363 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextFormat2 +[Guid("f67e0edd-9e3d-4ecc-8c32-4183253dfe70")] +[NativeTypeName("struct IDWriteTextFormat2 : IDWriteTextFormat1")] +[NativeInheritance("IDWriteTextFormat1")] +public unsafe partial struct IDWriteTextFormat2 +{ + public static ref readonly Guid IID_IDWriteTextFormat2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDD, 0x0E, 0x7E, 0xF6, + 0x3D, 0x9E, + 0xCC, 0x4E, + 0x8C, + 0x32, + 0x41, + 0x83, + 0x25, + 0x3D, + 0xFE, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextFormat2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetTextAlignment(TextAlignment textAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), textAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), paragraphAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetWordWrapping(WordWrapping wordWrapping) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), wordWrapping); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetReadingDirection(ReadingDirection readingDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), readingDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetFlowDirection(FlowDirection flowDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), flowDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetIncrementalTabStop(float incrementalTabStop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), incrementalTabStop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public TextAlignment GetTextAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public ParagraphAlignment GetParagraphAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public WordWrapping GetWordWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public ReadingDirection GetReadingDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public FlowDirection GetFlowDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public float GetIncrementalTabStop() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetFontFamilyNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public FontWeight GetFontWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public FontStyle GetFontStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public FontStretch GetFontStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public float GetFontSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public uint GetLocaleNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetLocaleName(ushort* localeName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), localeName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), glyphOrientation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public VerticalGlyphOrientation GetVerticalGlyphOrientation() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), isLastLineWrappingEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public Bool32 GetLastLineWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult SetOpticalAlignment(OpticalAlignment opticalAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), opticalAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public OpticalAlignment GetOpticalAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult SetFontFallback(IDWriteFontFallback* fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetLineSpacing(LineSpacing* lineSpacingOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), lineSpacingOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetLineSpacing(LineSpacing* lineSpacingOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), lineSpacingOptions); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat3.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat3.cs new file mode 100644 index 0000000..518288b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextFormat3.cs @@ -0,0 +1,403 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextFormat3 +[Guid("6d3b5641-e550-430d-a85b-b7bf48a93427")] +[NativeTypeName("struct IDWriteTextFormat3 : IDWriteTextFormat2")] +[NativeInheritance("IDWriteTextFormat2")] +public unsafe partial struct IDWriteTextFormat3 +{ + public static ref readonly Guid IID_IDWriteTextFormat3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x56, 0x3B, 0x6D, + 0x50, 0xE5, + 0x0D, 0x43, + 0xA8, + 0x5B, + 0xB7, + 0xBF, + 0x48, + 0xA9, + 0x34, + 0x27 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextFormat3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetTextAlignment(TextAlignment textAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), textAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), paragraphAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetWordWrapping(WordWrapping wordWrapping) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), wordWrapping); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetReadingDirection(ReadingDirection readingDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), readingDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetFlowDirection(FlowDirection flowDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), flowDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetIncrementalTabStop(float incrementalTabStop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), incrementalTabStop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public TextAlignment GetTextAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public ParagraphAlignment GetParagraphAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public WordWrapping GetWordWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public ReadingDirection GetReadingDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public FlowDirection GetFlowDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public float GetIncrementalTabStop() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetFontFamilyNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public FontWeight GetFontWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public FontStyle GetFontStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public FontStretch GetFontStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public float GetFontSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public uint GetLocaleNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetLocaleName(ushort* localeName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), localeName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), glyphOrientation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public VerticalGlyphOrientation GetVerticalGlyphOrientation() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), isLastLineWrappingEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public Bool32 GetLastLineWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult SetOpticalAlignment(OpticalAlignment opticalAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), opticalAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public OpticalAlignment GetOpticalAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult SetFontFallback(IDWriteFontFallback* fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetLineSpacing(LineSpacing* lineSpacingOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), lineSpacingOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetLineSpacing(LineSpacing* lineSpacingOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), lineSpacingOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult SetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public uint GetFontAxisValueCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public AutomaticFontAxes GetAutomaticFontAxes() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult SetAutomaticFontAxes(AutomaticFontAxes automaticFontAxes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), automaticFontAxes); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout.cs new file mode 100644 index 0000000..32f8330 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout.cs @@ -0,0 +1,595 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextLayout +[Guid("53737037-6d14-410b-9bfe-0b182bb70961")] +[NativeTypeName("struct IDWriteTextLayout : IDWriteTextFormat")] +[NativeInheritance("IDWriteTextFormat")] +public unsafe partial struct IDWriteTextLayout +{ + public static ref readonly Guid IID_IDWriteTextLayout + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x37, 0x70, 0x73, 0x53, + 0x14, 0x6D, + 0x0B, 0x41, + 0x9B, + 0xFE, + 0x0B, + 0x18, + 0x2B, + 0xB7, + 0x09, + 0x61 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetTextAlignment(TextAlignment textAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), textAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), paragraphAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetWordWrapping(WordWrapping wordWrapping) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), wordWrapping); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetReadingDirection(ReadingDirection readingDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), readingDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetFlowDirection(FlowDirection flowDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), flowDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetIncrementalTabStop(float incrementalTabStop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), incrementalTabStop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public TextAlignment GetTextAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public ParagraphAlignment GetParagraphAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public WordWrapping GetWordWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public ReadingDirection GetReadingDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public FlowDirection GetFlowDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public float GetIncrementalTabStop() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetFontFamilyNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public FontWeight GetFontWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public FontStyle GetFontStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public FontStretch GetFontStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public float GetFontSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public uint GetLocaleNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetLocaleName(ushort* localeName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), localeName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetMaxWidth(float maxWidth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), maxWidth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult SetMaxHeight(float maxHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), maxHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult SetFontCollection(IDWriteFontCollection* fontCollection, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontCollection, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult SetFontFamilyName(ushort* fontFamilyName, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontFamilyName, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult SetFontWeight(FontWeight fontWeight, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontWeight, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult SetFontStyle(FontStyle fontStyle, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontStyle, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult SetFontStretch(FontStretch fontStretch, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontStretch, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult SetFontSize(float fontSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetUnderline(Bool32 hasUnderline, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), hasUnderline, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult SetStrikethrough(Bool32 hasStrikethrough, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), hasStrikethrough, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult SetDrawingEffect(IUnknown* drawingEffect, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), drawingEffect, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult SetInlineObject(IDWriteInlineObject* inlineObject, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), inlineObject, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetTypography(IDWriteTypography* typography, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), typography, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult SetLocaleName(ushort* localeName, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), localeName, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public float GetMaxWidth() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public float GetMaxHeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult GetFontCollection(uint currentPosition, IDWriteFontCollection** fontCollection, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontCollection, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult GetFontFamilyNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult GetFontWeight(uint currentPosition, FontWeight* fontWeight, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontWeight, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult GetFontStyle(uint currentPosition, FontStyle* fontStyle, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontStyle, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult GetFontStretch(uint currentPosition, FontStretch* fontStretch, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontStretch, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult GetFontSize(uint currentPosition, float* fontSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult GetUnderline(uint currentPosition, Bool32* hasUnderline, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, hasUnderline, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult GetStrikethrough(uint currentPosition, Bool32* hasStrikethrough, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, hasStrikethrough, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult GetDrawingEffect(uint currentPosition, IUnknown** drawingEffect, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, drawingEffect, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult GetInlineObject(uint currentPosition, IDWriteInlineObject** inlineObject, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, inlineObject, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult GetTypography(uint currentPosition, IDWriteTypography** typography, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, typography, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult GetLocaleNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), clientDrawingContext, renderer, originX, originY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult GetLineMetrics(LineMetrics* lineMetrics, uint maxLineCount, uint* actualLineCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult GetMetrics(TextMetrics* textMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), textMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult GetOverhangMetrics(OverhangMetrics* overhangs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), overhangs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult GetClusterMetrics(ClusterMetrics* clusterMetrics, uint maxClusterCount, uint* actualClusterCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), clusterMetrics, maxClusterCount, actualClusterCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult DetermineMinWidth(float* minWidth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), minWidth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult HitTestPoint(float pointX, float pointY, Bool32* isTrailingHit, Bool32* isInside, HitTestMetrics* hitTestMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), pointX, pointY, isTrailingHit, isInside, hitTestMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult HitTestTextPosition(uint textPosition, Bool32 isTrailingHit, float* pointX, float* pointY, HitTestMetrics* hitTestMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), textPosition, isTrailingHit, pointX, pointY, hitTestMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult HitTestTextRange(uint textPosition, uint textLength, float originX, float originY, HitTestMetrics* hitTestMetrics, uint maxHitTestMetricsCount, uint* actualHitTestMetricsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), textPosition, textLength, originX, originY, hitTestMetrics, maxHitTestMetricsCount, actualHitTestMetricsCount); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout1.cs new file mode 100644 index 0000000..457f5fd --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout1.cs @@ -0,0 +1,627 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextLayout1 +[Guid("9064d822-80a7-465c-a986-df65f78b8feb")] +[NativeTypeName("struct IDWriteTextLayout1 : IDWriteTextLayout")] +[NativeInheritance("IDWriteTextLayout")] +public unsafe partial struct IDWriteTextLayout1 +{ + public static ref readonly Guid IID_IDWriteTextLayout1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x22, 0xD8, 0x64, 0x90, + 0xA7, 0x80, + 0x5C, 0x46, + 0xA9, + 0x86, + 0xDF, + 0x65, + 0xF7, + 0x8B, + 0x8F, + 0xEB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetTextAlignment(TextAlignment textAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), textAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), paragraphAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetWordWrapping(WordWrapping wordWrapping) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), wordWrapping); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetReadingDirection(ReadingDirection readingDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), readingDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetFlowDirection(FlowDirection flowDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), flowDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetIncrementalTabStop(float incrementalTabStop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), incrementalTabStop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public TextAlignment GetTextAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public ParagraphAlignment GetParagraphAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public WordWrapping GetWordWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public ReadingDirection GetReadingDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public FlowDirection GetFlowDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public float GetIncrementalTabStop() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetFontFamilyNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public FontWeight GetFontWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public FontStyle GetFontStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public FontStretch GetFontStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public float GetFontSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public uint GetLocaleNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetLocaleName(ushort* localeName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), localeName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetMaxWidth(float maxWidth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), maxWidth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult SetMaxHeight(float maxHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), maxHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult SetFontCollection(IDWriteFontCollection* fontCollection, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontCollection, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult SetFontFamilyName(ushort* fontFamilyName, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontFamilyName, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult SetFontWeight(FontWeight fontWeight, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontWeight, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult SetFontStyle(FontStyle fontStyle, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontStyle, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult SetFontStretch(FontStretch fontStretch, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontStretch, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult SetFontSize(float fontSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetUnderline(Bool32 hasUnderline, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), hasUnderline, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult SetStrikethrough(Bool32 hasStrikethrough, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), hasStrikethrough, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult SetDrawingEffect(IUnknown* drawingEffect, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), drawingEffect, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult SetInlineObject(IDWriteInlineObject* inlineObject, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), inlineObject, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetTypography(IDWriteTypography* typography, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), typography, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult SetLocaleName(ushort* localeName, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), localeName, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public float GetMaxWidth() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public float GetMaxHeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult GetFontCollection(uint currentPosition, IDWriteFontCollection** fontCollection, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontCollection, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult GetFontFamilyNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult GetFontWeight(uint currentPosition, FontWeight* fontWeight, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontWeight, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult GetFontStyle(uint currentPosition, FontStyle* fontStyle, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontStyle, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult GetFontStretch(uint currentPosition, FontStretch* fontStretch, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontStretch, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult GetFontSize(uint currentPosition, float* fontSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult GetUnderline(uint currentPosition, Bool32* hasUnderline, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, hasUnderline, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult GetStrikethrough(uint currentPosition, Bool32* hasStrikethrough, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, hasStrikethrough, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult GetDrawingEffect(uint currentPosition, IUnknown** drawingEffect, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, drawingEffect, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult GetInlineObject(uint currentPosition, IDWriteInlineObject** inlineObject, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, inlineObject, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult GetTypography(uint currentPosition, IDWriteTypography** typography, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, typography, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult GetLocaleNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), clientDrawingContext, renderer, originX, originY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult GetLineMetrics(LineMetrics* lineMetrics, uint maxLineCount, uint* actualLineCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult GetMetrics(TextMetrics* textMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), textMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult GetOverhangMetrics(OverhangMetrics* overhangs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), overhangs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult GetClusterMetrics(ClusterMetrics* clusterMetrics, uint maxClusterCount, uint* actualClusterCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), clusterMetrics, maxClusterCount, actualClusterCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult DetermineMinWidth(float* minWidth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), minWidth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult HitTestPoint(float pointX, float pointY, Bool32* isTrailingHit, Bool32* isInside, HitTestMetrics* hitTestMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), pointX, pointY, isTrailingHit, isInside, hitTestMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult HitTestTextPosition(uint textPosition, Bool32 isTrailingHit, float* pointX, float* pointY, HitTestMetrics* hitTestMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), textPosition, isTrailingHit, pointX, pointY, hitTestMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult HitTestTextRange(uint textPosition, uint textLength, float originX, float originY, HitTestMetrics* hitTestMetrics, uint maxHitTestMetricsCount, uint* actualHitTestMetricsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), textPosition, textLength, originX, originY, hitTestMetrics, maxHitTestMetricsCount, actualHitTestMetricsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult SetPairKerning(Bool32 isPairKerningEnabled, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), isPairKerningEnabled, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public HResult GetPairKerning(uint currentPosition, Bool32* isPairKerningEnabled, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, isPairKerningEnabled, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public HResult SetCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult GetCharacterSpacing(uint currentPosition, float* leadingSpacing, float* trailingSpacing, float* minimumAdvanceWidth, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout2.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout2.cs new file mode 100644 index 0000000..4ca5349 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout2.cs @@ -0,0 +1,699 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextLayout2 +[Guid("1093c18f-8d5e-43f0-b064-0917311b525e")] +[NativeTypeName("struct IDWriteTextLayout2 : IDWriteTextLayout1")] +[NativeInheritance("IDWriteTextLayout1")] +public unsafe partial struct IDWriteTextLayout2 +{ + public static ref readonly Guid IID_IDWriteTextLayout2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8F, 0xC1, 0x93, 0x10, + 0x5E, 0x8D, + 0xF0, 0x43, + 0xB0, + 0x64, + 0x09, + 0x17, + 0x31, + 0x1B, + 0x52, + 0x5E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetTextAlignment(TextAlignment textAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), textAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), paragraphAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetWordWrapping(WordWrapping wordWrapping) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), wordWrapping); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetReadingDirection(ReadingDirection readingDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), readingDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetFlowDirection(FlowDirection flowDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), flowDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetIncrementalTabStop(float incrementalTabStop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), incrementalTabStop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public TextAlignment GetTextAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public ParagraphAlignment GetParagraphAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public WordWrapping GetWordWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public ReadingDirection GetReadingDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public FlowDirection GetFlowDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public float GetIncrementalTabStop() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetFontFamilyNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public FontWeight GetFontWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public FontStyle GetFontStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public FontStretch GetFontStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public float GetFontSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public uint GetLocaleNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetLocaleName(ushort* localeName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), localeName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetMaxWidth(float maxWidth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), maxWidth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult SetMaxHeight(float maxHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), maxHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult SetFontCollection(IDWriteFontCollection* fontCollection, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontCollection, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult SetFontFamilyName(ushort* fontFamilyName, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontFamilyName, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult SetFontWeight(FontWeight fontWeight, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontWeight, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult SetFontStyle(FontStyle fontStyle, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontStyle, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult SetFontStretch(FontStretch fontStretch, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontStretch, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult SetFontSize(float fontSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetUnderline(Bool32 hasUnderline, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), hasUnderline, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult SetStrikethrough(Bool32 hasStrikethrough, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), hasStrikethrough, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult SetDrawingEffect(IUnknown* drawingEffect, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), drawingEffect, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult SetInlineObject(IDWriteInlineObject* inlineObject, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), inlineObject, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetTypography(IDWriteTypography* typography, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), typography, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult SetLocaleName(ushort* localeName, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), localeName, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public float GetMaxWidth() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public float GetMaxHeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult GetFontCollection(uint currentPosition, IDWriteFontCollection** fontCollection, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontCollection, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult GetFontFamilyNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult GetFontWeight(uint currentPosition, FontWeight* fontWeight, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontWeight, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult GetFontStyle(uint currentPosition, FontStyle* fontStyle, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontStyle, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult GetFontStretch(uint currentPosition, FontStretch* fontStretch, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontStretch, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult GetFontSize(uint currentPosition, float* fontSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult GetUnderline(uint currentPosition, Bool32* hasUnderline, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, hasUnderline, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult GetStrikethrough(uint currentPosition, Bool32* hasStrikethrough, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, hasStrikethrough, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult GetDrawingEffect(uint currentPosition, IUnknown** drawingEffect, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, drawingEffect, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult GetInlineObject(uint currentPosition, IDWriteInlineObject** inlineObject, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, inlineObject, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult GetTypography(uint currentPosition, IDWriteTypography** typography, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, typography, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult GetLocaleNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), clientDrawingContext, renderer, originX, originY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult GetLineMetrics(LineMetrics* lineMetrics, uint maxLineCount, uint* actualLineCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult GetMetrics(TextMetrics* textMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), textMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult GetOverhangMetrics(OverhangMetrics* overhangs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), overhangs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult GetClusterMetrics(ClusterMetrics* clusterMetrics, uint maxClusterCount, uint* actualClusterCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), clusterMetrics, maxClusterCount, actualClusterCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult DetermineMinWidth(float* minWidth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), minWidth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult HitTestPoint(float pointX, float pointY, Bool32* isTrailingHit, Bool32* isInside, HitTestMetrics* hitTestMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), pointX, pointY, isTrailingHit, isInside, hitTestMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult HitTestTextPosition(uint textPosition, Bool32 isTrailingHit, float* pointX, float* pointY, HitTestMetrics* hitTestMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), textPosition, isTrailingHit, pointX, pointY, hitTestMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult HitTestTextRange(uint textPosition, uint textLength, float originX, float originY, HitTestMetrics* hitTestMetrics, uint maxHitTestMetricsCount, uint* actualHitTestMetricsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), textPosition, textLength, originX, originY, hitTestMetrics, maxHitTestMetricsCount, actualHitTestMetricsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult SetPairKerning(Bool32 isPairKerningEnabled, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), isPairKerningEnabled, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public HResult GetPairKerning(uint currentPosition, Bool32* isPairKerningEnabled, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, isPairKerningEnabled, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public HResult SetCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult GetCharacterSpacing(uint currentPosition, float* leadingSpacing, float* trailingSpacing, float* minimumAdvanceWidth, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public HResult GetMetrics(TextMetrics1* textMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), textMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), glyphOrientation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public VerticalGlyphOrientation GetVerticalGlyphOrientation() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), isLastLineWrappingEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public Bool32 GetLastLineWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public HResult SetOpticalAlignment(OpticalAlignment opticalAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), opticalAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public OpticalAlignment GetOpticalAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public HResult SetFontFallback(IDWriteFontFallback* fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public HResult GetFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontFallback); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout3.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout3.cs new file mode 100644 index 0000000..99ca827 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout3.cs @@ -0,0 +1,731 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextLayout3 +[Guid("07ddcd52-020e-4de8-ac33-6c953d83f92d")] +[NativeTypeName("struct IDWriteTextLayout3 : IDWriteTextLayout2")] +[NativeInheritance("IDWriteTextLayout2")] +public unsafe partial struct IDWriteTextLayout3 +{ + public static ref readonly Guid IID_IDWriteTextLayout3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x52, 0xCD, 0xDD, 0x07, + 0x0E, 0x02, + 0xE8, 0x4D, + 0xAC, + 0x33, + 0x6C, + 0x95, + 0x3D, + 0x83, + 0xF9, + 0x2D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetTextAlignment(TextAlignment textAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), textAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), paragraphAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetWordWrapping(WordWrapping wordWrapping) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), wordWrapping); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetReadingDirection(ReadingDirection readingDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), readingDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetFlowDirection(FlowDirection flowDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), flowDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetIncrementalTabStop(float incrementalTabStop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), incrementalTabStop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public TextAlignment GetTextAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public ParagraphAlignment GetParagraphAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public WordWrapping GetWordWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public ReadingDirection GetReadingDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public FlowDirection GetFlowDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public float GetIncrementalTabStop() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetFontFamilyNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public FontWeight GetFontWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public FontStyle GetFontStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public FontStretch GetFontStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public float GetFontSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public uint GetLocaleNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetLocaleName(ushort* localeName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), localeName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetMaxWidth(float maxWidth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), maxWidth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult SetMaxHeight(float maxHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), maxHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult SetFontCollection(IDWriteFontCollection* fontCollection, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontCollection, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult SetFontFamilyName(ushort* fontFamilyName, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontFamilyName, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult SetFontWeight(FontWeight fontWeight, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontWeight, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult SetFontStyle(FontStyle fontStyle, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontStyle, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult SetFontStretch(FontStretch fontStretch, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontStretch, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult SetFontSize(float fontSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetUnderline(Bool32 hasUnderline, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), hasUnderline, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult SetStrikethrough(Bool32 hasStrikethrough, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), hasStrikethrough, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult SetDrawingEffect(IUnknown* drawingEffect, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), drawingEffect, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult SetInlineObject(IDWriteInlineObject* inlineObject, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), inlineObject, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetTypography(IDWriteTypography* typography, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), typography, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult SetLocaleName(ushort* localeName, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), localeName, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public float GetMaxWidth() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public float GetMaxHeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult GetFontCollection(uint currentPosition, IDWriteFontCollection** fontCollection, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontCollection, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult GetFontFamilyNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult GetFontWeight(uint currentPosition, FontWeight* fontWeight, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontWeight, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult GetFontStyle(uint currentPosition, FontStyle* fontStyle, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontStyle, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult GetFontStretch(uint currentPosition, FontStretch* fontStretch, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontStretch, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult GetFontSize(uint currentPosition, float* fontSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult GetUnderline(uint currentPosition, Bool32* hasUnderline, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, hasUnderline, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult GetStrikethrough(uint currentPosition, Bool32* hasStrikethrough, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, hasStrikethrough, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult GetDrawingEffect(uint currentPosition, IUnknown** drawingEffect, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, drawingEffect, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult GetInlineObject(uint currentPosition, IDWriteInlineObject** inlineObject, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, inlineObject, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult GetTypography(uint currentPosition, IDWriteTypography** typography, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, typography, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult GetLocaleNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), clientDrawingContext, renderer, originX, originY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult GetLineMetrics(LineMetrics* lineMetrics, uint maxLineCount, uint* actualLineCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult GetMetrics(TextMetrics* textMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), textMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult GetOverhangMetrics(OverhangMetrics* overhangs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), overhangs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult GetClusterMetrics(ClusterMetrics* clusterMetrics, uint maxClusterCount, uint* actualClusterCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), clusterMetrics, maxClusterCount, actualClusterCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult DetermineMinWidth(float* minWidth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), minWidth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult HitTestPoint(float pointX, float pointY, Bool32* isTrailingHit, Bool32* isInside, HitTestMetrics* hitTestMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), pointX, pointY, isTrailingHit, isInside, hitTestMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult HitTestTextPosition(uint textPosition, Bool32 isTrailingHit, float* pointX, float* pointY, HitTestMetrics* hitTestMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), textPosition, isTrailingHit, pointX, pointY, hitTestMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult HitTestTextRange(uint textPosition, uint textLength, float originX, float originY, HitTestMetrics* hitTestMetrics, uint maxHitTestMetricsCount, uint* actualHitTestMetricsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), textPosition, textLength, originX, originY, hitTestMetrics, maxHitTestMetricsCount, actualHitTestMetricsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult SetPairKerning(Bool32 isPairKerningEnabled, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), isPairKerningEnabled, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public HResult GetPairKerning(uint currentPosition, Bool32* isPairKerningEnabled, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, isPairKerningEnabled, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public HResult SetCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult GetCharacterSpacing(uint currentPosition, float* leadingSpacing, float* trailingSpacing, float* minimumAdvanceWidth, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public HResult GetMetrics(TextMetrics1* textMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), textMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), glyphOrientation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public VerticalGlyphOrientation GetVerticalGlyphOrientation() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), isLastLineWrappingEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public Bool32 GetLastLineWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public HResult SetOpticalAlignment(OpticalAlignment opticalAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), opticalAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public OpticalAlignment GetOpticalAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public HResult SetFontFallback(IDWriteFontFallback* fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public HResult GetFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public HResult InvalidateLayout() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public HResult SetLineSpacing(LineSpacing* lineSpacingOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineSpacingOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public HResult GetLineSpacing(LineSpacing* lineSpacingOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineSpacingOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public HResult GetLineMetrics(LineMetrics1* lineMetrics, uint maxLineCount, uint* actualLineCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout4.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout4.cs new file mode 100644 index 0000000..fafe5b9 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextLayout4.cs @@ -0,0 +1,771 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextLayout4 +[Guid("05a9bf42-223f-4441-b5fb-8263685f55e9")] +[NativeTypeName("struct IDWriteTextLayout4 : IDWriteTextLayout3")] +[NativeInheritance("IDWriteTextLayout3")] +public unsafe partial struct IDWriteTextLayout4 +{ + public static ref readonly Guid IID_IDWriteTextLayout4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x42, 0xBF, 0xA9, 0x05, + 0x3F, 0x22, + 0x41, 0x44, + 0xB5, + 0xFB, + 0x82, + 0x63, + 0x68, + 0x5F, + 0x55, + 0xE9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextLayout4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetTextAlignment(TextAlignment textAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), textAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), paragraphAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetWordWrapping(WordWrapping wordWrapping) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), wordWrapping); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetReadingDirection(ReadingDirection readingDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), readingDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetFlowDirection(FlowDirection flowDirection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), flowDirection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetIncrementalTabStop(float incrementalTabStop) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), incrementalTabStop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public TextAlignment GetTextAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public ParagraphAlignment GetParagraphAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public WordWrapping GetWordWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public ReadingDirection GetReadingDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public FlowDirection GetFlowDirection() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public float GetIncrementalTabStop() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), trimmingOptions, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), lineSpacingMethod, lineSpacing, baseline); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFontCollection(IDWriteFontCollection** fontCollection) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetFontFamilyNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public FontWeight GetFontWeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public FontStyle GetFontStyle() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public FontStretch GetFontStretch() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public float GetFontSize() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public uint GetLocaleNameLength() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetLocaleName(ushort* localeName, uint nameSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), localeName, nameSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult SetMaxWidth(float maxWidth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), maxWidth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult SetMaxHeight(float maxHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), maxHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult SetFontCollection(IDWriteFontCollection* fontCollection, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontCollection, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult SetFontFamilyName(ushort* fontFamilyName, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontFamilyName, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult SetFontWeight(FontWeight fontWeight, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontWeight, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult SetFontStyle(FontStyle fontStyle, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontStyle, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult SetFontStretch(FontStretch fontStretch, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontStretch, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult SetFontSize(float fontSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetUnderline(Bool32 hasUnderline, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), hasUnderline, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult SetStrikethrough(Bool32 hasStrikethrough, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), hasStrikethrough, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult SetDrawingEffect(IUnknown* drawingEffect, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), drawingEffect, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult SetInlineObject(IDWriteInlineObject* inlineObject, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), inlineObject, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetTypography(IDWriteTypography* typography, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), typography, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult SetLocaleName(ushort* localeName, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), localeName, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public float GetMaxWidth() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public float GetMaxHeight() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[43]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult GetFontCollection(uint currentPosition, IDWriteFontCollection** fontCollection, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[44]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontCollection, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult GetFontFamilyNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[45]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[46]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult GetFontWeight(uint currentPosition, FontWeight* fontWeight, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[47]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontWeight, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult GetFontStyle(uint currentPosition, FontStyle* fontStyle, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[48]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontStyle, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult GetFontStretch(uint currentPosition, FontStretch* fontStretch, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[49]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontStretch, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult GetFontSize(uint currentPosition, float* fontSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[50]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult GetUnderline(uint currentPosition, Bool32* hasUnderline, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[51]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, hasUnderline, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult GetStrikethrough(uint currentPosition, Bool32* hasStrikethrough, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[52]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, hasStrikethrough, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult GetDrawingEffect(uint currentPosition, IUnknown** drawingEffect, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[53]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, drawingEffect, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult GetInlineObject(uint currentPosition, IDWriteInlineObject** inlineObject, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[54]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, inlineObject, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public HResult GetTypography(uint currentPosition, IDWriteTypography** typography, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[55]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, typography, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult GetLocaleNameLength(uint currentPosition, uint* nameLength, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[56]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, nameLength, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[57]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[58]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), clientDrawingContext, renderer, originX, originY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult GetLineMetrics(LineMetrics* lineMetrics, uint maxLineCount, uint* actualLineCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[59]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult GetMetrics(TextMetrics* textMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[60]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), textMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult GetOverhangMetrics(OverhangMetrics* overhangs) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[61]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), overhangs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(62)] + public HResult GetClusterMetrics(ClusterMetrics* clusterMetrics, uint maxClusterCount, uint* actualClusterCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[62]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), clusterMetrics, maxClusterCount, actualClusterCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult DetermineMinWidth(float* minWidth) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[63]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), minWidth); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult HitTestPoint(float pointX, float pointY, Bool32* isTrailingHit, Bool32* isInside, HitTestMetrics* hitTestMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[64]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), pointX, pointY, isTrailingHit, isInside, hitTestMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult HitTestTextPosition(uint textPosition, Bool32 isTrailingHit, float* pointX, float* pointY, HitTestMetrics* hitTestMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[65]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), textPosition, isTrailingHit, pointX, pointY, hitTestMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public HResult HitTestTextRange(uint textPosition, uint textLength, float originX, float originY, HitTestMetrics* hitTestMetrics, uint maxHitTestMetricsCount, uint* actualHitTestMetricsCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[66]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), textPosition, textLength, originX, originY, hitTestMetrics, maxHitTestMetricsCount, actualHitTestMetricsCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult SetPairKerning(Bool32 isPairKerningEnabled, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[67]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), isPairKerningEnabled, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public HResult GetPairKerning(uint currentPosition, Bool32* isPairKerningEnabled, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[68]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, isPairKerningEnabled, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public HResult SetCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[69]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult GetCharacterSpacing(uint currentPosition, float* leadingSpacing, float* trailingSpacing, float* minimumAdvanceWidth, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[70]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public HResult GetMetrics(TextMetrics1* textMetrics) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[71]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), textMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[72]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), glyphOrientation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public VerticalGlyphOrientation GetVerticalGlyphOrientation() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[73]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[74]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), isLastLineWrappingEnabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public Bool32 GetLastLineWrapping() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[75]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public HResult SetOpticalAlignment(OpticalAlignment opticalAlignment) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[76]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), opticalAlignment); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public OpticalAlignment GetOpticalAlignment() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[77]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public HResult SetFontFallback(IDWriteFontFallback* fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[78]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public HResult GetFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[79]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public HResult InvalidateLayout() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[80]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public HResult SetLineSpacing(LineSpacing* lineSpacingOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[81]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), lineSpacingOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public HResult GetLineSpacing(LineSpacing* lineSpacingOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[82]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), lineSpacingOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public HResult GetLineMetrics(LineMetrics1* lineMetrics, uint maxLineCount, uint* actualLineCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[83]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public HResult SetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[84]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public uint GetFontAxisValueCount(uint currentPosition) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[85]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public HResult GetFontAxisValues(uint currentPosition, FontAxisValue* fontAxisValues, uint fontAxisValueCount, TextRange* textRange) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[86]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontAxisValues, fontAxisValueCount, textRange); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public AutomaticFontAxes GetAutomaticFontAxes() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[87]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public HResult SetAutomaticFontAxes(AutomaticFontAxes automaticFontAxes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[88]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), automaticFontAxes); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextRenderer.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextRenderer.cs new file mode 100644 index 0000000..c2ca0dc --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextRenderer.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextRenderer +[Guid("ef8a8135-5cc6-45fe-8825-c5a0724eb819")] +[NativeTypeName("struct IDWriteTextRenderer : IDWritePixelSnapping")] +[NativeInheritance("IDWritePixelSnapping")] +public unsafe partial struct IDWriteTextRenderer +{ + public static ref readonly Guid IID_IDWriteTextRenderer + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x35, 0x81, 0x8A, 0xEF, + 0xC6, 0x5C, + 0xFE, 0x45, + 0x88, + 0x25, + 0xC5, + 0xA0, + 0x72, + 0x4E, + 0xB8, + 0x19 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextRenderer)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult IsPixelSnappingDisabled(void* clientDrawingContext, Bool32* isDisabled) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, isDisabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCurrentTransform(void* clientDrawingContext, Matrix* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPixelsPerDip(void* clientDrawingContext, float* pixelsPerDip) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, pixelsPerDip); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult DrawGlyphRun(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, measuringMode, glyphRun, glyphRunDescription, clientDrawingEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult DrawUnderline(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, Underline* underline, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, underline, clientDrawingEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult DrawStrikethrough(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, Strikethrough* strikethrough, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, strikethrough, clientDrawingEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult DrawInlineObject(void* clientDrawingContext, float originX, float originY, IDWriteInlineObject* inlineObject, Bool32 isSideways, Bool32 isRightToLeft, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, originX, originY, inlineObject, isSideways, isRightToLeft, clientDrawingEffect); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextRenderer1.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextRenderer1.cs new file mode 100644 index 0000000..f197e8d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTextRenderer1.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTextRenderer1 +[Guid("d3e0e934-22a0-427e-aae4-7d9574b59db1")] +[NativeTypeName("struct IDWriteTextRenderer1 : IDWriteTextRenderer")] +[NativeInheritance("IDWriteTextRenderer")] +public unsafe partial struct IDWriteTextRenderer1 +{ + public static ref readonly Guid IID_IDWriteTextRenderer1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x34, 0xE9, 0xE0, 0xD3, + 0xA0, 0x22, + 0x7E, 0x42, + 0xAA, + 0xE4, + 0x7D, + 0x95, + 0x74, + 0xB5, + 0x9D, + 0xB1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTextRenderer1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult IsPixelSnappingDisabled(void* clientDrawingContext, Bool32* isDisabled) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, isDisabled); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCurrentTransform(void* clientDrawingContext, Matrix* transform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPixelsPerDip(void* clientDrawingContext, float* pixelsPerDip) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, pixelsPerDip); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult DrawGlyphRun(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, measuringMode, glyphRun, glyphRunDescription, clientDrawingEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult DrawUnderline(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, Underline* underline, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, underline, clientDrawingEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult DrawStrikethrough(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, Strikethrough* strikethrough, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, strikethrough, clientDrawingEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult DrawInlineObject(void* clientDrawingContext, float originX, float originY, IDWriteInlineObject* inlineObject, Bool32 isSideways, Bool32 isRightToLeft, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, originX, originY, inlineObject, isSideways, isRightToLeft, clientDrawingEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult DrawGlyphRun(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, GlyphOrientationAngle orientationAngle, MeasuringMode measuringMode, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, orientationAngle, measuringMode, glyphRun, glyphRunDescription, clientDrawingEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult DrawUnderline(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, GlyphOrientationAngle orientationAngle, Underline* underline, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, orientationAngle, underline, clientDrawingEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult DrawStrikethrough(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, GlyphOrientationAngle orientationAngle, Strikethrough* strikethrough, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, baselineOriginX, baselineOriginY, orientationAngle, strikethrough, clientDrawingEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult DrawInlineObject(void* clientDrawingContext, float originX, float originY, GlyphOrientationAngle orientationAngle, IDWriteInlineObject* inlineObject, Bool32 isSideways, Bool32 isRightToLeft, IUnknown* clientDrawingEffect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, originX, originY, orientationAngle, inlineObject, isSideways, isRightToLeft, clientDrawingEffect); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTypography.cs b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTypography.cs new file mode 100644 index 0000000..5ff795a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/DirectWrite/IDWriteTypography.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteTypography +[Guid("55f1112b-1dc2-4b3c-9541-f46894ed85b6")] +[NativeTypeName("struct IDWriteTypography : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWriteTypography +{ + public static ref readonly Guid IID_IDWriteTypography + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2B, 0x11, 0xF1, 0x55, + 0xC2, 0x1D, + 0x3C, 0x4B, + 0x95, + 0x41, + 0xF4, + 0x68, + 0x94, + 0xED, + 0x85, + 0xB6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTypography)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult AddFontFeature(FontFeature* fontFeature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTypography*)Unsafe.AsPointer(ref this), fontFeature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public uint GetFontFeatureCount() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTypography*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetFontFeature(uint fontFeatureIndex, FontFeature* fontFeature) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteTypography*)Unsafe.AsPointer(ref this), fontFeatureIndex, fontFeature); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi.cs index 83fcc79..beb4351 100644 --- a/src/Vortice.Win32/Generated/Graphics/Dxgi.cs +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi.cs @@ -2427,8768 +2427,6 @@ public partial struct InfoQueueFilter #endregion Structs #region COM Types -/// -/// IDXGIObject -[Guid("aec22fb8-76f3-4639-9be0-28eb43a67a2e")] -[NativeTypeName("struct IDXGIObject : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDXGIObject -{ - public static ref readonly Guid IID_IDXGIObject - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB8, 0x2F, 0xC2, 0xAE, - 0xF3, 0x76, - 0x39, 0x46, - 0x9B, - 0xE0, - 0x28, - 0xEB, - 0x43, - 0xA6, - 0x7A, - 0x2E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIObject)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIObject*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIObject*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIObject*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIObject*)Unsafe.AsPointer(ref this), riid, ppParent); - } -} - -/// -/// IDXGIDeviceSubObject -[Guid("3d3e0379-f9de-4d58-bb6c-18d62992f1a6")] -[NativeTypeName("struct IDXGIDeviceSubObject : IDXGIObject")] -[NativeInheritance("IDXGIObject")] -public unsafe partial struct IDXGIDeviceSubObject -{ - public static ref readonly Guid IID_IDXGIDeviceSubObject - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x79, 0x03, 0x3E, 0x3D, - 0xDE, 0xF9, - 0x58, 0x4D, - 0xBB, - 0x6C, - 0x18, - 0xD6, - 0x29, - 0x92, - 0xF1, - 0xA6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDeviceSubObject)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDeviceSubObject*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDeviceSubObject*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDeviceSubObject*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDeviceSubObject*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDevice(Guid* riid, void** ppDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDeviceSubObject*)Unsafe.AsPointer(ref this), riid, ppDevice); - } -} - -/// -/// IDXGIResource -[Guid("035f3ab4-482e-4e50-b41f-8a7f8bd8960b")] -[NativeTypeName("struct IDXGIResource : IDXGIDeviceSubObject")] -[NativeInheritance("IDXGIDeviceSubObject")] -public unsafe partial struct IDXGIResource -{ - public static ref readonly Guid IID_IDXGIResource - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB4, 0x3A, 0x5F, 0x03, - 0x2E, 0x48, - 0x50, 0x4E, - 0xB4, - 0x1F, - 0x8A, - 0x7F, - 0x8B, - 0xD8, - 0x96, - 0x0B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIResource)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIResource*)Unsafe.AsPointer(ref this), riid, ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIResource*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIResource*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIResource*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIResource*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetSharedHandle(IntPtr* pSharedHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIResource*)Unsafe.AsPointer(ref this), pSharedHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetUsage(uint* pUsage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIResource*)Unsafe.AsPointer(ref this), pUsage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetEvictionPriority(ResourcePriority EvictionPriority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIResource*)Unsafe.AsPointer(ref this), EvictionPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetEvictionPriority(uint* pEvictionPriority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIResource*)Unsafe.AsPointer(ref this), pEvictionPriority); - } -} - -/// -/// IDXGIKeyedMutex -[Guid("9d8e1289-d7b3-465f-8126-250e349af85d")] -[NativeTypeName("struct IDXGIKeyedMutex : IDXGIDeviceSubObject")] -[NativeInheritance("IDXGIDeviceSubObject")] -public unsafe partial struct IDXGIKeyedMutex -{ - public static ref readonly Guid IID_IDXGIKeyedMutex - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x89, 0x12, 0x8E, 0x9D, - 0xB3, 0xD7, - 0x5F, 0x46, - 0x81, - 0x26, - 0x25, - 0x0E, - 0x34, - 0x9A, - 0xF8, - 0x5D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIKeyedMutex)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), riid, ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult AcquireSync(ulong Key, uint dwMilliseconds) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), Key, dwMilliseconds); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult ReleaseSync(ulong Key) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), Key); - } -} - -/// -/// IDXGISurface -[Guid("cafcb56c-6ac3-4889-bf47-9e23bbd260ec")] -[NativeTypeName("struct IDXGISurface : IDXGIDeviceSubObject")] -[NativeInheritance("IDXGIDeviceSubObject")] -public unsafe partial struct IDXGISurface -{ - public static ref readonly Guid IID_IDXGISurface - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6C, 0xB5, 0xFC, 0xCA, - 0xC3, 0x6A, - 0x89, 0x48, - 0xBF, - 0x47, - 0x9E, - 0x23, - 0xBB, - 0xD2, - 0x60, - 0xEC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISurface)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISurface*)Unsafe.AsPointer(ref this), riid, ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISurface*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISurface*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISurface*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISurface*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetDesc(SurfaceDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISurface*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult Map(MappedRect* pLockedRect, uint MapFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISurface*)Unsafe.AsPointer(ref this), pLockedRect, MapFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult Unmap() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISurface*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDXGISurface1 -[Guid("4ae63092-6327-4c1b-80ae-bfe12ea32b86")] -[NativeTypeName("struct IDXGISurface1 : IDXGISurface")] -[NativeInheritance("IDXGISurface")] -public unsafe partial struct IDXGISurface1 -{ - public static ref readonly Guid IID_IDXGISurface1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x92, 0x30, 0xE6, 0x4A, - 0x27, 0x63, - 0x1B, 0x4C, - 0x80, - 0xAE, - 0xBF, - 0xE1, - 0x2E, - 0xA3, - 0x2B, - 0x86 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISurface1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDesc(SurfaceDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISurface1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Map(MappedRect* pLockedRect, uint MapFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISurface1*)Unsafe.AsPointer(ref this), pLockedRect, MapFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult Unmap() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISurface1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDevice(Guid* riid, void** ppDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISurface1*)Unsafe.AsPointer(ref this), riid, ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISurface1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISurface1*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISurface1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISurface1*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetDC(Bool32 Discard, IntPtr* phdc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISurface1*)Unsafe.AsPointer(ref this), Discard, phdc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult ReleaseDC(RawRect* pDirtyRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISurface1*)Unsafe.AsPointer(ref this), pDirtyRect); - } -} - -/// -/// IDXGIAdapter -[Guid("2411e7e1-12ac-4ccf-bd14-9798e8534dc0")] -[NativeTypeName("struct IDXGIAdapter : IDXGIObject")] -[NativeInheritance("IDXGIObject")] -public unsafe partial struct IDXGIAdapter -{ - public static ref readonly Guid IID_IDXGIAdapter - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE1, 0xE7, 0x11, 0x24, - 0xAC, 0x12, - 0xCF, 0x4C, - 0xBD, - 0x14, - 0x97, - 0x98, - 0xE8, - 0x53, - 0x4D, - 0xC0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult EnumOutputs(uint Output, IDXGIOutput** ppOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), Output, ppOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetDesc(AdapterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CheckInterfaceSupport(Guid* InterfaceName, LargeInteger* pUMDVersion) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), InterfaceName, pUMDVersion); - } -} - -/// -/// IDXGIOutput -[Guid("ae02eedb-c735-4690-8d52-5a8dc20213aa")] -[NativeTypeName("struct IDXGIOutput : IDXGIObject")] -[NativeInheritance("IDXGIObject")] -public unsafe partial struct IDXGIOutput -{ - public static ref readonly Guid IID_IDXGIOutput - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDB, 0xEE, 0x02, 0xAE, - 0x35, 0xC7, - 0x90, 0x46, - 0x8D, - 0x52, - 0x5A, - 0x8D, - 0xC2, - 0x02, - 0x13, - 0xAA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDesc(OutputDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetDisplayModeList(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, Common.ModeDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult WaitForVBlank() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pDevice, Exclusive); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ReleaseOwnership() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pGammaCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pScanoutSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetFrameStatistics(FrameStatistics* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pStats); - } -} - -/// -/// IDXGISwapChain -[Guid("310d36a0-d2e7-4c0a-aa04-6a9d23b8886a")] -[NativeTypeName("struct IDXGISwapChain : IDXGIDeviceSubObject")] -[NativeInheritance("IDXGIDeviceSubObject")] -public unsafe partial struct IDXGISwapChain -{ - public static ref readonly Guid IID_IDXGISwapChain - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA0, 0x36, 0x0D, 0x31, - 0xE7, 0xD2, - 0x0A, 0x4C, - 0xAA, - 0x04, - 0x6A, - 0x9D, - 0x23, - 0xB8, - 0x88, - 0x6A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDevice(Guid* riid, void** ppDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), riid, ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Present(uint SyncInterval, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), SyncInterval, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetBuffer(uint Buffer, Guid* riid, void** ppSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), Buffer, riid, ppSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetFullscreenState(Bool32 Fullscreen, IDXGIOutput* pTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), Fullscreen, pTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFullscreenState(Bool32* pFullscreen, IDXGIOutput** ppTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), pFullscreen, ppTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetDesc(SwapChainDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult ResizeBuffers(uint BufferCount, uint Width, uint Height, Common.Format NewFormat, uint SwapChainFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, NewFormat, SwapChainFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult ResizeTarget(Common.ModeDescription* pNewTargetParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), pNewTargetParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetContainingOutput(IDXGIOutput** ppOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), ppOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetFrameStatistics(FrameStatistics* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), pStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetLastPresentCount(uint* pLastPresentCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), pLastPresentCount); - } -} - -/// -/// IDXGIFactory -[Guid("7b7166ec-21c7-44ae-b21a-c9ae321ae369")] -[NativeTypeName("struct IDXGIFactory : IDXGIObject")] -[NativeInheritance("IDXGIObject")] -public unsafe partial struct IDXGIFactory -{ - public static ref readonly Guid IID_IDXGIFactory - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEC, 0x66, 0x71, 0x7B, - 0xC7, 0x21, - 0xAE, 0x44, - 0xB2, - 0x1A, - 0xC9, - 0xAE, - 0x32, - 0x1A, - 0xE3, - 0x69 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory*)Unsafe.AsPointer(ref this), WindowHandle, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetWindowAssociation(IntPtr* pWindowHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory*)Unsafe.AsPointer(ref this), pWindowHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Module, ppAdapter); - } -} - -/// -/// IDXGIDevice -[Guid("54ec77fa-1377-44e6-8c32-88fd5f44c84c")] -[NativeTypeName("struct IDXGIDevice : IDXGIObject")] -[NativeInheritance("IDXGIObject")] -public unsafe partial struct IDXGIDevice -{ - public static ref readonly Guid IID_IDXGIDevice - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFA, 0x77, 0xEC, 0x54, - 0x77, 0x13, - 0xE6, 0x44, - 0x8C, - 0x32, - 0x88, - 0xFD, - 0x5F, - 0x44, - 0xC8, - 0x4C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDevice*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDevice*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDevice*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDevice*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetAdapter(IDXGIAdapter** pAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDevice*)Unsafe.AsPointer(ref this), pAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, Usage Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIDevice*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult QueryResourceResidency(IUnknown** ppResources, Residency* pResidencyStatus, uint NumResources) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIDevice*)Unsafe.AsPointer(ref this), ppResources, pResidencyStatus, NumResources); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetGPUThreadPriority(int Priority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIDevice*)Unsafe.AsPointer(ref this), Priority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetGPUThreadPriority(int* pPriority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIDevice*)Unsafe.AsPointer(ref this), pPriority); - } -} - -/// -/// IDXGIFactory1 -[Guid("770aae78-f26f-4dba-a829-253c83d1b387")] -[NativeTypeName("struct IDXGIFactory1 : IDXGIFactory")] -[NativeInheritance("IDXGIFactory")] -public unsafe partial struct IDXGIFactory1 -{ - public static ref readonly Guid IID_IDXGIFactory1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x78, 0xAE, 0x0A, 0x77, - 0x6F, 0xF2, - 0xBA, 0x4D, - 0xA8, - 0x29, - 0x25, - 0x3C, - 0x83, - 0xD1, - 0xB3, - 0x87 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), WindowHandle, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetWindowAssociation(IntPtr* pWindowHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), pWindowHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), Module, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public Bool32 IsCurrent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory1*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDXGIAdapter1 -[Guid("29038f61-3839-4626-91fd-086879011a05")] -[NativeTypeName("struct IDXGIAdapter1 : IDXGIAdapter")] -[NativeInheritance("IDXGIAdapter")] -public unsafe partial struct IDXGIAdapter1 -{ - public static ref readonly Guid IID_IDXGIAdapter1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x61, 0x8F, 0x03, 0x29, - 0x39, 0x38, - 0x26, 0x46, - 0x91, - 0xFD, - 0x08, - 0x68, - 0x79, - 0x01, - 0x1A, - 0x05 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult EnumOutputs(uint Output, IDXGIOutput** ppOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), Output, ppOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetDesc(AdapterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CheckInterfaceSupport(Guid* InterfaceName, LargeInteger* pUMDVersion) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), InterfaceName, pUMDVersion); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetDesc1(AdapterDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// IDXGIDevice1 -[Guid("77db970f-6276-48ba-ba28-070143b4392c")] -[NativeTypeName("struct IDXGIDevice1 : IDXGIDevice")] -[NativeInheritance("IDXGIDevice")] -public unsafe partial struct IDXGIDevice1 -{ - public static ref readonly Guid IID_IDXGIDevice1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0F, 0x97, 0xDB, 0x77, - 0x76, 0x62, - 0xBA, 0x48, - 0xBA, - 0x28, - 0x07, - 0x01, - 0x43, - 0xB4, - 0x39, - 0x2C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetAdapter(IDXGIAdapter** pAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), pAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, uint Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult QueryResourceResidency(IUnknown** ppResources, Residency* pResidencyStatus, uint NumResources) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), ppResources, pResidencyStatus, NumResources); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetGPUThreadPriority(int Priority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), Priority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetGPUThreadPriority(int* pPriority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), pPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetMaximumFrameLatency(uint MaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), MaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetMaximumFrameLatency(uint* pMaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), pMaxLatency); - } -} - -/// -/// IDXGIDisplayControl -[Guid("ea9dbf1a-c88e-4486-854a-98aa0138f30c")] -[NativeTypeName("struct IDXGIDisplayControl : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDXGIDisplayControl -{ - public static ref readonly Guid IID_IDXGIDisplayControl - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1A, 0xBF, 0x9D, 0xEA, - 0x8E, 0xC8, - 0x86, 0x44, - 0x85, - 0x4A, - 0x98, - 0xAA, - 0x01, - 0x38, - 0xF3, - 0x0C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDisplayControl)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Bool32 IsStereoEnabled() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDisplayControl*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void SetStereoEnabled(Bool32 enabled) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDisplayControl*)Unsafe.AsPointer(ref this), enabled); - } -} - -/// -/// IDXGIOutputDuplication -[Guid("191cfac3-a341-470d-b26e-a864f428319c")] -[NativeTypeName("struct IDXGIOutputDuplication : IDXGIObject")] -[NativeInheritance("IDXGIObject")] -public unsafe partial struct IDXGIOutputDuplication -{ - public static ref readonly Guid IID_IDXGIOutputDuplication - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC3, 0xFA, 0x1C, 0x19, - 0x41, 0xA3, - 0x0D, 0x47, - 0xB2, - 0x6E, - 0xA8, - 0x64, - 0xF4, - 0x28, - 0x31, - 0x9C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutputDuplication)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public void GetDesc(OutduplDescription* pDesc) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult AcquireNextFrame(uint TimeoutInMilliseconds, OutduplFrameInfo* pFrameInfo, IDXGIResource** ppDesktopResource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), TimeoutInMilliseconds, pFrameInfo, ppDesktopResource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetFrameDirtyRects(uint DirtyRectsBufferSize, RawRect* pDirtyRectsBuffer, uint* pDirtyRectsBufferSizeRequired) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), DirtyRectsBufferSize, pDirtyRectsBuffer, pDirtyRectsBufferSizeRequired); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetFrameMoveRects(uint MoveRectsBufferSize, OutduplMoveRect* pMoveRectBuffer, uint* pMoveRectsBufferSizeRequired) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), MoveRectsBufferSize, pMoveRectBuffer, pMoveRectsBufferSizeRequired); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFramePointerShape(uint PointerShapeBufferSize, void* pPointerShapeBuffer, uint* pPointerShapeBufferSizeRequired, OutduplPointerShapeInfo* pPointerShapeInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), PointerShapeBufferSize, pPointerShapeBuffer, pPointerShapeBufferSizeRequired, pPointerShapeInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult MapDesktopSurface(MappedRect* pLockedRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), pLockedRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult UnMapDesktopSurface() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult ReleaseFrame() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDXGISurface2 -[Guid("aba496dd-b617-4cb8-a866-bc44d7eb1fa2")] -[NativeTypeName("struct IDXGISurface2 : IDXGISurface1")] -[NativeInheritance("IDXGISurface1")] -public unsafe partial struct IDXGISurface2 -{ - public static ref readonly Guid IID_IDXGISurface2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDD, 0x96, 0xA4, 0xAB, - 0x17, 0xB6, - 0xB8, 0x4C, - 0xA8, - 0x66, - 0xBC, - 0x44, - 0xD7, - 0xEB, - 0x1F, - 0xA2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISurface2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDC(Bool32 Discard, IntPtr* phdc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISurface2*)Unsafe.AsPointer(ref this), Discard, phdc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult ReleaseDC(RawRect* pDirtyRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISurface2*)Unsafe.AsPointer(ref this), pDirtyRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetDesc(SurfaceDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISurface2*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult Map(MappedRect* pLockedRect, uint MapFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISurface2*)Unsafe.AsPointer(ref this), pLockedRect, MapFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult Unmap() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISurface2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetDevice(Guid* riid, void** ppDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISurface2*)Unsafe.AsPointer(ref this), riid, ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISurface2*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISurface2*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISurface2*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISurface2*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetResource(Guid* riid, void** ppParentResource, uint* pSubresourceIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGISurface2*)Unsafe.AsPointer(ref this), riid, ppParentResource, pSubresourceIndex); - } -} - -/// -/// IDXGIResource1 -[Guid("30961379-4609-4a41-998e-54fe567ee0c1")] -[NativeTypeName("struct IDXGIResource1 : IDXGIResource")] -[NativeInheritance("IDXGIResource")] -public unsafe partial struct IDXGIResource1 -{ - public static ref readonly Guid IID_IDXGIResource1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x79, 0x13, 0x96, 0x30, - 0x09, 0x46, - 0x41, 0x4A, - 0x99, - 0x8E, - 0x54, - 0xFE, - 0x56, - 0x7E, - 0xE0, - 0xC1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIResource1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSharedHandle(IntPtr* pSharedHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIResource1*)Unsafe.AsPointer(ref this), pSharedHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetUsage(uint* pUsage) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIResource1*)Unsafe.AsPointer(ref this), pUsage); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetEvictionPriority(ResourcePriority EvictionPriority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIResource1*)Unsafe.AsPointer(ref this), EvictionPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetEvictionPriority(uint* pEvictionPriority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIResource1*)Unsafe.AsPointer(ref this), pEvictionPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDevice(Guid* riid, void** ppDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIResource1*)Unsafe.AsPointer(ref this), riid, ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIResource1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIResource1*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIResource1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIResource1*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateSubresourceSurface(uint index, IDXGISurface2** ppSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIResource1*)Unsafe.AsPointer(ref this), index, ppSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateSharedHandle(Security.SECURITY_ATTRIBUTES* pAttributes, uint dwAccess, ushort* lpName, IntPtr* pHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIResource1*)Unsafe.AsPointer(ref this), pAttributes, dwAccess, lpName, pHandle); - } -} - -/// -/// IDXGIDevice2 -[Guid("05008617-fbfd-4051-a790-144884b4f6a9")] -[NativeTypeName("struct IDXGIDevice2 : IDXGIDevice1")] -[NativeInheritance("IDXGIDevice1")] -public unsafe partial struct IDXGIDevice2 -{ - public static ref readonly Guid IID_IDXGIDevice2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x17, 0x86, 0x00, 0x05, - 0xFD, 0xFB, - 0x51, 0x40, - 0xA7, - 0x90, - 0x14, - 0x48, - 0x84, - 0xB4, - 0xF6, - 0xA9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetMaximumFrameLatency(uint MaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), MaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetMaximumFrameLatency(uint* pMaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), pMaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetAdapter(IDXGIAdapter** pAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), pAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, uint Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult QueryResourceResidency(IUnknown** ppResources, Residency* pResidencyStatus, uint NumResources) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), ppResources, pResidencyStatus, NumResources); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetGPUThreadPriority(int Priority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), Priority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetGPUThreadPriority(int* pPriority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), pPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult OfferResources(uint NumResources, IDXGIResource** ppResources, OfferResourcePriority Priority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), NumResources, ppResources, Priority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult ReclaimResources(uint NumResources, IDXGIResource** ppResources, Bool32* pDiscarded) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), NumResources, ppResources, pDiscarded); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult EnqueueSetEvent(IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), hEvent); - } -} - -/// -/// IDXGISwapChain1 -[Guid("790a45f7-0d42-4876-983a-0a55cfe6f4aa")] -[NativeTypeName("struct IDXGISwapChain1 : IDXGISwapChain")] -[NativeInheritance("IDXGISwapChain")] -public unsafe partial struct IDXGISwapChain1 -{ - public static ref readonly Guid IID_IDXGISwapChain1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF7, 0x45, 0x0A, 0x79, - 0x42, 0x0D, - 0x76, 0x48, - 0x98, - 0x3A, - 0x0A, - 0x55, - 0xCF, - 0xE6, - 0xF4, - 0xAA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Present(uint SyncInterval, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), SyncInterval, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetBuffer(uint Buffer, Guid* riid, void** ppSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), Buffer, riid, ppSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetFullscreenState(Bool32 Fullscreen, IDXGIOutput* pTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), Fullscreen, pTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetFullscreenState(Bool32* pFullscreen, IDXGIOutput** ppTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pFullscreen, ppTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDesc(SwapChainDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult ResizeBuffers(uint BufferCount, uint Width, uint Height, Common.Format NewFormat, uint SwapChainFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, NewFormat, SwapChainFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult ResizeTarget(Common.ModeDescription* pNewTargetParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pNewTargetParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetContainingOutput(IDXGIOutput** ppOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), ppOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFrameStatistics(FrameStatistics* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetLastPresentCount(uint* pLastPresentCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pLastPresentCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetDevice(Guid* riid, void** ppDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), riid, ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetDesc1(SwapChainDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetFullscreenDesc(SwapChainFullscreenDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetHwnd(IntPtr* pHwnd) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pHwnd); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetCoreWindow(Guid* refiid, void** ppUnk) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), refiid, ppUnk); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public Bool32 IsTemporaryMonoSupported() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetRestrictToOutput(IDXGIOutput** ppRestrictToOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), ppRestrictToOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult SetBackgroundColor(Rgba* pColor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetBackgroundColor(Rgba* pColor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult SetRotation(Common.ModeRotation Rotation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), Rotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetRotation(Common.ModeRotation* pRotation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pRotation); - } -} - -/// -/// IDXGIFactory2 -[Guid("50c83a1c-e072-4c48-87b0-3630fa36a6d0")] -[NativeTypeName("struct IDXGIFactory2 : IDXGIFactory1")] -[NativeInheritance("IDXGIFactory1")] -public unsafe partial struct IDXGIFactory2 -{ - public static ref readonly Guid IID_IDXGIFactory2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1C, 0x3A, 0xC8, 0x50, - 0x72, 0xE0, - 0x48, 0x4C, - 0x87, - 0xB0, - 0x36, - 0x30, - 0xFA, - 0x36, - 0xA6, - 0xD0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public Bool32 IsCurrent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), WindowHandle, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetWindowAssociation(IntPtr* pWindowHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), pWindowHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), Module, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public Bool32 IsWindowedStereoEnabled() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateSwapChainForHwnd(IUnknown* pDevice, IntPtr hWnd, SwapChainDescription1* pDesc, SwapChainFullscreenDescription* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), pDevice, hWnd, pDesc, pFullscreenDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetSharedResourceAdapterLuid(IntPtr hResource, Luid* pLuid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), hResource, pLuid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult RegisterStereoStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult RegisterStereoStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public void UnregisterStereoStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult RegisterOcclusionStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult RegisterOcclusionStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void UnregisterOcclusionStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateSwapChainForComposition(IUnknown* pDevice, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); - } -} - -/// -/// IDXGIAdapter2 -[Guid("0aa1ae0a-fa0e-4b84-8644-e05ff8e5acb5")] -[NativeTypeName("struct IDXGIAdapter2 : IDXGIAdapter1")] -[NativeInheritance("IDXGIAdapter1")] -public unsafe partial struct IDXGIAdapter2 -{ - public static ref readonly Guid IID_IDXGIAdapter2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0A, 0xAE, 0xA1, 0x0A, - 0x0E, 0xFA, - 0x84, 0x4B, - 0x86, - 0x44, - 0xE0, - 0x5F, - 0xF8, - 0xE5, - 0xAC, - 0xB5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDesc1(AdapterDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult EnumOutputs(uint Output, IDXGIOutput** ppOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), Output, ppOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetDesc(AdapterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CheckInterfaceSupport(Guid* InterfaceName, LargeInteger* pUMDVersion) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), InterfaceName, pUMDVersion); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetDesc2(AdapterDescription2* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// IDXGIOutput1 -[Guid("00cddea8-939b-4b83-a340-a685226666cc")] -[NativeTypeName("struct IDXGIOutput1 : IDXGIOutput")] -[NativeInheritance("IDXGIOutput")] -public unsafe partial struct IDXGIOutput1 -{ - public static ref readonly Guid IID_IDXGIOutput1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA8, 0xDE, 0xCD, 0x00, - 0x9B, 0x93, - 0x83, 0x4B, - 0xA3, - 0x40, - 0xA6, - 0x85, - 0x22, - 0x66, - 0x66, - 0xCC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDesc(OutputDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult WaitForVBlank() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pDevice, Exclusive); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void ReleaseOwnership() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pGammaCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pScanoutSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetFrameStatistics(FrameStatistics* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetDisplaySurfaceData1(IDXGIResource* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult DuplicateOutput(IUnknown* pDevice, IDXGIOutputDuplication** ppOutputDuplication) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication); - } -} - -/// -/// IDXGIDevice3 -[Guid("6007896c-3244-4afd-bf18-a6d3beda5023")] -[NativeTypeName("struct IDXGIDevice3 : IDXGIDevice2")] -[NativeInheritance("IDXGIDevice2")] -public unsafe partial struct IDXGIDevice3 -{ - public static ref readonly Guid IID_IDXGIDevice3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6C, 0x89, 0x07, 0x60, - 0x44, 0x32, - 0xFD, 0x4A, - 0xBF, - 0x18, - 0xA6, - 0xD3, - 0xBE, - 0xDA, - 0x50, - 0x23 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult OfferResources(uint NumResources, IDXGIResource** ppResources, OfferResourcePriority Priority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), NumResources, ppResources, Priority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult ReclaimResources(uint NumResources, IDXGIResource** ppResources, Bool32* pDiscarded) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), NumResources, ppResources, pDiscarded); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult EnqueueSetEvent(IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetMaximumFrameLatency(uint MaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), MaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetMaximumFrameLatency(uint* pMaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), pMaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetAdapter(IDXGIAdapter** pAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), pAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, uint Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult QueryResourceResidency(IUnknown** ppResources, Residency* pResidencyStatus, uint NumResources) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), ppResources, pResidencyStatus, NumResources); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult SetGPUThreadPriority(int Priority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), Priority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetGPUThreadPriority(int* pPriority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), pPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void Trim() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIDevice3*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDXGISwapChain2 -[Guid("a8be2ac4-199f-4946-b331-79599fb98de7")] -[NativeTypeName("struct IDXGISwapChain2 : IDXGISwapChain1")] -[NativeInheritance("IDXGISwapChain1")] -public unsafe partial struct IDXGISwapChain2 -{ - public static ref readonly Guid IID_IDXGISwapChain2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC4, 0x2A, 0xBE, 0xA8, - 0x9F, 0x19, - 0x46, 0x49, - 0xB3, - 0x31, - 0x79, - 0x59, - 0x9F, - 0xB9, - 0x8D, - 0xE7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDesc1(SwapChainDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFullscreenDesc(SwapChainFullscreenDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetHwnd(IntPtr* pHwnd) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pHwnd); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetCoreWindow(Guid* refiid, void** ppUnk) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), refiid, ppUnk); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public Bool32 IsTemporaryMonoSupported() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetRestrictToOutput(IDXGIOutput** ppRestrictToOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), ppRestrictToOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetBackgroundColor(Rgba* pColor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetBackgroundColor(Rgba* pColor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetRotation(Common.ModeRotation Rotation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Rotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetRotation(Common.ModeRotation* pRotation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pRotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult Present(uint SyncInterval, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), SyncInterval, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetBuffer(uint Buffer, Guid* riid, void** ppSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Buffer, riid, ppSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetFullscreenState(Bool32 Fullscreen, IDXGIOutput* pTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Fullscreen, pTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetFullscreenState(Bool32* pFullscreen, IDXGIOutput** ppTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pFullscreen, ppTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetDesc(SwapChainDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult ResizeBuffers(uint BufferCount, uint Width, uint Height, Common.Format NewFormat, uint SwapChainFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, NewFormat, SwapChainFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult ResizeTarget(Common.ModeDescription* pNewTargetParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pNewTargetParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetContainingOutput(IDXGIOutput** ppOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), ppOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetFrameStatistics(FrameStatistics* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetLastPresentCount(uint* pLastPresentCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pLastPresentCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetDevice(Guid* riid, void** ppDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), riid, ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult SetSourceSize(uint Width, uint Height) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Width, Height); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult GetSourceSize(uint* pWidth, uint* pHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pWidth, pHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult SetMaximumFrameLatency(uint MaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), MaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetMaximumFrameLatency(uint* pMaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pMaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public IntPtr GetFrameLatencyWaitableObject() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult SetMatrixTransform(Matrix3x2F* pMatrix) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pMatrix); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetMatrixTransform(Matrix3x2F* pMatrix) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pMatrix); - } -} - -/// -/// IDXGIOutput2 -[Guid("595e39d1-2724-4663-99b1-da969de28364")] -[NativeTypeName("struct IDXGIOutput2 : IDXGIOutput1")] -[NativeInheritance("IDXGIOutput1")] -public unsafe partial struct IDXGIOutput2 -{ - public static ref readonly Guid IID_IDXGIOutput2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD1, 0x39, 0x5E, 0x59, - 0x24, 0x27, - 0x63, 0x46, - 0x99, - 0xB1, - 0xDA, - 0x96, - 0x9D, - 0xE2, - 0x83, - 0x64 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetDisplaySurfaceData1(IDXGIResource* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult DuplicateOutput(IUnknown* pDevice, IDXGIOutputDuplication** ppOutputDuplication) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDesc(OutputDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult WaitForVBlank() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pDevice, Exclusive); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void ReleaseOwnership() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput2*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pGammaCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pScanoutSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetFrameStatistics(FrameStatistics* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public Bool32 SupportsOverlays() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIOutput2*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDXGIFactory3 -[Guid("25483823-cd46-4c7d-86ca-47aa95b837bd")] -[NativeTypeName("struct IDXGIFactory3 : IDXGIFactory2")] -[NativeInheritance("IDXGIFactory2")] -public unsafe partial struct IDXGIFactory3 -{ - public static ref readonly Guid IID_IDXGIFactory3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x23, 0x38, 0x48, 0x25, - 0x46, 0xCD, - 0x7D, 0x4C, - 0x86, - 0xCA, - 0x47, - 0xAA, - 0x95, - 0xB8, - 0x37, - 0xBD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Bool32 IsWindowedStereoEnabled() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateSwapChainForHwnd(IUnknown* pDevice, IntPtr hWnd, SwapChainDescription1* pDesc, SwapChainFullscreenDescription* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), pDevice, hWnd, pDesc, pFullscreenDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetSharedResourceAdapterLuid(IntPtr hResource, Luid* pLuid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), hResource, pLuid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult RegisterStereoStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult RegisterStereoStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public void UnregisterStereoStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult RegisterOcclusionStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult RegisterOcclusionStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void UnregisterOcclusionStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateSwapChainForComposition(IUnknown* pDevice, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public Bool32 IsCurrent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIFactory3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), WindowHandle, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetWindowAssociation(IntPtr* pWindowHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), pWindowHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), Module, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public uint GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIFactory3*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDXGIDecodeSwapChain -[Guid("2633066b-4514-4c7a-8fd8-12ea98059d18")] -[NativeTypeName("struct IDXGIDecodeSwapChain : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDXGIDecodeSwapChain -{ - public static ref readonly Guid IID_IDXGIDecodeSwapChain - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6B, 0x06, 0x33, 0x26, - 0x14, 0x45, - 0x7A, 0x4C, - 0x8F, - 0xD8, - 0x12, - 0xEA, - 0x98, - 0x05, - 0x9D, - 0x18 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDecodeSwapChain)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult PresentBuffer(uint BufferToPresent, uint SyncInterval, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), BufferToPresent, SyncInterval, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetSourceRect(RawRect* pRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetTargetRect(RawRect* pRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetDestSize(uint Width, uint Height) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), Width, Height); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetSourceRect(RawRect* pRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetTargetRect(RawRect* pRect) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetDestSize(uint* pWidth, uint* pHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pWidth, pHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetColorSpace(MultiplaneOverlayYcbcrFlags ColorSpace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), ColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public MultiplaneOverlayYcbcrFlags GetColorSpace() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDXGIFactoryMedia -[Guid("41e7d1f2-a591-4f7b-a2e5-fa9c843e1c12")] -[NativeTypeName("struct IDXGIFactoryMedia : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDXGIFactoryMedia -{ - public static ref readonly Guid IID_IDXGIFactoryMedia - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF2, 0xD1, 0xE7, 0x41, - 0x91, 0xA5, - 0x7B, 0x4F, - 0xA2, - 0xE5, - 0xFA, - 0x9C, - 0x84, - 0x3E, - 0x1C, - 0x12 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactoryMedia)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateSwapChainForCompositionSurfaceHandle(IUnknown* pDevice, IntPtr hSurface, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactoryMedia*)Unsafe.AsPointer(ref this), pDevice, hSurface, pDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDecodeSwapChainForCompositionSurfaceHandle(IUnknown* pDevice, IntPtr hSurface, DecodeSwapChainDescription* pDesc, IDXGIResource* pYuvDecodeBuffers, IDXGIOutput* pRestrictToOutput, IDXGIDecodeSwapChain** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactoryMedia*)Unsafe.AsPointer(ref this), pDevice, hSurface, pDesc, pYuvDecodeBuffers, pRestrictToOutput, ppSwapChain); - } -} - -/// -/// IDXGISwapChainMedia -[Guid("dd95b90b-f05f-4f6a-bd65-25bfb264bd84")] -[NativeTypeName("struct IDXGISwapChainMedia : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDXGISwapChainMedia -{ - public static ref readonly Guid IID_IDXGISwapChainMedia - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0B, 0xB9, 0x95, 0xDD, - 0x5F, 0xF0, - 0x6A, 0x4F, - 0xBD, - 0x65, - 0x25, - 0xBF, - 0xB2, - 0x64, - 0xBD, - 0x84 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChainMedia)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetFrameStatisticsMedia(FrameStatisticsMedia* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISwapChainMedia*)Unsafe.AsPointer(ref this), pStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetPresentDuration(uint Duration) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISwapChainMedia*)Unsafe.AsPointer(ref this), Duration); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CheckPresentDurationSupport(uint DesiredPresentDuration, uint* pClosestSmallerPresentDuration, uint* pClosestLargerPresentDuration) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISwapChainMedia*)Unsafe.AsPointer(ref this), DesiredPresentDuration, pClosestSmallerPresentDuration, pClosestLargerPresentDuration); - } -} - -/// -/// IDXGIOutput3 -[Guid("8a6bb301-7e7e-41f4-a8e0-5b32f7f99b18")] -[NativeTypeName("struct IDXGIOutput3 : IDXGIOutput2")] -[NativeInheritance("IDXGIOutput2")] -public unsafe partial struct IDXGIOutput3 -{ - public static ref readonly Guid IID_IDXGIOutput3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x01, 0xB3, 0x6B, 0x8A, - 0x7E, 0x7E, - 0xF4, 0x41, - 0xA8, - 0xE0, - 0x5B, - 0x32, - 0xF7, - 0xF9, - 0x9B, - 0x18 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public Bool32 SupportsOverlays() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDisplaySurfaceData1(IDXGIResource* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult DuplicateOutput(IUnknown* pDevice, IDXGIOutputDuplication** ppOutputDuplication) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetDesc(OutputDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult WaitForVBlank() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pDevice, Exclusive); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void ReleaseOwnership() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pGammaCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pScanoutSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetFrameStatistics(FrameStatistics* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CheckOverlaySupport(Common.Format EnumFormat, IUnknown* pConcernedDevice, uint* pFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), EnumFormat, pConcernedDevice, pFlags); - } -} - -/// -/// IDXGISwapChain3 -[Guid("94d99bdb-f1f8-4ab0-b236-7da0170edab1")] -[NativeTypeName("struct IDXGISwapChain3 : IDXGISwapChain2")] -[NativeInheritance("IDXGISwapChain2")] -public unsafe partial struct IDXGISwapChain3 -{ - public static ref readonly Guid IID_IDXGISwapChain3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDB, 0x9B, 0xD9, 0x94, - 0xF8, 0xF1, - 0xB0, 0x4A, - 0xB2, - 0x36, - 0x7D, - 0xA0, - 0x17, - 0x0E, - 0xDA, - 0xB1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetSourceSize(uint Width, uint Height) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Width, Height); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetSourceSize(uint* pWidth, uint* pHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pWidth, pHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetMaximumFrameLatency(uint MaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), MaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetMaximumFrameLatency(uint* pMaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pMaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public IntPtr GetFrameLatencyWaitableObject() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetMatrixTransform(Matrix3x2F* pMatrix) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pMatrix); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetMatrixTransform(Matrix3x2F* pMatrix) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pMatrix); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetDesc1(SwapChainDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFullscreenDesc(SwapChainFullscreenDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetHwnd(IntPtr* pHwnd) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pHwnd); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetCoreWindow(Guid* refiid, void** ppUnk) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), refiid, ppUnk); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public Bool32 IsTemporaryMonoSupported() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetRestrictToOutput(IDXGIOutput** ppRestrictToOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), ppRestrictToOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult SetBackgroundColor(Rgba* pColor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetBackgroundColor(Rgba* pColor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult SetRotation(Common.ModeRotation Rotation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Rotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetRotation(Common.ModeRotation* pRotation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pRotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult Present(uint SyncInterval, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), SyncInterval, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetBuffer(uint Buffer, Guid* riid, void** ppSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Buffer, riid, ppSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult SetFullscreenState(Bool32 Fullscreen, IDXGIOutput* pTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Fullscreen, pTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetFullscreenState(Bool32* pFullscreen, IDXGIOutput** ppTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pFullscreen, ppTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetDesc(SwapChainDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult ResizeBuffers(uint BufferCount, uint Width, uint Height, Common.Format NewFormat, uint SwapChainFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, NewFormat, SwapChainFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult ResizeTarget(Common.ModeDescription* pNewTargetParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pNewTargetParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetContainingOutput(IDXGIOutput** ppOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), ppOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetFrameStatistics(FrameStatistics* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult GetLastPresentCount(uint* pLastPresentCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pLastPresentCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult GetDevice(Guid* riid, void** ppDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), riid, ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public uint GetCurrentBackBufferIndex() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult CheckColorSpaceSupport(Common.ColorSpaceType ColorSpace, uint* pColorSpaceSupport) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), ColorSpace, pColorSpaceSupport); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult SetColorSpace1(Common.ColorSpaceType ColorSpace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), ColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult ResizeBuffers1(uint BufferCount, uint Width, uint Height, Common.Format Format, uint SwapChainFlags, uint* pCreationNodeMask, IUnknown** ppPresentQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, Format, SwapChainFlags, pCreationNodeMask, ppPresentQueue); - } -} - -/// -/// IDXGIOutput4 -[Guid("dc7dca35-2196-414d-9f53-617884032a60")] -[NativeTypeName("struct IDXGIOutput4 : IDXGIOutput3")] -[NativeInheritance("IDXGIOutput3")] -public unsafe partial struct IDXGIOutput4 -{ - public static ref readonly Guid IID_IDXGIOutput4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x35, 0xCA, 0x7D, 0xDC, - 0x96, 0x21, - 0x4D, 0x41, - 0x9F, - 0x53, - 0x61, - 0x78, - 0x84, - 0x03, - 0x2A, - 0x60 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CheckOverlaySupport(Common.Format EnumFormat, IUnknown* pConcernedDevice, uint* pFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), EnumFormat, pConcernedDevice, pFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public Bool32 SupportsOverlays() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDisplaySurfaceData1(IDXGIResource* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult DuplicateOutput(IUnknown* pDevice, IDXGIOutputDuplication** ppOutputDuplication) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetDesc(OutputDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult WaitForVBlank() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pDevice, Exclusive); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void ReleaseOwnership() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pGammaCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pScanoutSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetFrameStatistics(FrameStatistics* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CheckOverlayColorSpaceSupport(Common.Format Format, Common.ColorSpaceType ColorSpace, IUnknown* pConcernedDevice, uint* pFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), Format, ColorSpace, pConcernedDevice, pFlags); - } -} - -/// -/// IDXGIFactory4 -[Guid("1bc6ea02-ef36-464f-bf0c-21ca39e5168a")] -[NativeTypeName("struct IDXGIFactory4 : IDXGIFactory3")] -[NativeInheritance("IDXGIFactory3")] -public unsafe partial struct IDXGIFactory4 -{ - public static ref readonly Guid IID_IDXGIFactory4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x02, 0xEA, 0xC6, 0x1B, - 0x36, 0xEF, - 0x4F, 0x46, - 0xBF, - 0x0C, - 0x21, - 0xCA, - 0x39, - 0xE5, - 0x16, - 0x8A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public Bool32 IsWindowedStereoEnabled() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateSwapChainForHwnd(IUnknown* pDevice, IntPtr hWnd, SwapChainDescription1* pDesc, SwapChainFullscreenDescription* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pDevice, hWnd, pDesc, pFullscreenDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetSharedResourceAdapterLuid(IntPtr hResource, Luid* pLuid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), hResource, pLuid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult RegisterStereoStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult RegisterStereoStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public void UnregisterStereoStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult RegisterOcclusionStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult RegisterOcclusionStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void UnregisterOcclusionStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateSwapChainForComposition(IUnknown* pDevice, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public Bool32 IsCurrent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), WindowHandle, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetWindowAssociation(IntPtr* pWindowHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pWindowHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Module, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult EnumAdapterByLuid(Luid AdapterLuid, Guid* riid, void** ppvAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), AdapterLuid, riid, ppvAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult EnumWarpAdapter(Guid* riid, void** ppvAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), riid, ppvAdapter); - } -} - -/// -/// IDXGIAdapter3 -[Guid("645967a4-1392-4310-a798-8053ce3e93fd")] -[NativeTypeName("struct IDXGIAdapter3 : IDXGIAdapter2")] -[NativeInheritance("IDXGIAdapter2")] -public unsafe partial struct IDXGIAdapter3 -{ - public static ref readonly Guid IID_IDXGIAdapter3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA4, 0x67, 0x59, 0x64, - 0x92, 0x13, - 0x10, 0x43, - 0xA7, - 0x98, - 0x80, - 0x53, - 0xCE, - 0x3E, - 0x93, - 0xFD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter3)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetDesc2(AdapterDescription2* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetDesc1(AdapterDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult EnumOutputs(uint Output, IDXGIOutput** ppOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), Output, ppOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDesc(AdapterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CheckInterfaceSupport(Guid* InterfaceName, LargeInteger* pUMDVersion) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), InterfaceName, pUMDVersion); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult RegisterHardwareContentProtectionTeardownStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void UnregisterHardwareContentProtectionTeardownStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult QueryVideoMemoryInfo(uint NodeIndex, MemorySegmentGroup MemorySegmentGroup, QueryVideoMemoryInfo* pVideoMemoryInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), NodeIndex, MemorySegmentGroup, pVideoMemoryInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetVideoMemoryReservation(uint NodeIndex, MemorySegmentGroup MemorySegmentGroup, ulong Reservation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), NodeIndex, MemorySegmentGroup, Reservation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult RegisterVideoMemoryBudgetChangeNotificationEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void UnregisterVideoMemoryBudgetChangeNotification(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), dwCookie); - } -} - -/// -/// IDXGIOutput5 -[Guid("80a07424-ab52-42eb-833c-0c42fd282d98")] -[NativeTypeName("struct IDXGIOutput5 : IDXGIOutput4")] -[NativeInheritance("IDXGIOutput4")] -public unsafe partial struct IDXGIOutput5 -{ - public static ref readonly Guid IID_IDXGIOutput5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0x74, 0xA0, 0x80, - 0x52, 0xAB, - 0xEB, 0x42, - 0x83, - 0x3C, - 0x0C, - 0x42, - 0xFD, - 0x28, - 0x2D, - 0x98 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput5)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CheckOverlayColorSpaceSupport(Common.Format Format, Common.ColorSpaceType ColorSpace, IUnknown* pConcernedDevice, uint* pFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), Format, ColorSpace, pConcernedDevice, pFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CheckOverlaySupport(Common.Format EnumFormat, IUnknown* pConcernedDevice, uint* pFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), EnumFormat, pConcernedDevice, pFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public Bool32 SupportsOverlays() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetDisplaySurfaceData1(IDXGIResource* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult DuplicateOutput(IUnknown* pDevice, IDXGIOutputDuplication** ppOutputDuplication) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetDesc(OutputDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult WaitForVBlank() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDevice, Exclusive); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void ReleaseOwnership() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pGammaCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult SetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pScanoutSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetFrameStatistics(FrameStatistics* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult DuplicateOutput1(IUnknown* pDevice, uint Flags, uint SupportedFormatsCount, Common.Format* pSupportedFormats, IDXGIOutputDuplication** ppOutputDuplication) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDevice, Flags, SupportedFormatsCount, pSupportedFormats, ppOutputDuplication); - } -} - -/// -/// IDXGISwapChain4 -[Guid("3d585d5a-bd4a-489e-b1f4-3dbcb6452ffb")] -[NativeTypeName("struct IDXGISwapChain4 : IDXGISwapChain3")] -[NativeInheritance("IDXGISwapChain3")] -public unsafe partial struct IDXGISwapChain4 -{ - public static ref readonly Guid IID_IDXGISwapChain4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5A, 0x5D, 0x58, 0x3D, - 0x4A, 0xBD, - 0x9E, 0x48, - 0xB1, - 0xF4, - 0x3D, - 0xBC, - 0xB6, - 0x45, - 0x2F, - 0xFB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public uint GetCurrentBackBufferIndex() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CheckColorSpaceSupport(Common.ColorSpaceType ColorSpace, uint* pColorSpaceSupport) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), ColorSpace, pColorSpaceSupport); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetColorSpace1(Common.ColorSpaceType ColorSpace) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), ColorSpace); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult ResizeBuffers1(uint BufferCount, uint Width, uint Height, Common.Format Format, uint SwapChainFlags, uint* pCreationNodeMask, IUnknown** ppPresentQueue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, Format, SwapChainFlags, pCreationNodeMask, ppPresentQueue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetSourceSize(uint Width, uint Height) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Width, Height); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetSourceSize(uint* pWidth, uint* pHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pWidth, pHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetMaximumFrameLatency(uint MaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), MaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetMaximumFrameLatency(uint* pMaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pMaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public IntPtr GetFrameLatencyWaitableObject() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetMatrixTransform(Matrix3x2F* pMatrix) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pMatrix); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetMatrixTransform(Matrix3x2F* pMatrix) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pMatrix); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetDesc1(SwapChainDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetFullscreenDesc(SwapChainFullscreenDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetHwnd(IntPtr* pHwnd) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pHwnd); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetCoreWindow(Guid* refiid, void** ppUnk) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), refiid, ppUnk); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public Bool32 IsTemporaryMonoSupported() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetRestrictToOutput(IDXGIOutput** ppRestrictToOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), ppRestrictToOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult SetBackgroundColor(Rgba* pColor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetBackgroundColor(Rgba* pColor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult SetRotation(Common.ModeRotation Rotation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Rotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetRotation(Common.ModeRotation* pRotation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pRotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult Present(uint SyncInterval, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), SyncInterval, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetBuffer(uint Buffer, Guid* riid, void** ppSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Buffer, riid, ppSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult SetFullscreenState(Bool32 Fullscreen, IDXGIOutput* pTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Fullscreen, pTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetFullscreenState(Bool32* pFullscreen, IDXGIOutput** ppTarget) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pFullscreen, ppTarget); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetDesc(SwapChainDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult ResizeBuffers(uint BufferCount, uint Width, uint Height, Common.Format NewFormat, uint SwapChainFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, NewFormat, SwapChainFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult ResizeTarget(Common.ModeDescription* pNewTargetParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pNewTargetParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetContainingOutput(IDXGIOutput** ppOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), ppOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult GetFrameStatistics(FrameStatistics* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetLastPresentCount(uint* pLastPresentCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pLastPresentCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult GetDevice(Guid* riid, void** ppDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), riid, ppDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult SetHDRMetaData(HdrMetadataType Type, uint Size, void* pMetaData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Type, Size, pMetaData); - } -} - -/// -/// IDXGIDevice4 -[Guid("95b4f95f-d8da-4ca4-9ee6-3b76d5968a10")] -[NativeTypeName("struct IDXGIDevice4 : IDXGIDevice3")] -[NativeInheritance("IDXGIDevice3")] -public unsafe partial struct IDXGIDevice4 -{ - public static ref readonly Guid IID_IDXGIDevice4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5F, 0xF9, 0xB4, 0x95, - 0xDA, 0xD8, - 0xA4, 0x4C, - 0x9E, - 0xE6, - 0x3B, - 0x76, - 0xD5, - 0x96, - 0x8A, - 0x10 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void Trim() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDevice4*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult OfferResources(uint NumResources, IDXGIResource** ppResources, OfferResourcePriority Priority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), NumResources, ppResources, Priority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult ReclaimResources(uint NumResources, IDXGIResource** ppResources, Bool32* pDiscarded) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), NumResources, ppResources, pDiscarded); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult EnqueueSetEvent(IntPtr hEvent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), hEvent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetMaximumFrameLatency(uint MaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), MaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetMaximumFrameLatency(uint* pMaxLatency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), pMaxLatency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetAdapter(IDXGIAdapter** pAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), pAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, uint Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult QueryResourceResidency(IUnknown** ppResources, Residency* pResidencyStatus, uint NumResources) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), ppResources, pResidencyStatus, NumResources); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult SetGPUThreadPriority(int Priority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), Priority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetGPUThreadPriority(int* pPriority) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), pPriority); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult OfferResources1(uint NumResources, IDXGIResource** ppResources, OfferResourcePriority Priority, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), NumResources, ppResources, Priority, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult ReclaimResources1(uint NumResources, IDXGIResource** ppResources, ReclaimResourceResults* pResults) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), NumResources, ppResources, pResults); - } -} - -/// -/// IDXGIFactory5 -[Guid("7632e1f5-ee65-4dca-87fd-84cd75f8838d")] -[NativeTypeName("struct IDXGIFactory5 : IDXGIFactory4")] -[NativeInheritance("IDXGIFactory4")] -public unsafe partial struct IDXGIFactory5 -{ - public static ref readonly Guid IID_IDXGIFactory5 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF5, 0xE1, 0x32, 0x76, - 0x65, 0xEE, - 0xCA, 0x4D, - 0x87, - 0xFD, - 0x84, - 0xCD, - 0x75, - 0xF8, - 0x83, - 0x8D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory5)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult EnumAdapterByLuid(Luid AdapterLuid, Guid* riid, void** ppvAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), AdapterLuid, riid, ppvAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult EnumWarpAdapter(Guid* riid, void** ppvAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), riid, ppvAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public uint GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public Bool32 IsWindowedStereoEnabled() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateSwapChainForHwnd(IUnknown* pDevice, IntPtr hWnd, SwapChainDescription1* pDesc, SwapChainFullscreenDescription* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), pDevice, hWnd, pDesc, pFullscreenDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetSharedResourceAdapterLuid(IntPtr hResource, Luid* pLuid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), hResource, pLuid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult RegisterStereoStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult RegisterStereoStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public void UnregisterStereoStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult RegisterOcclusionStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult RegisterOcclusionStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public void UnregisterOcclusionStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateSwapChainForComposition(IUnknown* pDevice, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public Bool32 IsCurrent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory5*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), WindowHandle, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetWindowAssociation(IntPtr* pWindowHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), pWindowHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Module, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } -} - -/// -/// IDXGIAdapter4 -[Guid("3c8d99d1-4fbf-4181-a82c-af66bf7bd24e")] -[NativeTypeName("struct IDXGIAdapter4 : IDXGIAdapter3")] -[NativeInheritance("IDXGIAdapter3")] -public unsafe partial struct IDXGIAdapter4 -{ - public static ref readonly Guid IID_IDXGIAdapter4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD1, 0x99, 0x8D, 0x3C, - 0xBF, 0x4F, - 0x81, 0x41, - 0xA8, - 0x2C, - 0xAF, - 0x66, - 0xBF, - 0x7B, - 0xD2, - 0x4E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter4)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult RegisterHardwareContentProtectionTeardownStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void UnregisterHardwareContentProtectionTeardownStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult QueryVideoMemoryInfo(uint NodeIndex, MemorySegmentGroup MemorySegmentGroup, QueryVideoMemoryInfo* pVideoMemoryInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), NodeIndex, MemorySegmentGroup, pVideoMemoryInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetVideoMemoryReservation(uint NodeIndex, MemorySegmentGroup MemorySegmentGroup, ulong Reservation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), NodeIndex, MemorySegmentGroup, Reservation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult RegisterVideoMemoryBudgetChangeNotificationEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public void UnregisterVideoMemoryBudgetChangeNotification(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetDesc2(AdapterDescription2* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetDesc1(AdapterDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult EnumOutputs(uint Output, IDXGIOutput** ppOutput) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), Output, ppOutput); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetDesc(AdapterDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CheckInterfaceSupport(Guid* InterfaceName, LargeInteger* pUMDVersion) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), InterfaceName, pUMDVersion); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetDesc3(AdapterDescription3* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), pDesc); - } -} - -/// -/// IDXGIOutput6 -[Guid("068346e8-aaec-4b84-add7-137f513f77a1")] -[NativeTypeName("struct IDXGIOutput6 : IDXGIOutput5")] -[NativeInheritance("IDXGIOutput5")] -public unsafe partial struct IDXGIOutput6 -{ - public static ref readonly Guid IID_IDXGIOutput6 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE8, 0x46, 0x83, 0x06, - 0xEC, 0xAA, - 0x84, 0x4B, - 0xAD, - 0xD7, - 0x13, - 0x7F, - 0x51, - 0x3F, - 0x77, - 0xA1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput6)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult DuplicateOutput1(IUnknown* pDevice, uint Flags, uint SupportedFormatsCount, Common.Format* pSupportedFormats, IDXGIOutputDuplication** ppOutputDuplication) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDevice, Flags, SupportedFormatsCount, pSupportedFormats, ppOutputDuplication); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CheckOverlayColorSpaceSupport(Common.Format Format, Common.ColorSpaceType ColorSpace, IUnknown* pConcernedDevice, uint* pFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), Format, ColorSpace, pConcernedDevice, pFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CheckOverlaySupport(Common.Format EnumFormat, IUnknown* pConcernedDevice, uint* pFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), EnumFormat, pConcernedDevice, pFlags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public Bool32 SupportsOverlays() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetDisplaySurfaceData1(IDXGIResource* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult DuplicateOutput(IUnknown* pDevice, IDXGIOutputDuplication** ppOutputDuplication) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetDesc(OutputDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult WaitForVBlank() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDevice, Exclusive); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void ReleaseOwnership() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pGammaCaps); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult SetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetGammaControl(Common.GammaControl* pArray) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pArray); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pScanoutSurface); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDestination); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetFrameStatistics(FrameStatistics* pStats) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pStats); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetDesc1(OutputDescription1* pDesc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDesc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CheckHardwareCompositionSupport(uint* pFlags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pFlags); - } -} - -/// -/// IDXGIFactory6 -[Guid("c1b6694f-ff09-44a9-b03c-77900a0a1d17")] -[NativeTypeName("struct IDXGIFactory6 : IDXGIFactory5")] -[NativeInheritance("IDXGIFactory5")] -public unsafe partial struct IDXGIFactory6 -{ - public static ref readonly Guid IID_IDXGIFactory6 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4F, 0x69, 0xB6, 0xC1, - 0x09, 0xFF, - 0xA9, 0x44, - 0xB0, - 0x3C, - 0x77, - 0x90, - 0x0A, - 0x0A, - 0x1D, - 0x17 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory6)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult EnumAdapterByLuid(Luid AdapterLuid, Guid* riid, void** ppvAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), AdapterLuid, riid, ppvAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult EnumWarpAdapter(Guid* riid, void** ppvAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), riid, ppvAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public uint GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public Bool32 IsWindowedStereoEnabled() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateSwapChainForHwnd(IUnknown* pDevice, IntPtr hWnd, SwapChainDescription1* pDesc, SwapChainFullscreenDescription* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), pDevice, hWnd, pDesc, pFullscreenDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetSharedResourceAdapterLuid(IntPtr hResource, Luid* pLuid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), hResource, pLuid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult RegisterStereoStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult RegisterStereoStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public void UnregisterStereoStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult RegisterOcclusionStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult RegisterOcclusionStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public void UnregisterOcclusionStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateSwapChainForComposition(IUnknown* pDevice, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public Bool32 IsCurrent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory6*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), WindowHandle, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetWindowAssociation(IntPtr* pWindowHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), pWindowHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Module, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult EnumAdapterByGpuPreference(uint Adapter, GpuPreference GpuPreference, Guid* riid, void** ppvAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Adapter, GpuPreference, riid, ppvAdapter); - } -} - -/// -/// IDXGIFactory7 -[Guid("a4966eed-76db-44da-84c1-ee9a7afb20a8")] -[NativeTypeName("struct IDXGIFactory7 : IDXGIFactory6")] -[NativeInheritance("IDXGIFactory6")] -public unsafe partial struct IDXGIFactory7 -{ - public static ref readonly Guid IID_IDXGIFactory7 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xED, 0x6E, 0x96, 0xA4, - 0xDB, 0x76, - 0xDA, 0x44, - 0x84, - 0xC1, - 0xEE, - 0x9A, - 0x7A, - 0xFB, - 0x20, - 0xA8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory7)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult EnumAdapterByGpuPreference(uint Adapter, GpuPreference GpuPreference, Guid* riid, void** ppvAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Adapter, GpuPreference, riid, ppvAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult EnumAdapterByLuid(Luid AdapterLuid, Guid* riid, void** ppvAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), AdapterLuid, riid, ppvAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult EnumWarpAdapter(Guid* riid, void** ppvAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), riid, ppvAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public uint GetCreationFlags() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory7*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public Bool32 IsWindowedStereoEnabled() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory7*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateSwapChainForHwnd(IUnknown* pDevice, IntPtr hWnd, SwapChainDescription1* pDesc, SwapChainFullscreenDescription* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), pDevice, hWnd, pDesc, pFullscreenDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetSharedResourceAdapterLuid(IntPtr hResource, Luid* pLuid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), hResource, pLuid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult RegisterStereoStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult RegisterStereoStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void UnregisterStereoStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult RegisterOcclusionStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult RegisterOcclusionStatusEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public void UnregisterOcclusionStatus(uint dwCookie) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), dwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateSwapChainForComposition(IUnknown* pDevice, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public Bool32 IsCurrent() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory7*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), WindowHandle, Flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetWindowAssociation(IntPtr* pWindowHandle) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), pWindowHandle); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Module, ppAdapter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Name, DataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Name, pUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult GetParent(Guid* riid, void** ppParent) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), riid, ppParent); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult RegisterAdaptersChangedEvent(IntPtr hEvent, uint* pdwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult UnregisterAdaptersChangedEvent(uint dwCookie) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), dwCookie); - } -} - -/// -/// IDXGIInfoQueue -[Guid("d67441c7-672a-476f-9e82-cd55b44949ce")] -[NativeTypeName("struct IDXGIInfoQueue : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDXGIInfoQueue -{ - public static ref readonly Guid IID_IDXGIInfoQueue - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC7, 0x41, 0x74, 0xD6, - 0x2A, 0x67, - 0x6F, 0x47, - 0x9E, - 0x82, - 0xCD, - 0x55, - 0xB4, - 0x49, - 0x49, - 0xCE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIInfoQueue)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetMessageCountLimit(Guid Producer, ulong MessageCountLimit) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, MessageCountLimit); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void ClearStoredMessages(Guid Producer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetMessage(Guid Producer, ulong MessageIndex, InfoQueueMessage* pMessage, nuint* pMessageByteLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, MessageIndex, pMessage, pMessageByteLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public ulong GetNumStoredMessagesAllowedByRetrievalFilters(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public ulong GetNumStoredMessages(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public ulong GetNumMessagesDiscardedByMessageCountLimit(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public ulong GetMessageCountLimit(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public ulong GetNumMessagesAllowedByStorageFilter(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public ulong GetNumMessagesDeniedByStorageFilter(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult AddStorageFilterEntries(Guid Producer, InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetStorageFilter(Guid Producer, InfoQueueFilter* pFilter, nuint* pFilterByteLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, pFilter, pFilterByteLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public void ClearStorageFilter(Guid Producer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult PushEmptyStorageFilter(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult PushDenyAllStorageFilter(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult PushCopyOfStorageFilter(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult PushStorageFilter(Guid Producer, InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public void PopStorageFilter(Guid Producer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public uint GetStorageFilterStackSize(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult AddRetrievalFilterEntries(Guid Producer, InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetRetrievalFilter(Guid Producer, InfoQueueFilter* pFilter, nuint* pFilterByteLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, pFilter, pFilterByteLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public void ClearRetrievalFilter(Guid Producer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult PushEmptyRetrievalFilter(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult PushDenyAllRetrievalFilter(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult PushCopyOfRetrievalFilter(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult PushRetrievalFilter(Guid Producer, InfoQueueFilter* pFilter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, pFilter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public void PopRetrievalFilter(Guid Producer) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public uint GetRetrievalFilterStackSize(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult AddMessage(Guid Producer, InfoQueueMessageCategory Category, InfoQueueMessageSeverity Severity, int ID, sbyte* pDescription) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, Category, Severity, ID, pDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult AddApplicationMessage(InfoQueueMessageSeverity Severity, sbyte* pDescription) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Severity, pDescription); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult SetBreakOnCategory(Guid Producer, InfoQueueMessageCategory Category, Bool32 bEnable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, Category, bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult SetBreakOnSeverity(Guid Producer, InfoQueueMessageSeverity Severity, Bool32 bEnable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, Severity, bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult SetBreakOnID(Guid Producer, int ID, Bool32 bEnable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, ID, bEnable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public Bool32 GetBreakOnCategory(Guid Producer, InfoQueueMessageCategory Category) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, Category); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public Bool32 GetBreakOnSeverity(Guid Producer, InfoQueueMessageSeverity Severity) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, Severity); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public Bool32 GetBreakOnID(Guid Producer, int ID) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, ID); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public void SetMuteDebugOutput(Guid Producer, Bool32 bMute) - { - ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, bMute); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public Bool32 GetMuteDebugOutput(Guid Producer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); - } -} - -/// -/// IDXGIDebug -[Guid("119e7452-de9e-40fe-8806-88f90c12b441")] -[NativeTypeName("struct IDXGIDebug : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDXGIDebug -{ - public static ref readonly Guid IID_IDXGIDebug - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x52, 0x74, 0x9E, 0x11, - 0x9E, 0xDE, - 0xFE, 0x40, - 0x88, - 0x06, - 0x88, - 0xF9, - 0x0C, - 0x12, - 0xB4, - 0x41 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDebug)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult ReportLiveObjects(Guid apiid, DebugRloFlags flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDebug*)Unsafe.AsPointer(ref this), apiid, flags); - } -} - -/// -/// IDXGIDebug1 -[Guid("c5a05f0c-16f2-4adf-9f4d-a8c4d58ac550")] -[NativeTypeName("struct IDXGIDebug1 : IDXGIDebug")] -[NativeInheritance("IDXGIDebug")] -public unsafe partial struct IDXGIDebug1 -{ - public static ref readonly Guid IID_IDXGIDebug1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0C, 0x5F, 0xA0, 0xC5, - 0xF2, 0x16, - 0xDF, 0x4A, - 0x9F, - 0x4D, - 0xA8, - 0xC4, - 0xD5, - 0x8A, - 0xC5, - 0x50 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDebug1)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult ReportLiveObjects(Guid apiid, DebugRloFlags flags) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDebug1*)Unsafe.AsPointer(ref this), apiid, flags); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void EnableLeakTrackingForThread() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDebug1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void DisableLeakTrackingForThread() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDebug1*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public Bool32 IsLeakTrackingEnabledForThread() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDebug1*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IDXGraphicsAnalysis -[Guid("9f251514-9d4d-4902-9d60-18988ab7d4b5")] -[NativeTypeName("struct IDXGraphicsAnalysis : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IDXGraphicsAnalysis -{ - public static ref readonly Guid IID_IDXGraphicsAnalysis - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x14, 0x15, 0x25, 0x9F, - 0x4D, 0x9D, - 0x02, 0x49, - 0x9D, - 0x60, - 0x18, - 0x98, - 0x8A, - 0xB7, - 0xD4, - 0xB5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGraphicsAnalysis)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public void BeginCapture() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGraphicsAnalysis*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public void EndCapture() - { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGraphicsAnalysis*)Unsafe.AsPointer(ref this)); - } -} - #endregion Com Types #region Functions diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter.cs new file mode 100644 index 0000000..2a013f2 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIAdapter +[Guid("2411e7e1-12ac-4ccf-bd14-9798e8534dc0")] +[NativeTypeName("struct IDXGIAdapter : IDXGIObject")] +[NativeInheritance("IDXGIObject")] +public unsafe partial struct IDXGIAdapter +{ + public static ref readonly Guid IID_IDXGIAdapter + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE1, 0xE7, 0x11, 0x24, + 0xAC, 0x12, + 0xCF, 0x4C, + 0xBD, + 0x14, + 0x97, + 0x98, + 0xE8, + 0x53, + 0x4D, + 0xC0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumOutputs(uint Output, IDXGIOutput** ppOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), Output, ppOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDesc(AdapterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CheckInterfaceSupport(Guid* InterfaceName, LargeInteger* pUMDVersion) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), InterfaceName, pUMDVersion); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter1.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter1.cs new file mode 100644 index 0000000..450838e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter1.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIAdapter1 +[Guid("29038f61-3839-4626-91fd-086879011a05")] +[NativeTypeName("struct IDXGIAdapter1 : IDXGIAdapter")] +[NativeInheritance("IDXGIAdapter")] +public unsafe partial struct IDXGIAdapter1 +{ + public static ref readonly Guid IID_IDXGIAdapter1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x61, 0x8F, 0x03, 0x29, + 0x39, 0x38, + 0x26, 0x46, + 0x91, + 0xFD, + 0x08, + 0x68, + 0x79, + 0x01, + 0x1A, + 0x05 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumOutputs(uint Output, IDXGIOutput** ppOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), Output, ppOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDesc(AdapterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CheckInterfaceSupport(Guid* InterfaceName, LargeInteger* pUMDVersion) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), InterfaceName, pUMDVersion); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDesc1(AdapterDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter2.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter2.cs new file mode 100644 index 0000000..525461f --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter2.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIAdapter2 +[Guid("0aa1ae0a-fa0e-4b84-8644-e05ff8e5acb5")] +[NativeTypeName("struct IDXGIAdapter2 : IDXGIAdapter1")] +[NativeInheritance("IDXGIAdapter1")] +public unsafe partial struct IDXGIAdapter2 +{ + public static ref readonly Guid IID_IDXGIAdapter2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0A, 0xAE, 0xA1, 0x0A, + 0x0E, 0xFA, + 0x84, 0x4B, + 0x86, + 0x44, + 0xE0, + 0x5F, + 0xF8, + 0xE5, + 0xAC, + 0xB5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumOutputs(uint Output, IDXGIOutput** ppOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), Output, ppOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDesc(AdapterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CheckInterfaceSupport(Guid* InterfaceName, LargeInteger* pUMDVersion) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), InterfaceName, pUMDVersion); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDesc1(AdapterDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetDesc2(AdapterDescription2* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter3.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter3.cs new file mode 100644 index 0000000..a7d28aa --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter3.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIAdapter3 +[Guid("645967a4-1392-4310-a798-8053ce3e93fd")] +[NativeTypeName("struct IDXGIAdapter3 : IDXGIAdapter2")] +[NativeInheritance("IDXGIAdapter2")] +public unsafe partial struct IDXGIAdapter3 +{ + public static ref readonly Guid IID_IDXGIAdapter3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA4, 0x67, 0x59, 0x64, + 0x92, 0x13, + 0x10, 0x43, + 0xA7, + 0x98, + 0x80, + 0x53, + 0xCE, + 0x3E, + 0x93, + 0xFD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumOutputs(uint Output, IDXGIOutput** ppOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), Output, ppOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDesc(AdapterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CheckInterfaceSupport(Guid* InterfaceName, LargeInteger* pUMDVersion) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), InterfaceName, pUMDVersion); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDesc1(AdapterDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetDesc2(AdapterDescription2* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult RegisterHardwareContentProtectionTeardownStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void UnregisterHardwareContentProtectionTeardownStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult QueryVideoMemoryInfo(uint NodeIndex, MemorySegmentGroup MemorySegmentGroup, QueryVideoMemoryInfo* pVideoMemoryInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), NodeIndex, MemorySegmentGroup, pVideoMemoryInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult SetVideoMemoryReservation(uint NodeIndex, MemorySegmentGroup MemorySegmentGroup, ulong Reservation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), NodeIndex, MemorySegmentGroup, Reservation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult RegisterVideoMemoryBudgetChangeNotificationEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void UnregisterVideoMemoryBudgetChangeNotification(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), dwCookie); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter4.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter4.cs new file mode 100644 index 0000000..8f169ec --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIAdapter4.cs @@ -0,0 +1,211 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIAdapter4 +[Guid("3c8d99d1-4fbf-4181-a82c-af66bf7bd24e")] +[NativeTypeName("struct IDXGIAdapter4 : IDXGIAdapter3")] +[NativeInheritance("IDXGIAdapter3")] +public unsafe partial struct IDXGIAdapter4 +{ + public static ref readonly Guid IID_IDXGIAdapter4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD1, 0x99, 0x8D, 0x3C, + 0xBF, 0x4F, + 0x81, 0x41, + 0xA8, + 0x2C, + 0xAF, + 0x66, + 0xBF, + 0x7B, + 0xD2, + 0x4E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIAdapter4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumOutputs(uint Output, IDXGIOutput** ppOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), Output, ppOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDesc(AdapterDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CheckInterfaceSupport(Guid* InterfaceName, LargeInteger* pUMDVersion) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), InterfaceName, pUMDVersion); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDesc1(AdapterDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetDesc2(AdapterDescription2* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult RegisterHardwareContentProtectionTeardownStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void UnregisterHardwareContentProtectionTeardownStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult QueryVideoMemoryInfo(uint NodeIndex, MemorySegmentGroup MemorySegmentGroup, QueryVideoMemoryInfo* pVideoMemoryInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), NodeIndex, MemorySegmentGroup, pVideoMemoryInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult SetVideoMemoryReservation(uint NodeIndex, MemorySegmentGroup MemorySegmentGroup, ulong Reservation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), NodeIndex, MemorySegmentGroup, Reservation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult RegisterVideoMemoryBudgetChangeNotificationEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void UnregisterVideoMemoryBudgetChangeNotification(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetDesc3(AdapterDescription3* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), pDesc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDebug.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDebug.cs new file mode 100644 index 0000000..6aa2582 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDebug.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIDebug +[Guid("119e7452-de9e-40fe-8806-88f90c12b441")] +[NativeTypeName("struct IDXGIDebug : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDXGIDebug +{ + public static ref readonly Guid IID_IDXGIDebug + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x52, 0x74, 0x9E, 0x11, + 0x9E, 0xDE, + 0xFE, 0x40, + 0x88, + 0x06, + 0x88, + 0xF9, + 0x0C, + 0x12, + 0xB4, + 0x41 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDebug)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReportLiveObjects(Guid apiid, DebugRloFlags flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDebug*)Unsafe.AsPointer(ref this), apiid, flags); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDebug1.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDebug1.cs new file mode 100644 index 0000000..8b9a075 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDebug1.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIDebug1 +[Guid("c5a05f0c-16f2-4adf-9f4d-a8c4d58ac550")] +[NativeTypeName("struct IDXGIDebug1 : IDXGIDebug")] +[NativeInheritance("IDXGIDebug")] +public unsafe partial struct IDXGIDebug1 +{ + public static ref readonly Guid IID_IDXGIDebug1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0C, 0x5F, 0xA0, 0xC5, + 0xF2, 0x16, + 0xDF, 0x4A, + 0x9F, + 0x4D, + 0xA8, + 0xC4, + 0xD5, + 0x8A, + 0xC5, + 0x50 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDebug1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReportLiveObjects(Guid apiid, DebugRloFlags flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDebug1*)Unsafe.AsPointer(ref this), apiid, flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void EnableLeakTrackingForThread() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDebug1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void DisableLeakTrackingForThread() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDebug1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public Bool32 IsLeakTrackingEnabledForThread() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDebug1*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDecodeSwapChain.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDecodeSwapChain.cs new file mode 100644 index 0000000..c1c6c01 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDecodeSwapChain.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIDecodeSwapChain +[Guid("2633066b-4514-4c7a-8fd8-12ea98059d18")] +[NativeTypeName("struct IDXGIDecodeSwapChain : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDXGIDecodeSwapChain +{ + public static ref readonly Guid IID_IDXGIDecodeSwapChain + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6B, 0x06, 0x33, 0x26, + 0x14, 0x45, + 0x7A, 0x4C, + 0x8F, + 0xD8, + 0x12, + 0xEA, + 0x98, + 0x05, + 0x9D, + 0x18 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDecodeSwapChain)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult PresentBuffer(uint BufferToPresent, uint SyncInterval, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), BufferToPresent, SyncInterval, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetSourceRect(RawRect* pRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetTargetRect(RawRect* pRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetDestSize(uint Width, uint Height) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), Width, Height); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetSourceRect(RawRect* pRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetTargetRect(RawRect* pRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetDestSize(uint* pWidth, uint* pHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pWidth, pHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetColorSpace(MultiplaneOverlayYcbcrFlags ColorSpace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), ColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public MultiplaneOverlayYcbcrFlags GetColorSpace() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice.cs new file mode 100644 index 0000000..1bb2d68 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIDevice +[Guid("54ec77fa-1377-44e6-8c32-88fd5f44c84c")] +[NativeTypeName("struct IDXGIDevice : IDXGIObject")] +[NativeInheritance("IDXGIObject")] +public unsafe partial struct IDXGIDevice +{ + public static ref readonly Guid IID_IDXGIDevice + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFA, 0x77, 0xEC, 0x54, + 0x77, 0x13, + 0xE6, 0x44, + 0x8C, + 0x32, + 0x88, + 0xFD, + 0x5F, + 0x44, + 0xC8, + 0x4C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDevice*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDevice*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDevice*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDevice*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetAdapter(IDXGIAdapter** pAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDevice*)Unsafe.AsPointer(ref this), pAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, Usage Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIDevice*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult QueryResourceResidency(IUnknown** ppResources, Residency* pResidencyStatus, uint NumResources) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIDevice*)Unsafe.AsPointer(ref this), ppResources, pResidencyStatus, NumResources); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetGPUThreadPriority(int Priority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIDevice*)Unsafe.AsPointer(ref this), Priority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGPUThreadPriority(int* pPriority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIDevice*)Unsafe.AsPointer(ref this), pPriority); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice1.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice1.cs new file mode 100644 index 0000000..63d54ac --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice1.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIDevice1 +[Guid("77db970f-6276-48ba-ba28-070143b4392c")] +[NativeTypeName("struct IDXGIDevice1 : IDXGIDevice")] +[NativeInheritance("IDXGIDevice")] +public unsafe partial struct IDXGIDevice1 +{ + public static ref readonly Guid IID_IDXGIDevice1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0F, 0x97, 0xDB, 0x77, + 0x76, 0x62, + 0xBA, 0x48, + 0xBA, + 0x28, + 0x07, + 0x01, + 0x43, + 0xB4, + 0x39, + 0x2C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetAdapter(IDXGIAdapter** pAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), pAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, uint Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult QueryResourceResidency(IUnknown** ppResources, Residency* pResidencyStatus, uint NumResources) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), ppResources, pResidencyStatus, NumResources); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetGPUThreadPriority(int Priority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), Priority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGPUThreadPriority(int* pPriority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), pPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult SetMaximumFrameLatency(uint MaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), MaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetMaximumFrameLatency(uint* pMaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), pMaxLatency); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice2.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice2.cs new file mode 100644 index 0000000..90c3da6 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice2.cs @@ -0,0 +1,195 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIDevice2 +[Guid("05008617-fbfd-4051-a790-144884b4f6a9")] +[NativeTypeName("struct IDXGIDevice2 : IDXGIDevice1")] +[NativeInheritance("IDXGIDevice1")] +public unsafe partial struct IDXGIDevice2 +{ + public static ref readonly Guid IID_IDXGIDevice2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x17, 0x86, 0x00, 0x05, + 0xFD, 0xFB, + 0x51, 0x40, + 0xA7, + 0x90, + 0x14, + 0x48, + 0x84, + 0xB4, + 0xF6, + 0xA9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetAdapter(IDXGIAdapter** pAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), pAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, uint Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult QueryResourceResidency(IUnknown** ppResources, Residency* pResidencyStatus, uint NumResources) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), ppResources, pResidencyStatus, NumResources); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetGPUThreadPriority(int Priority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), Priority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGPUThreadPriority(int* pPriority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), pPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult SetMaximumFrameLatency(uint MaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), MaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetMaximumFrameLatency(uint* pMaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), pMaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult OfferResources(uint NumResources, IDXGIResource** ppResources, OfferResourcePriority Priority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), NumResources, ppResources, Priority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult ReclaimResources(uint NumResources, IDXGIResource** ppResources, Bool32* pDiscarded) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), NumResources, ppResources, pDiscarded); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult EnqueueSetEvent(IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), hEvent); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice3.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice3.cs new file mode 100644 index 0000000..d5f179d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice3.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIDevice3 +[Guid("6007896c-3244-4afd-bf18-a6d3beda5023")] +[NativeTypeName("struct IDXGIDevice3 : IDXGIDevice2")] +[NativeInheritance("IDXGIDevice2")] +public unsafe partial struct IDXGIDevice3 +{ + public static ref readonly Guid IID_IDXGIDevice3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6C, 0x89, 0x07, 0x60, + 0x44, 0x32, + 0xFD, 0x4A, + 0xBF, + 0x18, + 0xA6, + 0xD3, + 0xBE, + 0xDA, + 0x50, + 0x23 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetAdapter(IDXGIAdapter** pAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), pAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, uint Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult QueryResourceResidency(IUnknown** ppResources, Residency* pResidencyStatus, uint NumResources) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), ppResources, pResidencyStatus, NumResources); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetGPUThreadPriority(int Priority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), Priority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGPUThreadPriority(int* pPriority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), pPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult SetMaximumFrameLatency(uint MaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), MaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetMaximumFrameLatency(uint* pMaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), pMaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult OfferResources(uint NumResources, IDXGIResource** ppResources, OfferResourcePriority Priority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), NumResources, ppResources, Priority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult ReclaimResources(uint NumResources, IDXGIResource** ppResources, Bool32* pDiscarded) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), NumResources, ppResources, pDiscarded); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult EnqueueSetEvent(IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void Trim() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIDevice3*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice4.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice4.cs new file mode 100644 index 0000000..3315f58 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDevice4.cs @@ -0,0 +1,219 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIDevice4 +[Guid("95b4f95f-d8da-4ca4-9ee6-3b76d5968a10")] +[NativeTypeName("struct IDXGIDevice4 : IDXGIDevice3")] +[NativeInheritance("IDXGIDevice3")] +public unsafe partial struct IDXGIDevice4 +{ + public static ref readonly Guid IID_IDXGIDevice4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5F, 0xF9, 0xB4, 0x95, + 0xDA, 0xD8, + 0xA4, 0x4C, + 0x9E, + 0xE6, + 0x3B, + 0x76, + 0xD5, + 0x96, + 0x8A, + 0x10 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDevice4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetAdapter(IDXGIAdapter** pAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), pAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, uint Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult QueryResourceResidency(IUnknown** ppResources, Residency* pResidencyStatus, uint NumResources) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), ppResources, pResidencyStatus, NumResources); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetGPUThreadPriority(int Priority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), Priority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGPUThreadPriority(int* pPriority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), pPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult SetMaximumFrameLatency(uint MaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), MaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetMaximumFrameLatency(uint* pMaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), pMaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult OfferResources(uint NumResources, IDXGIResource** ppResources, OfferResourcePriority Priority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), NumResources, ppResources, Priority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult ReclaimResources(uint NumResources, IDXGIResource** ppResources, Bool32* pDiscarded) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), NumResources, ppResources, pDiscarded); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult EnqueueSetEvent(IntPtr hEvent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), hEvent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void Trim() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIDevice4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult OfferResources1(uint NumResources, IDXGIResource** ppResources, OfferResourcePriority Priority, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), NumResources, ppResources, Priority, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult ReclaimResources1(uint NumResources, IDXGIResource** ppResources, ReclaimResourceResults* pResults) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), NumResources, ppResources, pResults); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDeviceSubObject.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDeviceSubObject.cs new file mode 100644 index 0000000..04e7dcc --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDeviceSubObject.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIDeviceSubObject +[Guid("3d3e0379-f9de-4d58-bb6c-18d62992f1a6")] +[NativeTypeName("struct IDXGIDeviceSubObject : IDXGIObject")] +[NativeInheritance("IDXGIObject")] +public unsafe partial struct IDXGIDeviceSubObject +{ + public static ref readonly Guid IID_IDXGIDeviceSubObject + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x79, 0x03, 0x3E, 0x3D, + 0xDE, 0xF9, + 0x58, 0x4D, + 0xBB, + 0x6C, + 0x18, + 0xD6, + 0x29, + 0x92, + 0xF1, + 0xA6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDeviceSubObject)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDeviceSubObject*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDeviceSubObject*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIDeviceSubObject*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIDeviceSubObject*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIDeviceSubObject*)Unsafe.AsPointer(ref this), riid, ppDevice); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDisplayControl.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDisplayControl.cs new file mode 100644 index 0000000..1f509a2 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIDisplayControl.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIDisplayControl +[Guid("ea9dbf1a-c88e-4486-854a-98aa0138f30c")] +[NativeTypeName("struct IDXGIDisplayControl : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDXGIDisplayControl +{ + public static ref readonly Guid IID_IDXGIDisplayControl + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1A, 0xBF, 0x9D, 0xEA, + 0x8E, 0xC8, + 0x86, 0x44, + 0x85, + 0x4A, + 0x98, + 0xAA, + 0x01, + 0x38, + 0xF3, + 0x0C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIDisplayControl)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public Bool32 IsStereoEnabled() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIDisplayControl*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetStereoEnabled(Bool32 enabled) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIDisplayControl*)Unsafe.AsPointer(ref this), enabled); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory.cs new file mode 100644 index 0000000..feff4ba --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIFactory +[Guid("7b7166ec-21c7-44ae-b21a-c9ae321ae369")] +[NativeTypeName("struct IDXGIFactory : IDXGIObject")] +[NativeInheritance("IDXGIObject")] +public unsafe partial struct IDXGIFactory +{ + public static ref readonly Guid IID_IDXGIFactory + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEC, 0x66, 0x71, 0x7B, + 0xC7, 0x21, + 0xAE, 0x44, + 0xB2, + 0x1A, + 0xC9, + 0xAE, + 0x32, + 0x1A, + 0xE3, + 0x69 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory*)Unsafe.AsPointer(ref this), WindowHandle, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetWindowAssociation(IntPtr* pWindowHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory*)Unsafe.AsPointer(ref this), pWindowHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Module, ppAdapter); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory1.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory1.cs new file mode 100644 index 0000000..c2dd0d8 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory1.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIFactory1 +[Guid("770aae78-f26f-4dba-a829-253c83d1b387")] +[NativeTypeName("struct IDXGIFactory1 : IDXGIFactory")] +[NativeInheritance("IDXGIFactory")] +public unsafe partial struct IDXGIFactory1 +{ + public static ref readonly Guid IID_IDXGIFactory1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x78, 0xAE, 0x0A, 0x77, + 0x6F, 0xF2, + 0xBA, 0x4D, + 0xA8, + 0x29, + 0x25, + 0x3C, + 0x83, + 0xD1, + 0xB3, + 0x87 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), WindowHandle, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetWindowAssociation(IntPtr* pWindowHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), pWindowHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), Module, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public Bool32 IsCurrent() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory1*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory2.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory2.cs new file mode 100644 index 0000000..b071da7 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory2.cs @@ -0,0 +1,259 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIFactory2 +[Guid("50c83a1c-e072-4c48-87b0-3630fa36a6d0")] +[NativeTypeName("struct IDXGIFactory2 : IDXGIFactory1")] +[NativeInheritance("IDXGIFactory1")] +public unsafe partial struct IDXGIFactory2 +{ + public static ref readonly Guid IID_IDXGIFactory2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1C, 0x3A, 0xC8, 0x50, + 0x72, 0xE0, + 0x48, 0x4C, + 0x87, + 0xB0, + 0x36, + 0x30, + 0xFA, + 0x36, + 0xA6, + 0xD0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), WindowHandle, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetWindowAssociation(IntPtr* pWindowHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), pWindowHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), Module, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public Bool32 IsCurrent() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public Bool32 IsWindowedStereoEnabled() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateSwapChainForHwnd(IUnknown* pDevice, IntPtr hWnd, SwapChainDescription1* pDesc, SwapChainFullscreenDescription* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), pDevice, hWnd, pDesc, pFullscreenDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetSharedResourceAdapterLuid(IntPtr hResource, Luid* pLuid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), hResource, pLuid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult RegisterStereoStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult RegisterStereoStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void UnregisterStereoStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult RegisterOcclusionStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterOcclusionStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void UnregisterOcclusionStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateSwapChainForComposition(IUnknown* pDevice, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory3.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory3.cs new file mode 100644 index 0000000..abf45dc --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory3.cs @@ -0,0 +1,267 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIFactory3 +[Guid("25483823-cd46-4c7d-86ca-47aa95b837bd")] +[NativeTypeName("struct IDXGIFactory3 : IDXGIFactory2")] +[NativeInheritance("IDXGIFactory2")] +public unsafe partial struct IDXGIFactory3 +{ + public static ref readonly Guid IID_IDXGIFactory3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x23, 0x38, 0x48, 0x25, + 0x46, 0xCD, + 0x7D, 0x4C, + 0x86, + 0xCA, + 0x47, + 0xAA, + 0x95, + 0xB8, + 0x37, + 0xBD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), WindowHandle, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetWindowAssociation(IntPtr* pWindowHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), pWindowHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), Module, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public Bool32 IsCurrent() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public Bool32 IsWindowedStereoEnabled() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateSwapChainForHwnd(IUnknown* pDevice, IntPtr hWnd, SwapChainDescription1* pDesc, SwapChainFullscreenDescription* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), pDevice, hWnd, pDesc, pFullscreenDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetSharedResourceAdapterLuid(IntPtr hResource, Luid* pLuid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), hResource, pLuid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult RegisterStereoStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult RegisterStereoStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void UnregisterStereoStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult RegisterOcclusionStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterOcclusionStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void UnregisterOcclusionStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateSwapChainForComposition(IUnknown* pDevice, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public uint GetCreationFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIFactory3*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory4.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory4.cs new file mode 100644 index 0000000..4902ec0 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory4.cs @@ -0,0 +1,283 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIFactory4 +[Guid("1bc6ea02-ef36-464f-bf0c-21ca39e5168a")] +[NativeTypeName("struct IDXGIFactory4 : IDXGIFactory3")] +[NativeInheritance("IDXGIFactory3")] +public unsafe partial struct IDXGIFactory4 +{ + public static ref readonly Guid IID_IDXGIFactory4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x02, 0xEA, 0xC6, 0x1B, + 0x36, 0xEF, + 0x4F, 0x46, + 0xBF, + 0x0C, + 0x21, + 0xCA, + 0x39, + 0xE5, + 0x16, + 0x8A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), WindowHandle, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetWindowAssociation(IntPtr* pWindowHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pWindowHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Module, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public Bool32 IsCurrent() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public Bool32 IsWindowedStereoEnabled() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateSwapChainForHwnd(IUnknown* pDevice, IntPtr hWnd, SwapChainDescription1* pDesc, SwapChainFullscreenDescription* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pDevice, hWnd, pDesc, pFullscreenDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetSharedResourceAdapterLuid(IntPtr hResource, Luid* pLuid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), hResource, pLuid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult RegisterStereoStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult RegisterStereoStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void UnregisterStereoStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult RegisterOcclusionStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterOcclusionStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void UnregisterOcclusionStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateSwapChainForComposition(IUnknown* pDevice, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public uint GetCreationFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIFactory4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult EnumAdapterByLuid(Luid AdapterLuid, Guid* riid, void** ppvAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), AdapterLuid, riid, ppvAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult EnumWarpAdapter(Guid* riid, void** ppvAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), riid, ppvAdapter); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory5.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory5.cs new file mode 100644 index 0000000..2f995e3 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory5.cs @@ -0,0 +1,291 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIFactory5 +[Guid("7632e1f5-ee65-4dca-87fd-84cd75f8838d")] +[NativeTypeName("struct IDXGIFactory5 : IDXGIFactory4")] +[NativeInheritance("IDXGIFactory4")] +public unsafe partial struct IDXGIFactory5 +{ + public static ref readonly Guid IID_IDXGIFactory5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF5, 0xE1, 0x32, 0x76, + 0x65, 0xEE, + 0xCA, 0x4D, + 0x87, + 0xFD, + 0x84, + 0xCD, + 0x75, + 0xF8, + 0x83, + 0x8D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory5)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), WindowHandle, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetWindowAssociation(IntPtr* pWindowHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), pWindowHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Module, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public Bool32 IsCurrent() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public Bool32 IsWindowedStereoEnabled() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateSwapChainForHwnd(IUnknown* pDevice, IntPtr hWnd, SwapChainDescription1* pDesc, SwapChainFullscreenDescription* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), pDevice, hWnd, pDesc, pFullscreenDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetSharedResourceAdapterLuid(IntPtr hResource, Luid* pLuid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), hResource, pLuid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult RegisterStereoStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult RegisterStereoStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void UnregisterStereoStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult RegisterOcclusionStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterOcclusionStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void UnregisterOcclusionStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateSwapChainForComposition(IUnknown* pDevice, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public uint GetCreationFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIFactory5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult EnumAdapterByLuid(Luid AdapterLuid, Guid* riid, void** ppvAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), AdapterLuid, riid, ppvAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult EnumWarpAdapter(Guid* riid, void** ppvAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), riid, ppvAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory6.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory6.cs new file mode 100644 index 0000000..61cfb9d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory6.cs @@ -0,0 +1,299 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIFactory6 +[Guid("c1b6694f-ff09-44a9-b03c-77900a0a1d17")] +[NativeTypeName("struct IDXGIFactory6 : IDXGIFactory5")] +[NativeInheritance("IDXGIFactory5")] +public unsafe partial struct IDXGIFactory6 +{ + public static ref readonly Guid IID_IDXGIFactory6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4F, 0x69, 0xB6, 0xC1, + 0x09, 0xFF, + 0xA9, 0x44, + 0xB0, + 0x3C, + 0x77, + 0x90, + 0x0A, + 0x0A, + 0x1D, + 0x17 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory6)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), WindowHandle, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetWindowAssociation(IntPtr* pWindowHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), pWindowHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Module, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public Bool32 IsCurrent() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public Bool32 IsWindowedStereoEnabled() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateSwapChainForHwnd(IUnknown* pDevice, IntPtr hWnd, SwapChainDescription1* pDesc, SwapChainFullscreenDescription* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), pDevice, hWnd, pDesc, pFullscreenDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetSharedResourceAdapterLuid(IntPtr hResource, Luid* pLuid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), hResource, pLuid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult RegisterStereoStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult RegisterStereoStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void UnregisterStereoStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult RegisterOcclusionStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterOcclusionStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void UnregisterOcclusionStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateSwapChainForComposition(IUnknown* pDevice, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public uint GetCreationFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIFactory6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult EnumAdapterByLuid(Luid AdapterLuid, Guid* riid, void** ppvAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), AdapterLuid, riid, ppvAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult EnumWarpAdapter(Guid* riid, void** ppvAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), riid, ppvAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult EnumAdapterByGpuPreference(uint Adapter, GpuPreference GpuPreference, Guid* riid, void** ppvAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Adapter, GpuPreference, riid, ppvAdapter); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory7.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory7.cs new file mode 100644 index 0000000..3538f51 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactory7.cs @@ -0,0 +1,315 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIFactory7 +[Guid("a4966eed-76db-44da-84c1-ee9a7afb20a8")] +[NativeTypeName("struct IDXGIFactory7 : IDXGIFactory6")] +[NativeInheritance("IDXGIFactory6")] +public unsafe partial struct IDXGIFactory7 +{ + public static ref readonly Guid IID_IDXGIFactory7 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xED, 0x6E, 0x96, 0xA4, + 0xDB, 0x76, + 0xDA, 0x44, + 0x84, + 0xC1, + 0xEE, + 0x9A, + 0x7A, + 0xFB, + 0x20, + 0xA8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactory7)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), WindowHandle, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetWindowAssociation(IntPtr* pWindowHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), pWindowHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Module, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult EnumAdapters1(uint Adapter, IDXGIAdapter1** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public Bool32 IsCurrent() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIFactory7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public Bool32 IsWindowedStereoEnabled() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIFactory7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateSwapChainForHwnd(IUnknown* pDevice, IntPtr hWnd, SwapChainDescription1* pDesc, SwapChainFullscreenDescription* pFullscreenDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), pDevice, hWnd, pDesc, pFullscreenDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateSwapChainForCoreWindow(IUnknown* pDevice, IUnknown* pWindow, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), pDevice, pWindow, pDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetSharedResourceAdapterLuid(IntPtr hResource, Luid* pLuid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), hResource, pLuid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult RegisterStereoStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult RegisterStereoStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void UnregisterStereoStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult RegisterOcclusionStatusWindow(IntPtr WindowHandle, uint wMsg, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), WindowHandle, wMsg, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult RegisterOcclusionStatusEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void UnregisterOcclusionStatus(uint dwCookie) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), dwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateSwapChainForComposition(IUnknown* pDevice, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public uint GetCreationFlags() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIFactory7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult EnumAdapterByLuid(Luid AdapterLuid, Guid* riid, void** ppvAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), AdapterLuid, riid, ppvAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult EnumWarpAdapter(Guid* riid, void** ppvAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), riid, ppvAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, uint FeatureSupportDataSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult EnumAdapterByGpuPreference(uint Adapter, GpuPreference GpuPreference, Guid* riid, void** ppvAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), Adapter, GpuPreference, riid, ppvAdapter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult RegisterAdaptersChangedEvent(IntPtr hEvent, uint* pdwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), hEvent, pdwCookie); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult UnregisterAdaptersChangedEvent(uint dwCookie) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), dwCookie); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactoryMedia.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactoryMedia.cs new file mode 100644 index 0000000..c4c9451 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIFactoryMedia.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIFactoryMedia +[Guid("41e7d1f2-a591-4f7b-a2e5-fa9c843e1c12")] +[NativeTypeName("struct IDXGIFactoryMedia : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDXGIFactoryMedia +{ + public static ref readonly Guid IID_IDXGIFactoryMedia + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF2, 0xD1, 0xE7, 0x41, + 0x91, 0xA5, + 0x7B, 0x4F, + 0xA2, + 0xE5, + 0xFA, + 0x9C, + 0x84, + 0x3E, + 0x1C, + 0x12 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIFactoryMedia)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateSwapChainForCompositionSurfaceHandle(IUnknown* pDevice, IntPtr hSurface, SwapChainDescription1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIFactoryMedia*)Unsafe.AsPointer(ref this), pDevice, hSurface, pDesc, pRestrictToOutput, ppSwapChain); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateDecodeSwapChainForCompositionSurfaceHandle(IUnknown* pDevice, IntPtr hSurface, DecodeSwapChainDescription* pDesc, IDXGIResource* pYuvDecodeBuffers, IDXGIOutput* pRestrictToOutput, IDXGIDecodeSwapChain** ppSwapChain) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIFactoryMedia*)Unsafe.AsPointer(ref this), pDevice, hSurface, pDesc, pYuvDecodeBuffers, pRestrictToOutput, ppSwapChain); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIInfoQueue.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIInfoQueue.cs new file mode 100644 index 0000000..7d5e204 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIInfoQueue.cs @@ -0,0 +1,379 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIInfoQueue +[Guid("d67441c7-672a-476f-9e82-cd55b44949ce")] +[NativeTypeName("struct IDXGIInfoQueue : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDXGIInfoQueue +{ + public static ref readonly Guid IID_IDXGIInfoQueue + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC7, 0x41, 0x74, 0xD6, + 0x2A, 0x67, + 0x6F, 0x47, + 0x9E, + 0x82, + 0xCD, + 0x55, + 0xB4, + 0x49, + 0x49, + 0xCE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIInfoQueue)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetMessageCountLimit(Guid Producer, ulong MessageCountLimit) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, MessageCountLimit); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void ClearStoredMessages(Guid Producer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetMessage(Guid Producer, ulong MessageIndex, InfoQueueMessage* pMessage, nuint* pMessageByteLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, MessageIndex, pMessage, pMessageByteLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ulong GetNumStoredMessagesAllowedByRetrievalFilters(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public ulong GetNumStoredMessages(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public ulong GetNumMessagesDiscardedByMessageCountLimit(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ulong GetMessageCountLimit(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public ulong GetNumMessagesAllowedByStorageFilter(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public ulong GetNumMessagesDeniedByStorageFilter(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult AddStorageFilterEntries(Guid Producer, InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetStorageFilter(Guid Producer, InfoQueueFilter* pFilter, nuint* pFilterByteLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, pFilter, pFilterByteLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void ClearStorageFilter(Guid Producer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult PushEmptyStorageFilter(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult PushDenyAllStorageFilter(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult PushCopyOfStorageFilter(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult PushStorageFilter(Guid Producer, InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void PopStorageFilter(Guid Producer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public uint GetStorageFilterStackSize(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult AddRetrievalFilterEntries(Guid Producer, InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult GetRetrievalFilter(Guid Producer, InfoQueueFilter* pFilter, nuint* pFilterByteLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, pFilter, pFilterByteLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void ClearRetrievalFilter(Guid Producer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult PushEmptyRetrievalFilter(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult PushDenyAllRetrievalFilter(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult PushCopyOfRetrievalFilter(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult PushRetrievalFilter(Guid Producer, InfoQueueFilter* pFilter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, pFilter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void PopRetrievalFilter(Guid Producer) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public uint GetRetrievalFilterStackSize(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult AddMessage(Guid Producer, InfoQueueMessageCategory Category, InfoQueueMessageSeverity Severity, int ID, sbyte* pDescription) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, Category, Severity, ID, pDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult AddApplicationMessage(InfoQueueMessageSeverity Severity, sbyte* pDescription) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Severity, pDescription); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult SetBreakOnCategory(Guid Producer, InfoQueueMessageCategory Category, Bool32 bEnable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, Category, bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult SetBreakOnSeverity(Guid Producer, InfoQueueMessageSeverity Severity, Bool32 bEnable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, Severity, bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult SetBreakOnID(Guid Producer, int ID, Bool32 bEnable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, ID, bEnable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public Bool32 GetBreakOnCategory(Guid Producer, InfoQueueMessageCategory Category) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, Category); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public Bool32 GetBreakOnSeverity(Guid Producer, InfoQueueMessageSeverity Severity) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, Severity); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public Bool32 GetBreakOnID(Guid Producer, int ID) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, ID); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetMuteDebugOutput(Guid Producer, Bool32 bMute) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer, bMute); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public Bool32 GetMuteDebugOutput(Guid Producer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIKeyedMutex.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIKeyedMutex.cs new file mode 100644 index 0000000..d6cb70b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIKeyedMutex.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIKeyedMutex +[Guid("9d8e1289-d7b3-465f-8126-250e349af85d")] +[NativeTypeName("struct IDXGIKeyedMutex : IDXGIDeviceSubObject")] +[NativeInheritance("IDXGIDeviceSubObject")] +public unsafe partial struct IDXGIKeyedMutex +{ + public static ref readonly Guid IID_IDXGIKeyedMutex + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x89, 0x12, 0x8E, 0x9D, + 0xB3, 0xD7, + 0x5F, 0x46, + 0x81, + 0x26, + 0x25, + 0x0E, + 0x34, + 0x9A, + 0xF8, + 0x5D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIKeyedMutex)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), riid, ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult AcquireSync(ulong Key, uint dwMilliseconds) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), Key, dwMilliseconds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult ReleaseSync(ulong Key) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), Key); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIObject.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIObject.cs new file mode 100644 index 0000000..bf518dc --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIObject.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIObject +[Guid("aec22fb8-76f3-4639-9be0-28eb43a67a2e")] +[NativeTypeName("struct IDXGIObject : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDXGIObject +{ + public static ref readonly Guid IID_IDXGIObject + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB8, 0x2F, 0xC2, 0xAE, + 0xF3, 0x76, + 0x39, 0x46, + 0x9B, + 0xE0, + 0x28, + 0xEB, + 0x43, + 0xA6, + 0x7A, + 0x2E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIObject)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIObject*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIObject*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIObject*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIObject*)Unsafe.AsPointer(ref this), riid, ppParent); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput.cs new file mode 100644 index 0000000..cdd9a5a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput.cs @@ -0,0 +1,211 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIOutput +[Guid("ae02eedb-c735-4690-8d52-5a8dc20213aa")] +[NativeTypeName("struct IDXGIOutput : IDXGIObject")] +[NativeInheritance("IDXGIObject")] +public unsafe partial struct IDXGIOutput +{ + public static ref readonly Guid IID_IDXGIOutput + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDB, 0xEE, 0x02, 0xAE, + 0x35, 0xC7, + 0x90, 0x46, + 0x8D, + 0x52, + 0x5A, + 0x8D, + 0xC2, + 0x02, + 0x13, + 0xAA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDesc(OutputDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDisplayModeList(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, Common.ModeDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult WaitForVBlank() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pDevice, Exclusive); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void ReleaseOwnership() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pGammaCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult SetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pScanoutSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetFrameStatistics(FrameStatistics* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pStats); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput1.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput1.cs new file mode 100644 index 0000000..a3abb64 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput1.cs @@ -0,0 +1,243 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIOutput1 +[Guid("00cddea8-939b-4b83-a340-a685226666cc")] +[NativeTypeName("struct IDXGIOutput1 : IDXGIOutput")] +[NativeInheritance("IDXGIOutput")] +public unsafe partial struct IDXGIOutput1 +{ + public static ref readonly Guid IID_IDXGIOutput1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA8, 0xDE, 0xCD, 0x00, + 0x9B, 0x93, + 0x83, 0x4B, + 0xA3, + 0x40, + 0xA6, + 0x85, + 0x22, + 0x66, + 0x66, + 0xCC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDesc(OutputDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult WaitForVBlank() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pDevice, Exclusive); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void ReleaseOwnership() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pGammaCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult SetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pScanoutSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetFrameStatistics(FrameStatistics* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetDisplaySurfaceData1(IDXGIResource* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult DuplicateOutput(IUnknown* pDevice, IDXGIOutputDuplication** ppOutputDuplication) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput2.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput2.cs new file mode 100644 index 0000000..2593b5e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput2.cs @@ -0,0 +1,251 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIOutput2 +[Guid("595e39d1-2724-4663-99b1-da969de28364")] +[NativeTypeName("struct IDXGIOutput2 : IDXGIOutput1")] +[NativeInheritance("IDXGIOutput1")] +public unsafe partial struct IDXGIOutput2 +{ + public static ref readonly Guid IID_IDXGIOutput2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD1, 0x39, 0x5E, 0x59, + 0x24, 0x27, + 0x63, 0x46, + 0x99, + 0xB1, + 0xDA, + 0x96, + 0x9D, + 0xE2, + 0x83, + 0x64 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDesc(OutputDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult WaitForVBlank() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pDevice, Exclusive); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void ReleaseOwnership() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pGammaCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult SetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pScanoutSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetFrameStatistics(FrameStatistics* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetDisplaySurfaceData1(IDXGIResource* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult DuplicateOutput(IUnknown* pDevice, IDXGIOutputDuplication** ppOutputDuplication) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Bool32 SupportsOverlays() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIOutput2*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput3.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput3.cs new file mode 100644 index 0000000..70c241b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput3.cs @@ -0,0 +1,259 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIOutput3 +[Guid("8a6bb301-7e7e-41f4-a8e0-5b32f7f99b18")] +[NativeTypeName("struct IDXGIOutput3 : IDXGIOutput2")] +[NativeInheritance("IDXGIOutput2")] +public unsafe partial struct IDXGIOutput3 +{ + public static ref readonly Guid IID_IDXGIOutput3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x01, 0xB3, 0x6B, 0x8A, + 0x7E, 0x7E, + 0xF4, 0x41, + 0xA8, + 0xE0, + 0x5B, + 0x32, + 0xF7, + 0xF9, + 0x9B, + 0x18 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDesc(OutputDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult WaitForVBlank() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pDevice, Exclusive); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void ReleaseOwnership() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pGammaCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult SetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pScanoutSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetFrameStatistics(FrameStatistics* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetDisplaySurfaceData1(IDXGIResource* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult DuplicateOutput(IUnknown* pDevice, IDXGIOutputDuplication** ppOutputDuplication) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Bool32 SupportsOverlays() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIOutput3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CheckOverlaySupport(Common.Format EnumFormat, IUnknown* pConcernedDevice, uint* pFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), EnumFormat, pConcernedDevice, pFlags); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput4.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput4.cs new file mode 100644 index 0000000..76236d9 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput4.cs @@ -0,0 +1,267 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIOutput4 +[Guid("dc7dca35-2196-414d-9f53-617884032a60")] +[NativeTypeName("struct IDXGIOutput4 : IDXGIOutput3")] +[NativeInheritance("IDXGIOutput3")] +public unsafe partial struct IDXGIOutput4 +{ + public static ref readonly Guid IID_IDXGIOutput4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x35, 0xCA, 0x7D, 0xDC, + 0x96, 0x21, + 0x4D, 0x41, + 0x9F, + 0x53, + 0x61, + 0x78, + 0x84, + 0x03, + 0x2A, + 0x60 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDesc(OutputDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult WaitForVBlank() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pDevice, Exclusive); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void ReleaseOwnership() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pGammaCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult SetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pScanoutSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetFrameStatistics(FrameStatistics* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetDisplaySurfaceData1(IDXGIResource* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult DuplicateOutput(IUnknown* pDevice, IDXGIOutputDuplication** ppOutputDuplication) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Bool32 SupportsOverlays() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIOutput4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CheckOverlaySupport(Common.Format EnumFormat, IUnknown* pConcernedDevice, uint* pFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), EnumFormat, pConcernedDevice, pFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CheckOverlayColorSpaceSupport(Common.Format Format, Common.ColorSpaceType ColorSpace, IUnknown* pConcernedDevice, uint* pFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), Format, ColorSpace, pConcernedDevice, pFlags); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput5.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput5.cs new file mode 100644 index 0000000..fea9e83 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput5.cs @@ -0,0 +1,275 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIOutput5 +[Guid("80a07424-ab52-42eb-833c-0c42fd282d98")] +[NativeTypeName("struct IDXGIOutput5 : IDXGIOutput4")] +[NativeInheritance("IDXGIOutput4")] +public unsafe partial struct IDXGIOutput5 +{ + public static ref readonly Guid IID_IDXGIOutput5 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0x74, 0xA0, 0x80, + 0x52, 0xAB, + 0xEB, 0x42, + 0x83, + 0x3C, + 0x0C, + 0x42, + 0xFD, + 0x28, + 0x2D, + 0x98 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput5)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDesc(OutputDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult WaitForVBlank() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDevice, Exclusive); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void ReleaseOwnership() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pGammaCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult SetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pScanoutSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetFrameStatistics(FrameStatistics* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetDisplaySurfaceData1(IDXGIResource* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult DuplicateOutput(IUnknown* pDevice, IDXGIOutputDuplication** ppOutputDuplication) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Bool32 SupportsOverlays() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIOutput5*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CheckOverlaySupport(Common.Format EnumFormat, IUnknown* pConcernedDevice, uint* pFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), EnumFormat, pConcernedDevice, pFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CheckOverlayColorSpaceSupport(Common.Format Format, Common.ColorSpaceType ColorSpace, IUnknown* pConcernedDevice, uint* pFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), Format, ColorSpace, pConcernedDevice, pFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult DuplicateOutput1(IUnknown* pDevice, uint Flags, uint SupportedFormatsCount, Common.Format* pSupportedFormats, IDXGIOutputDuplication** ppOutputDuplication) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDevice, Flags, SupportedFormatsCount, pSupportedFormats, ppOutputDuplication); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput6.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput6.cs new file mode 100644 index 0000000..e203eb4 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutput6.cs @@ -0,0 +1,291 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIOutput6 +[Guid("068346e8-aaec-4b84-add7-137f513f77a1")] +[NativeTypeName("struct IDXGIOutput6 : IDXGIOutput5")] +[NativeInheritance("IDXGIOutput5")] +public unsafe partial struct IDXGIOutput6 +{ + public static ref readonly Guid IID_IDXGIOutput6 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE8, 0x46, 0x83, 0x06, + 0xEC, 0xAA, + 0x84, 0x4B, + 0xAD, + 0xD7, + 0x13, + 0x7F, + 0x51, + 0x3F, + 0x77, + 0xA1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutput6)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDesc(OutputDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult FindClosestMatchingMode(Common.ModeDescription* pModeToMatch, Common.ModeDescription* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult WaitForVBlank() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutput6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult TakeOwnership(IUnknown* pDevice, Bool32 Exclusive) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDevice, Exclusive); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void ReleaseOwnership() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutput6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetGammaControlCapabilities(Common.GammaControlCapabilities* pGammaCaps) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pGammaCaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult SetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetGammaControl(Common.GammaControl* pArray) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pArray); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult SetDisplaySurface(IDXGISurface* pScanoutSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pScanoutSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetDisplaySurfaceData(IDXGISurface* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetFrameStatistics(FrameStatistics* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pModeToMatch, pClosestMatch, pConcernedDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetDisplaySurfaceData1(IDXGIResource* pDestination) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDestination); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult DuplicateOutput(IUnknown* pDevice, IDXGIOutputDuplication** ppOutputDuplication) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Bool32 SupportsOverlays() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGIOutput6*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CheckOverlaySupport(Common.Format EnumFormat, IUnknown* pConcernedDevice, uint* pFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), EnumFormat, pConcernedDevice, pFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CheckOverlayColorSpaceSupport(Common.Format Format, Common.ColorSpaceType ColorSpace, IUnknown* pConcernedDevice, uint* pFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), Format, ColorSpace, pConcernedDevice, pFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult DuplicateOutput1(IUnknown* pDevice, uint Flags, uint SupportedFormatsCount, Common.Format* pSupportedFormats, IDXGIOutputDuplication** ppOutputDuplication) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDevice, Flags, SupportedFormatsCount, pSupportedFormats, ppOutputDuplication); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetDesc1(OutputDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CheckHardwareCompositionSupport(uint* pFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pFlags); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutputDuplication.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutputDuplication.cs new file mode 100644 index 0000000..1dac596 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIOutputDuplication.cs @@ -0,0 +1,179 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIOutputDuplication +[Guid("191cfac3-a341-470d-b26e-a864f428319c")] +[NativeTypeName("struct IDXGIOutputDuplication : IDXGIObject")] +[NativeInheritance("IDXGIObject")] +public unsafe partial struct IDXGIOutputDuplication +{ + public static ref readonly Guid IID_IDXGIOutputDuplication + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC3, 0xFA, 0x1C, 0x19, + 0x41, 0xA3, + 0x0D, 0x47, + 0xB2, + 0x6E, + 0xA8, + 0x64, + 0xF4, + 0x28, + 0x31, + 0x9C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIOutputDuplication)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GetDesc(OutduplDescription* pDesc) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult AcquireNextFrame(uint TimeoutInMilliseconds, OutduplFrameInfo* pFrameInfo, IDXGIResource** ppDesktopResource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), TimeoutInMilliseconds, pFrameInfo, ppDesktopResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetFrameDirtyRects(uint DirtyRectsBufferSize, RawRect* pDirtyRectsBuffer, uint* pDirtyRectsBufferSizeRequired) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), DirtyRectsBufferSize, pDirtyRectsBuffer, pDirtyRectsBufferSizeRequired); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFrameMoveRects(uint MoveRectsBufferSize, OutduplMoveRect* pMoveRectBuffer, uint* pMoveRectsBufferSizeRequired) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), MoveRectsBufferSize, pMoveRectBuffer, pMoveRectsBufferSizeRequired); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetFramePointerShape(uint PointerShapeBufferSize, void* pPointerShapeBuffer, uint* pPointerShapeBufferSizeRequired, OutduplPointerShapeInfo* pPointerShapeInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), PointerShapeBufferSize, pPointerShapeBuffer, pPointerShapeBufferSizeRequired, pPointerShapeInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult MapDesktopSurface(MappedRect* pLockedRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), pLockedRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult UnMapDesktopSurface() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ReleaseFrame() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIResource.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIResource.cs new file mode 100644 index 0000000..4c8d96e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIResource.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIResource +[Guid("035f3ab4-482e-4e50-b41f-8a7f8bd8960b")] +[NativeTypeName("struct IDXGIResource : IDXGIDeviceSubObject")] +[NativeInheritance("IDXGIDeviceSubObject")] +public unsafe partial struct IDXGIResource +{ + public static ref readonly Guid IID_IDXGIResource + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB4, 0x3A, 0x5F, 0x03, + 0x2E, 0x48, + 0x50, 0x4E, + 0xB4, + 0x1F, + 0x8A, + 0x7F, + 0x8B, + 0xD8, + 0x96, + 0x0B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIResource)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIResource*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIResource*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIResource*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIResource*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIResource*)Unsafe.AsPointer(ref this), riid, ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetSharedHandle(IntPtr* pSharedHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIResource*)Unsafe.AsPointer(ref this), pSharedHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetUsage(uint* pUsage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIResource*)Unsafe.AsPointer(ref this), pUsage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetEvictionPriority(ResourcePriority EvictionPriority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIResource*)Unsafe.AsPointer(ref this), EvictionPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetEvictionPriority(uint* pEvictionPriority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIResource*)Unsafe.AsPointer(ref this), pEvictionPriority); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIResource1.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIResource1.cs new file mode 100644 index 0000000..ee29128 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGIResource1.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGIResource1 +[Guid("30961379-4609-4a41-998e-54fe567ee0c1")] +[NativeTypeName("struct IDXGIResource1 : IDXGIResource")] +[NativeInheritance("IDXGIResource")] +public unsafe partial struct IDXGIResource1 +{ + public static ref readonly Guid IID_IDXGIResource1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x79, 0x13, 0x96, 0x30, + 0x09, 0x46, + 0x41, 0x4A, + 0x99, + 0x8E, + 0x54, + 0xFE, + 0x56, + 0x7E, + 0xE0, + 0xC1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGIResource1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGIResource1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGIResource1*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGIResource1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGIResource1*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIResource1*)Unsafe.AsPointer(ref this), riid, ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetSharedHandle(IntPtr* pSharedHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGIResource1*)Unsafe.AsPointer(ref this), pSharedHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetUsage(uint* pUsage) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGIResource1*)Unsafe.AsPointer(ref this), pUsage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetEvictionPriority(ResourcePriority EvictionPriority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGIResource1*)Unsafe.AsPointer(ref this), EvictionPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetEvictionPriority(uint* pEvictionPriority) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGIResource1*)Unsafe.AsPointer(ref this), pEvictionPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateSubresourceSurface(uint index, IDXGISurface2** ppSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGIResource1*)Unsafe.AsPointer(ref this), index, ppSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateSharedHandle(Security.SECURITY_ATTRIBUTES* pAttributes, uint dwAccess, ushort* lpName, IntPtr* pHandle) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGIResource1*)Unsafe.AsPointer(ref this), pAttributes, dwAccess, lpName, pHandle); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISurface.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISurface.cs new file mode 100644 index 0000000..e6576fa --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISurface.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGISurface +[Guid("cafcb56c-6ac3-4889-bf47-9e23bbd260ec")] +[NativeTypeName("struct IDXGISurface : IDXGIDeviceSubObject")] +[NativeInheritance("IDXGIDeviceSubObject")] +public unsafe partial struct IDXGISurface +{ + public static ref readonly Guid IID_IDXGISurface + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6C, 0xB5, 0xFC, 0xCA, + 0xC3, 0x6A, + 0x89, 0x48, + 0xBF, + 0x47, + 0x9E, + 0x23, + 0xBB, + 0xD2, + 0x60, + 0xEC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISurface)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISurface*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISurface*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISurface*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISurface*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISurface*)Unsafe.AsPointer(ref this), riid, ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDesc(SurfaceDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISurface*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Map(MappedRect* pLockedRect, uint MapFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISurface*)Unsafe.AsPointer(ref this), pLockedRect, MapFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Unmap() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISurface*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISurface1.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISurface1.cs new file mode 100644 index 0000000..f6a7eed --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISurface1.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGISurface1 +[Guid("4ae63092-6327-4c1b-80ae-bfe12ea32b86")] +[NativeTypeName("struct IDXGISurface1 : IDXGISurface")] +[NativeInheritance("IDXGISurface")] +public unsafe partial struct IDXGISurface1 +{ + public static ref readonly Guid IID_IDXGISurface1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x92, 0x30, 0xE6, 0x4A, + 0x27, 0x63, + 0x1B, 0x4C, + 0x80, + 0xAE, + 0xBF, + 0xE1, + 0x2E, + 0xA3, + 0x2B, + 0x86 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISurface1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISurface1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISurface1*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISurface1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISurface1*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISurface1*)Unsafe.AsPointer(ref this), riid, ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDesc(SurfaceDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISurface1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Map(MappedRect* pLockedRect, uint MapFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISurface1*)Unsafe.AsPointer(ref this), pLockedRect, MapFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Unmap() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISurface1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetDC(Bool32 Discard, IntPtr* phdc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISurface1*)Unsafe.AsPointer(ref this), Discard, phdc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult ReleaseDC(RawRect* pDirtyRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISurface1*)Unsafe.AsPointer(ref this), pDirtyRect); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISurface2.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISurface2.cs new file mode 100644 index 0000000..ab6401c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISurface2.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGISurface2 +[Guid("aba496dd-b617-4cb8-a866-bc44d7eb1fa2")] +[NativeTypeName("struct IDXGISurface2 : IDXGISurface1")] +[NativeInheritance("IDXGISurface1")] +public unsafe partial struct IDXGISurface2 +{ + public static ref readonly Guid IID_IDXGISurface2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDD, 0x96, 0xA4, 0xAB, + 0x17, 0xB6, + 0xB8, 0x4C, + 0xA8, + 0x66, + 0xBC, + 0x44, + 0xD7, + 0xEB, + 0x1F, + 0xA2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISurface2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISurface2*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISurface2*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISurface2*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISurface2*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISurface2*)Unsafe.AsPointer(ref this), riid, ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetDesc(SurfaceDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISurface2*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Map(MappedRect* pLockedRect, uint MapFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISurface2*)Unsafe.AsPointer(ref this), pLockedRect, MapFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Unmap() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISurface2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetDC(Bool32 Discard, IntPtr* phdc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISurface2*)Unsafe.AsPointer(ref this), Discard, phdc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult ReleaseDC(RawRect* pDirtyRect) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISurface2*)Unsafe.AsPointer(ref this), pDirtyRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetResource(Guid* riid, void** ppParentResource, uint* pSubresourceIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGISurface2*)Unsafe.AsPointer(ref this), riid, ppParentResource, pSubresourceIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain.cs new file mode 100644 index 0000000..6b3a30a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGISwapChain +[Guid("310d36a0-d2e7-4c0a-aa04-6a9d23b8886a")] +[NativeTypeName("struct IDXGISwapChain : IDXGIDeviceSubObject")] +[NativeInheritance("IDXGIDeviceSubObject")] +public unsafe partial struct IDXGISwapChain +{ + public static ref readonly Guid IID_IDXGISwapChain + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA0, 0x36, 0x0D, 0x31, + 0xE7, 0xD2, + 0x0A, 0x4C, + 0xAA, + 0x04, + 0x6A, + 0x9D, + 0x23, + 0xB8, + 0x88, + 0x6A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), riid, ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Present(uint SyncInterval, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), SyncInterval, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetBuffer(uint Buffer, Guid* riid, void** ppSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), Buffer, riid, ppSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetFullscreenState(Bool32 Fullscreen, IDXGIOutput* pTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), Fullscreen, pTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetFullscreenState(Bool32* pFullscreen, IDXGIOutput** ppTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), pFullscreen, ppTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetDesc(SwapChainDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ResizeBuffers(uint BufferCount, uint Width, uint Height, Common.Format NewFormat, uint SwapChainFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, NewFormat, SwapChainFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ResizeTarget(Common.ModeDescription* pNewTargetParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), pNewTargetParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetContainingOutput(IDXGIOutput** ppOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), ppOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetFrameStatistics(FrameStatistics* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), pStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetLastPresentCount(uint* pLastPresentCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), pLastPresentCount); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain1.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain1.cs new file mode 100644 index 0000000..5694dbd --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain1.cs @@ -0,0 +1,291 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGISwapChain1 +[Guid("790a45f7-0d42-4876-983a-0a55cfe6f4aa")] +[NativeTypeName("struct IDXGISwapChain1 : IDXGISwapChain")] +[NativeInheritance("IDXGISwapChain")] +public unsafe partial struct IDXGISwapChain1 +{ + public static ref readonly Guid IID_IDXGISwapChain1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF7, 0x45, 0x0A, 0x79, + 0x42, 0x0D, + 0x76, 0x48, + 0x98, + 0x3A, + 0x0A, + 0x55, + 0xCF, + 0xE6, + 0xF4, + 0xAA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), riid, ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Present(uint SyncInterval, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), SyncInterval, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetBuffer(uint Buffer, Guid* riid, void** ppSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), Buffer, riid, ppSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetFullscreenState(Bool32 Fullscreen, IDXGIOutput* pTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), Fullscreen, pTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetFullscreenState(Bool32* pFullscreen, IDXGIOutput** ppTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pFullscreen, ppTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetDesc(SwapChainDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ResizeBuffers(uint BufferCount, uint Width, uint Height, Common.Format NewFormat, uint SwapChainFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, NewFormat, SwapChainFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ResizeTarget(Common.ModeDescription* pNewTargetParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pNewTargetParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetContainingOutput(IDXGIOutput** ppOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), ppOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetFrameStatistics(FrameStatistics* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetLastPresentCount(uint* pLastPresentCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pLastPresentCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetDesc1(SwapChainDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFullscreenDesc(SwapChainFullscreenDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult GetHwnd(IntPtr* pHwnd) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pHwnd); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetCoreWindow(Guid* refiid, void** ppUnk) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), refiid, ppUnk); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Bool32 IsTemporaryMonoSupported() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetRestrictToOutput(IDXGIOutput** ppRestrictToOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), ppRestrictToOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult SetBackgroundColor(Rgba* pColor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetBackgroundColor(Rgba* pColor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult SetRotation(Common.ModeRotation Rotation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), Rotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult GetRotation(Common.ModeRotation* pRotation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pRotation); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain2.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain2.cs new file mode 100644 index 0000000..304d318 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain2.cs @@ -0,0 +1,347 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGISwapChain2 +[Guid("a8be2ac4-199f-4946-b331-79599fb98de7")] +[NativeTypeName("struct IDXGISwapChain2 : IDXGISwapChain1")] +[NativeInheritance("IDXGISwapChain1")] +public unsafe partial struct IDXGISwapChain2 +{ + public static ref readonly Guid IID_IDXGISwapChain2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC4, 0x2A, 0xBE, 0xA8, + 0x9F, 0x19, + 0x46, 0x49, + 0xB3, + 0x31, + 0x79, + 0x59, + 0x9F, + 0xB9, + 0x8D, + 0xE7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), riid, ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Present(uint SyncInterval, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), SyncInterval, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetBuffer(uint Buffer, Guid* riid, void** ppSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Buffer, riid, ppSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetFullscreenState(Bool32 Fullscreen, IDXGIOutput* pTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Fullscreen, pTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetFullscreenState(Bool32* pFullscreen, IDXGIOutput** ppTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pFullscreen, ppTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetDesc(SwapChainDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ResizeBuffers(uint BufferCount, uint Width, uint Height, Common.Format NewFormat, uint SwapChainFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, NewFormat, SwapChainFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ResizeTarget(Common.ModeDescription* pNewTargetParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pNewTargetParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetContainingOutput(IDXGIOutput** ppOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), ppOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetFrameStatistics(FrameStatistics* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetLastPresentCount(uint* pLastPresentCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pLastPresentCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetDesc1(SwapChainDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFullscreenDesc(SwapChainFullscreenDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult GetHwnd(IntPtr* pHwnd) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pHwnd); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetCoreWindow(Guid* refiid, void** ppUnk) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), refiid, ppUnk); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Bool32 IsTemporaryMonoSupported() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetRestrictToOutput(IDXGIOutput** ppRestrictToOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), ppRestrictToOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult SetBackgroundColor(Rgba* pColor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetBackgroundColor(Rgba* pColor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult SetRotation(Common.ModeRotation Rotation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Rotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult GetRotation(Common.ModeRotation* pRotation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pRotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult SetSourceSize(uint Width, uint Height) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), Width, Height); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult GetSourceSize(uint* pWidth, uint* pHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pWidth, pHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult SetMaximumFrameLatency(uint MaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), MaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult GetMaximumFrameLatency(uint* pMaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pMaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public IntPtr GetFrameLatencyWaitableObject() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult SetMatrixTransform(Matrix3x2F* pMatrix) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pMatrix); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetMatrixTransform(Matrix3x2F* pMatrix) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pMatrix); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain3.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain3.cs new file mode 100644 index 0000000..d31ecf0 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain3.cs @@ -0,0 +1,379 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGISwapChain3 +[Guid("94d99bdb-f1f8-4ab0-b236-7da0170edab1")] +[NativeTypeName("struct IDXGISwapChain3 : IDXGISwapChain2")] +[NativeInheritance("IDXGISwapChain2")] +public unsafe partial struct IDXGISwapChain3 +{ + public static ref readonly Guid IID_IDXGISwapChain3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDB, 0x9B, 0xD9, 0x94, + 0xF8, 0xF1, + 0xB0, 0x4A, + 0xB2, + 0x36, + 0x7D, + 0xA0, + 0x17, + 0x0E, + 0xDA, + 0xB1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), riid, ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Present(uint SyncInterval, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), SyncInterval, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetBuffer(uint Buffer, Guid* riid, void** ppSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Buffer, riid, ppSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetFullscreenState(Bool32 Fullscreen, IDXGIOutput* pTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Fullscreen, pTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetFullscreenState(Bool32* pFullscreen, IDXGIOutput** ppTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pFullscreen, ppTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetDesc(SwapChainDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ResizeBuffers(uint BufferCount, uint Width, uint Height, Common.Format NewFormat, uint SwapChainFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, NewFormat, SwapChainFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ResizeTarget(Common.ModeDescription* pNewTargetParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pNewTargetParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetContainingOutput(IDXGIOutput** ppOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), ppOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetFrameStatistics(FrameStatistics* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetLastPresentCount(uint* pLastPresentCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pLastPresentCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetDesc1(SwapChainDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFullscreenDesc(SwapChainFullscreenDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult GetHwnd(IntPtr* pHwnd) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pHwnd); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetCoreWindow(Guid* refiid, void** ppUnk) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), refiid, ppUnk); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Bool32 IsTemporaryMonoSupported() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetRestrictToOutput(IDXGIOutput** ppRestrictToOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), ppRestrictToOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult SetBackgroundColor(Rgba* pColor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetBackgroundColor(Rgba* pColor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult SetRotation(Common.ModeRotation Rotation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Rotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult GetRotation(Common.ModeRotation* pRotation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pRotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult SetSourceSize(uint Width, uint Height) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), Width, Height); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult GetSourceSize(uint* pWidth, uint* pHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pWidth, pHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult SetMaximumFrameLatency(uint MaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), MaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult GetMaximumFrameLatency(uint* pMaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pMaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public IntPtr GetFrameLatencyWaitableObject() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult SetMatrixTransform(Matrix3x2F* pMatrix) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pMatrix); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetMatrixTransform(Matrix3x2F* pMatrix) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), pMatrix); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public uint GetCurrentBackBufferIndex() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult CheckColorSpaceSupport(Common.ColorSpaceType ColorSpace, uint* pColorSpaceSupport) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), ColorSpace, pColorSpaceSupport); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult SetColorSpace1(Common.ColorSpaceType ColorSpace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), ColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult ResizeBuffers1(uint BufferCount, uint Width, uint Height, Common.Format Format, uint SwapChainFlags, uint* pCreationNodeMask, IUnknown** ppPresentQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, Format, SwapChainFlags, pCreationNodeMask, ppPresentQueue); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain4.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain4.cs new file mode 100644 index 0000000..236bcc1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChain4.cs @@ -0,0 +1,387 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGISwapChain4 +[Guid("3d585d5a-bd4a-489e-b1f4-3dbcb6452ffb")] +[NativeTypeName("struct IDXGISwapChain4 : IDXGISwapChain3")] +[NativeInheritance("IDXGISwapChain3")] +public unsafe partial struct IDXGISwapChain4 +{ + public static ref readonly Guid IID_IDXGISwapChain4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5A, 0x5D, 0x58, 0x3D, + 0x4A, 0xBD, + 0x9E, 0x48, + 0xB1, + 0xF4, + 0x3D, + 0xBC, + 0xB6, + 0x45, + 0x2F, + 0xFB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChain4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Name, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Name, pUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Name, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetParent(Guid* riid, void** ppParent) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), riid, ppParent); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppDevice) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), riid, ppDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Present(uint SyncInterval, uint Flags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), SyncInterval, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetBuffer(uint Buffer, Guid* riid, void** ppSurface) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Buffer, riid, ppSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetFullscreenState(Bool32 Fullscreen, IDXGIOutput* pTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Fullscreen, pTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetFullscreenState(Bool32* pFullscreen, IDXGIOutput** ppTarget) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pFullscreen, ppTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetDesc(SwapChainDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult ResizeBuffers(uint BufferCount, uint Width, uint Height, Common.Format NewFormat, uint SwapChainFlags) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, NewFormat, SwapChainFlags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult ResizeTarget(Common.ModeDescription* pNewTargetParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pNewTargetParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetContainingOutput(IDXGIOutput** ppOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), ppOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetFrameStatistics(FrameStatistics* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetLastPresentCount(uint* pLastPresentCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pLastPresentCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetDesc1(SwapChainDescription1* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetFullscreenDesc(SwapChainFullscreenDescription* pDesc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult GetHwnd(IntPtr* pHwnd) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pHwnd); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetCoreWindow(Guid* refiid, void** ppUnk) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), refiid, ppUnk); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public Bool32 IsTemporaryMonoSupported() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetRestrictToOutput(IDXGIOutput** ppRestrictToOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), ppRestrictToOutput); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult SetBackgroundColor(Rgba* pColor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetBackgroundColor(Rgba* pColor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult SetRotation(Common.ModeRotation Rotation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Rotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult GetRotation(Common.ModeRotation* pRotation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pRotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult SetSourceSize(uint Width, uint Height) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Width, Height); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult GetSourceSize(uint* pWidth, uint* pHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pWidth, pHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult SetMaximumFrameLatency(uint MaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), MaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult GetMaximumFrameLatency(uint* pMaxLatency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pMaxLatency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public IntPtr GetFrameLatencyWaitableObject() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult SetMatrixTransform(Matrix3x2F* pMatrix) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pMatrix); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetMatrixTransform(Matrix3x2F* pMatrix) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), pMatrix); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public uint GetCurrentBackBufferIndex() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult CheckColorSpaceSupport(Common.ColorSpaceType ColorSpace, uint* pColorSpaceSupport) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), ColorSpace, pColorSpaceSupport); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult SetColorSpace1(Common.ColorSpaceType ColorSpace) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), ColorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult ResizeBuffers1(uint BufferCount, uint Width, uint Height, Common.Format Format, uint SwapChainFlags, uint* pCreationNodeMask, IUnknown** ppPresentQueue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, Format, SwapChainFlags, pCreationNodeMask, ppPresentQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetHDRMetaData(HdrMetadataType Type, uint Size, void* pMetaData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Type, Size, pMetaData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChainMedia.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChainMedia.cs new file mode 100644 index 0000000..f7785b0 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGISwapChainMedia.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGISwapChainMedia +[Guid("dd95b90b-f05f-4f6a-bd65-25bfb264bd84")] +[NativeTypeName("struct IDXGISwapChainMedia : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDXGISwapChainMedia +{ + public static ref readonly Guid IID_IDXGISwapChainMedia + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0B, 0xB9, 0x95, 0xDD, + 0x5F, 0xF0, + 0x6A, 0x4F, + 0xBD, + 0x65, + 0x25, + 0xBF, + 0xB2, + 0x64, + 0xBD, + 0x84 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGISwapChainMedia)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetFrameStatisticsMedia(FrameStatisticsMedia* pStats) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGISwapChainMedia*)Unsafe.AsPointer(ref this), pStats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPresentDuration(uint Duration) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGISwapChainMedia*)Unsafe.AsPointer(ref this), Duration); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CheckPresentDurationSupport(uint DesiredPresentDuration, uint* pClosestSmallerPresentDuration, uint* pClosestLargerPresentDuration) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDXGISwapChainMedia*)Unsafe.AsPointer(ref this), DesiredPresentDuration, pClosestSmallerPresentDuration, pClosestLargerPresentDuration); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGraphicsAnalysis.cs b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGraphicsAnalysis.cs new file mode 100644 index 0000000..d311d8f --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Dxgi/IDXGraphicsAnalysis.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Dxgi; + +/// +/// IDXGraphicsAnalysis +[Guid("9f251514-9d4d-4902-9d60-18988ab7d4b5")] +[NativeTypeName("struct IDXGraphicsAnalysis : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDXGraphicsAnalysis +{ + public static ref readonly Guid IID_IDXGraphicsAnalysis + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x14, 0x15, 0x25, 0x9F, + 0x4D, 0x9D, + 0x02, 0x49, + 0x9D, + 0x60, + 0x18, + 0x98, + 0x8A, + 0xB7, + 0xD4, + 0xB5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDXGraphicsAnalysis)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void BeginCapture() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDXGraphicsAnalysis*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void EndCapture() + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDXGraphicsAnalysis*)Unsafe.AsPointer(ref this)); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Graphics.cs b/src/Vortice.Win32/Generated/Graphics/Graphics.cs index 63e1e9d..81773fe 100644 --- a/src/Vortice.Win32/Generated/Graphics/Graphics.cs +++ b/src/Vortice.Win32/Generated/Graphics/Graphics.cs @@ -24,26 +24,26 @@ public static partial class Apis } #region Enums -/// +/// /// D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE public enum AffineTransform2DInterpolationMode : uint { - /// + /// /// D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_NEAREST_NEIGHBOR NearestNeighbor = 0, - /// + /// /// D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_LINEAR Linear = 1, - /// + /// /// D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_CUBIC Cubic = 2, - /// + /// /// D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_MULTI_SAMPLE_LINEAR MultiSampleLinear = 3, - /// + /// /// D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_ANISOTROPIC Anisotropic = 4, - /// + /// /// D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_HIGH_QUALITY_CUBIC HighQualityCubic = 5, } diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging.D2D.cs b/src/Vortice.Win32/Generated/Graphics/Imaging.D2D.cs index 8b65176..407f26b 100644 --- a/src/Vortice.Win32/Generated/Graphics/Imaging.D2D.cs +++ b/src/Vortice.Win32/Generated/Graphics/Imaging.D2D.cs @@ -24,335 +24,5 @@ public static partial class Apis } #region COM Types -/// -/// IWICImageEncoder -[Guid("04c75bf8-3ce1-473b-acc5-3cc4f5e94999")] -[NativeTypeName("struct IWICImageEncoder : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICImageEncoder -{ - public static ref readonly Guid IID_IWICImageEncoder - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF8, 0x5B, 0xC7, 0x04, - 0xE1, 0x3C, - 0x3B, 0x47, - 0xAC, - 0xC5, - 0x3C, - 0xC4, - 0xF5, - 0xE9, - 0x49, - 0x99 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICImageEncoder)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult WriteFrame(Graphics.Direct2D.ID2D1Image* pImage, Graphics.Imaging.IWICBitmapFrameEncode* pFrameEncode, Graphics.Imaging.WICImageParameters* pImageParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICImageEncoder*)Unsafe.AsPointer(ref this), pImage, pFrameEncode, pImageParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult WriteFrameThumbnail(Graphics.Direct2D.ID2D1Image* pImage, Graphics.Imaging.IWICBitmapFrameEncode* pFrameEncode, Graphics.Imaging.WICImageParameters* pImageParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICImageEncoder*)Unsafe.AsPointer(ref this), pImage, pFrameEncode, pImageParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult WriteThumbnail(Graphics.Direct2D.ID2D1Image* pImage, Graphics.Imaging.IWICBitmapEncoder* pEncoder, Graphics.Imaging.WICImageParameters* pImageParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICImageEncoder*)Unsafe.AsPointer(ref this), pImage, pEncoder, pImageParameters); - } -} - -/// -/// IWICImagingFactory2 -[Guid("7b816b45-1996-4476-b132-de9e247c8af0")] -[NativeTypeName("struct IWICImagingFactory2 : IWICImagingFactory")] -[NativeInheritance("IWICImagingFactory")] -public unsafe partial struct IWICImagingFactory2 -{ - public static ref readonly Guid IID_IWICImagingFactory2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x45, 0x6B, 0x81, 0x7B, - 0x96, 0x19, - 0x76, 0x44, - 0xB1, - 0x32, - 0xDE, - 0x9E, - 0x24, - 0x7C, - 0x8A, - 0xF0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICImagingFactory2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult CreateDecoderFromFilename(ushort* wzFilename, Guid* pguidVendor, uint dwDesiredAccess, Graphics.Imaging.WICDecodeOptions metadataOptions, Graphics.Imaging.IWICBitmapDecoder** ppIDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), wzFilename, pguidVendor, dwDesiredAccess, metadataOptions, ppIDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public HResult CreateDecoderFromStream(Com.IStream* pIStream, Guid* pguidVendor, Graphics.Imaging.WICDecodeOptions metadataOptions, Graphics.Imaging.IWICBitmapDecoder** ppIDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pIStream, pguidVendor, metadataOptions, ppIDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public HResult CreateDecoderFromFileHandle(nuint hFile, Guid* pguidVendor, Graphics.Imaging.WICDecodeOptions metadataOptions, Graphics.Imaging.IWICBitmapDecoder** ppIDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), hFile, pguidVendor, metadataOptions, ppIDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateComponentInfo(Guid* clsidComponent, Graphics.Imaging.IWICComponentInfo** ppIInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), clsidComponent, ppIInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDecoder(Guid* guidContainerFormat, Guid* pguidVendor, Graphics.Imaging.IWICBitmapDecoder** ppIDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, ppIDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateEncoder(Guid* guidContainerFormat, Guid* pguidVendor, Graphics.Imaging.IWICBitmapEncoder** ppIEncoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, ppIEncoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreatePalette(Graphics.Imaging.IWICPalette** ppIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateFormatConverter(Graphics.Imaging.IWICFormatConverter** ppIFormatConverter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIFormatConverter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateBitmapScaler(Graphics.Imaging.IWICBitmapScaler** ppIBitmapScaler) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIBitmapScaler); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreateBitmapClipper(Graphics.Imaging.IWICBitmapClipper** ppIBitmapClipper) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIBitmapClipper); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateBitmapFlipRotator(Graphics.Imaging.IWICBitmapFlipRotator** ppIBitmapFlipRotator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIBitmapFlipRotator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateStream(Graphics.Imaging.IWICStream** ppIWICStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIWICStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateColorContext(Graphics.Imaging.IWICColorContext** ppIWICColorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIWICColorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateColorTransformer(Graphics.Imaging.IWICColorTransform** ppIWICColorTransform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIWICColorTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateBitmap(uint uiWidth, uint uiHeight, Guid* pixelFormat, Graphics.Imaging.WICBitmapCreateCacheOption option, Graphics.Imaging.IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), uiWidth, uiHeight, pixelFormat, option, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateBitmapFromSource(Graphics.Imaging.IWICBitmapSource* pIBitmapSource, Graphics.Imaging.WICBitmapCreateCacheOption option, Graphics.Imaging.IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pIBitmapSource, option, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateBitmapFromSourceRect(Graphics.Imaging.IWICBitmapSource* pIBitmapSource, uint x, uint y, uint width, uint height, Graphics.Imaging.IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pIBitmapSource, x, y, width, height, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateBitmapFromMemory(uint uiWidth, uint uiHeight, Guid* pixelFormat, uint cbStride, uint cbBufferSize, byte* pbBuffer, Graphics.Imaging.IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), uiWidth, uiHeight, pixelFormat, cbStride, cbBufferSize, pbBuffer, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateBitmapFromHBITMAP(IntPtr hBitmap, IntPtr hPalette, Graphics.Imaging.WICBitmapAlphaChannelOption options, Graphics.Imaging.IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), hBitmap, hPalette, options, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateBitmapFromHICON(IntPtr hIcon, Graphics.Imaging.IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), hIcon, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateComponentEnumerator(uint componentTypes, uint options, Com.IEnumUnknown** ppIEnumUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), componentTypes, options, ppIEnumUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateFastMetadataEncoderFromDecoder(Graphics.Imaging.IWICBitmapDecoder* pIDecoder, Graphics.Imaging.IWICFastMetadataEncoder** ppIFastEncoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pIDecoder, ppIFastEncoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateFastMetadataEncoderFromFrameDecode(Graphics.Imaging.IWICBitmapFrameDecode* pIFrameDecoder, Graphics.Imaging.IWICFastMetadataEncoder** ppIFastEncoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pIFrameDecoder, ppIFastEncoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateQueryWriter(Guid* guidMetadataFormat, Guid* pguidVendor, Graphics.Imaging.IWICMetadataQueryWriter** ppIQueryWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), guidMetadataFormat, pguidVendor, ppIQueryWriter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateQueryWriterFromReader(Graphics.Imaging.IWICMetadataQueryReader* pIQueryReader, Guid* pguidVendor, Graphics.Imaging.IWICMetadataQueryWriter** ppIQueryWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pIQueryReader, pguidVendor, ppIQueryWriter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateImageEncoder(Graphics.Direct2D.ID2D1Device* pD2DDevice, IWICImageEncoder** ppWICImageEncoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pD2DDevice, ppWICImageEncoder); - } -} - #endregion Com Types diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging.cs b/src/Vortice.Win32/Generated/Graphics/Imaging.cs index d5922bb..27fccb5 100644 --- a/src/Vortice.Win32/Generated/Graphics/Imaging.cs +++ b/src/Vortice.Win32/Generated/Graphics/Imaging.cs @@ -7787,6788 +7787,6 @@ public partial struct WICMetadataHeader #endregion Structs #region COM Types -/// -/// IWICPalette -[Guid("00000040-a8f2-4877-ba0a-fd2b6645fb94")] -[NativeTypeName("struct IWICPalette : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICPalette -{ - public static ref readonly Guid IID_IWICPalette - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x40, 0x00, 0x00, 0x00, - 0xF2, 0xA8, - 0x77, 0x48, - 0xBA, - 0x0A, - 0xFD, - 0x2B, - 0x66, - 0x45, - 0xFB, - 0x94 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPalette)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult InitializePredefined(WICBitmapPaletteType ePaletteType, Bool32 fAddTransparentColor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICPalette*)Unsafe.AsPointer(ref this), ePaletteType, fAddTransparentColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult InitializeCustom(uint* pColors, uint cCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICPalette*)Unsafe.AsPointer(ref this), pColors, cCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult InitializeFromBitmap(IWICBitmapSource* pISurface, uint cCount, Bool32 fAddTransparentColor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICPalette*)Unsafe.AsPointer(ref this), pISurface, cCount, fAddTransparentColor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult InitializeFromPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICPalette*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetType(WICBitmapPaletteType* pePaletteType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICPalette*)Unsafe.AsPointer(ref this), pePaletteType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetColorCount(uint* pcCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICPalette*)Unsafe.AsPointer(ref this), pcCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetColors(uint cCount, uint* pColors, uint* pcActualColors) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICPalette*)Unsafe.AsPointer(ref this), cCount, pColors, pcActualColors); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult IsBlackWhite(Bool32* pfIsBlackWhite) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICPalette*)Unsafe.AsPointer(ref this), pfIsBlackWhite); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult IsGrayscale(Bool32* pfIsGrayscale) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICPalette*)Unsafe.AsPointer(ref this), pfIsGrayscale); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult HasAlpha(Bool32* pfHasAlpha) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICPalette*)Unsafe.AsPointer(ref this), pfHasAlpha); - } -} - -/// -/// IWICBitmapSource -[Guid("00000120-a8f2-4877-ba0a-fd2b6645fb94")] -[NativeTypeName("struct IWICBitmapSource : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapSource -{ - public static ref readonly Guid IID_IWICBitmapSource - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x20, 0x01, 0x00, 0x00, - 0xF2, 0xA8, - 0x77, 0x48, - 0xBA, - 0x0A, - 0xFD, - 0x2B, - 0x66, - 0x45, - 0xFB, - 0x94 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapSource)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSize(uint* puiWidth, uint* puiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapSource*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPixelFormat(Guid* pPixelFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapSource*)Unsafe.AsPointer(ref this), pPixelFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetResolution(double* pDpiX, double* pDpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapSource*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CopyPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapSource*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapSource*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); - } -} - -/// -/// IWICFormatConverter -[Guid("00000301-a8f2-4877-ba0a-fd2b6645fb94")] -[NativeTypeName("struct IWICFormatConverter : IWICBitmapSource")] -[NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICFormatConverter -{ - public static ref readonly Guid IID_IWICFormatConverter - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x01, 0x03, 0x00, 0x00, - 0xF2, 0xA8, - 0x77, 0x48, - 0xBA, - 0x0A, - 0xFD, - 0x2B, - 0x66, - 0x45, - 0xFB, - 0x94 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICFormatConverter)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSize(uint* puiWidth, uint* puiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPixelFormat(Guid* pPixelFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), pPixelFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetResolution(double* pDpiX, double* pDpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CopyPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Initialize(IWICBitmapSource* pISource, Guid* dstFormat, WICBitmapDitherType dither, IWICPalette* pIPalette, double alphaThresholdPercent, WICBitmapPaletteType paletteTranslate) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), pISource, dstFormat, dither, pIPalette, alphaThresholdPercent, paletteTranslate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CanConvert(Guid* srcPixelFormat, Guid* dstPixelFormat, Bool32* pfCanConvert) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), srcPixelFormat, dstPixelFormat, pfCanConvert); - } -} - -/// -/// IWICPlanarFormatConverter -[Guid("bebee9cb-83b0-4dcc-8132-b0aaa55eac96")] -[NativeTypeName("struct IWICPlanarFormatConverter : IWICBitmapSource")] -[NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICPlanarFormatConverter -{ - public static ref readonly Guid IID_IWICPlanarFormatConverter - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCB, 0xE9, 0xBE, 0xBE, - 0xB0, 0x83, - 0xCC, 0x4D, - 0x81, - 0x32, - 0xB0, - 0xAA, - 0xA5, - 0x5E, - 0xAC, - 0x96 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPlanarFormatConverter)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSize(uint* puiWidth, uint* puiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPixelFormat(Guid* pPixelFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), pPixelFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetResolution(double* pDpiX, double* pDpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CopyPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Initialize(IWICBitmapSource** ppPlanes, uint cPlanes, Guid* dstFormat, WICBitmapDitherType dither, IWICPalette* pIPalette, double alphaThresholdPercent, WICBitmapPaletteType paletteTranslate) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), ppPlanes, cPlanes, dstFormat, dither, pIPalette, alphaThresholdPercent, paletteTranslate); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CanConvert(Guid* pSrcPixelFormats, uint cSrcPlanes, Guid* dstPixelFormat, Bool32* pfCanConvert) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), pSrcPixelFormats, cSrcPlanes, dstPixelFormat, pfCanConvert); - } -} - -/// -/// IWICBitmapScaler -[Guid("00000302-a8f2-4877-ba0a-fd2b6645fb94")] -[NativeTypeName("struct IWICBitmapScaler : IWICBitmapSource")] -[NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICBitmapScaler -{ - public static ref readonly Guid IID_IWICBitmapScaler - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x02, 0x03, 0x00, 0x00, - 0xF2, 0xA8, - 0x77, 0x48, - 0xBA, - 0x0A, - 0xFD, - 0x2B, - 0x66, - 0x45, - 0xFB, - 0x94 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapScaler)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSize(uint* puiWidth, uint* puiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapScaler*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPixelFormat(Guid* pPixelFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapScaler*)Unsafe.AsPointer(ref this), pPixelFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetResolution(double* pDpiX, double* pDpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapScaler*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CopyPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapScaler*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapScaler*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Initialize(IWICBitmapSource* pISource, uint uiWidth, uint uiHeight, WICBitmapInterpolationMode mode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapScaler*)Unsafe.AsPointer(ref this), pISource, uiWidth, uiHeight, mode); - } -} - -/// -/// IWICBitmapClipper -[Guid("e4fbcf03-223d-4e81-9333-d635556dd1b5")] -[NativeTypeName("struct IWICBitmapClipper : IWICBitmapSource")] -[NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICBitmapClipper -{ - public static ref readonly Guid IID_IWICBitmapClipper - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x03, 0xCF, 0xFB, 0xE4, - 0x3D, 0x22, - 0x81, 0x4E, - 0x93, - 0x33, - 0xD6, - 0x35, - 0x55, - 0x6D, - 0xD1, - 0xB5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapClipper)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSize(uint* puiWidth, uint* puiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapClipper*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPixelFormat(Guid* pPixelFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapClipper*)Unsafe.AsPointer(ref this), pPixelFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetResolution(double* pDpiX, double* pDpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapClipper*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CopyPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapClipper*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapClipper*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Initialize(IWICBitmapSource* pISource, System.Drawing.Rectangle* prc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapClipper*)Unsafe.AsPointer(ref this), pISource, prc); - } -} - -/// -/// IWICBitmapFlipRotator -[Guid("5009834f-2d6a-41ce-9e1b-17c5aff7a782")] -[NativeTypeName("struct IWICBitmapFlipRotator : IWICBitmapSource")] -[NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICBitmapFlipRotator -{ - public static ref readonly Guid IID_IWICBitmapFlipRotator - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4F, 0x83, 0x09, 0x50, - 0x6A, 0x2D, - 0xCE, 0x41, - 0x9E, - 0x1B, - 0x17, - 0xC5, - 0xAF, - 0xF7, - 0xA7, - 0x82 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapFlipRotator)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSize(uint* puiWidth, uint* puiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapFlipRotator*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPixelFormat(Guid* pPixelFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapFlipRotator*)Unsafe.AsPointer(ref this), pPixelFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetResolution(double* pDpiX, double* pDpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapFlipRotator*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CopyPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapFlipRotator*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapFlipRotator*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Initialize(IWICBitmapSource* pISource, WICBitmapTransformOptions options) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapFlipRotator*)Unsafe.AsPointer(ref this), pISource, options); - } -} - -/// -/// IWICBitmapLock -[Guid("00000123-a8f2-4877-ba0a-fd2b6645fb94")] -[NativeTypeName("struct IWICBitmapLock : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapLock -{ - public static ref readonly Guid IID_IWICBitmapLock - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x23, 0x01, 0x00, 0x00, - 0xF2, 0xA8, - 0x77, 0x48, - 0xBA, - 0x0A, - 0xFD, - 0x2B, - 0x66, - 0x45, - 0xFB, - 0x94 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapLock)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSize(uint* puiWidth, uint* puiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapLock*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetStride(uint* pcbStride) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapLock*)Unsafe.AsPointer(ref this), pcbStride); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetDataPointer(uint* pcbBufferSize, byte** ppbData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapLock*)Unsafe.AsPointer(ref this), pcbBufferSize, ppbData); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetPixelFormat(Guid* pPixelFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapLock*)Unsafe.AsPointer(ref this), pPixelFormat); - } -} - -/// -/// IWICBitmap -[Guid("00000121-a8f2-4877-ba0a-fd2b6645fb94")] -[NativeTypeName("struct IWICBitmap : IWICBitmapSource")] -[NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICBitmap -{ - public static ref readonly Guid IID_IWICBitmap - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x21, 0x01, 0x00, 0x00, - 0xF2, 0xA8, - 0x77, 0x48, - 0xBA, - 0x0A, - 0xFD, - 0x2B, - 0x66, - 0x45, - 0xFB, - 0x94 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmap)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSize(uint* puiWidth, uint* puiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmap*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPixelFormat(Guid* pPixelFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmap*)Unsafe.AsPointer(ref this), pPixelFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetResolution(double* pDpiX, double* pDpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmap*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CopyPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmap*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmap*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Lock(System.Drawing.Rectangle* prcLock, WICBitmapLockFlags flags, IWICBitmapLock** ppILock) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmap*)Unsafe.AsPointer(ref this), prcLock, flags, ppILock); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmap*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetResolution(double dpiX, double dpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmap*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } -} - -/// -/// IWICColorContext -[Guid("3c613a02-34b2-44ea-9a7c-45aea9c6fd6d")] -[NativeTypeName("struct IWICColorContext : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICColorContext -{ - public static ref readonly Guid IID_IWICColorContext - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x02, 0x3A, 0x61, 0x3C, - 0xB2, 0x34, - 0xEA, 0x44, - 0x9A, - 0x7C, - 0x45, - 0xAE, - 0xA9, - 0xC6, - 0xFD, - 0x6D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICColorContext)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult InitializeFromFilename(ushort* wzFilename) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICColorContext*)Unsafe.AsPointer(ref this), wzFilename); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult InitializeFromMemory(byte* pbBuffer, uint cbBufferSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICColorContext*)Unsafe.AsPointer(ref this), pbBuffer, cbBufferSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult InitializeFromExifColorSpace(uint value) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICColorContext*)Unsafe.AsPointer(ref this), value); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetType(WICColorContextType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICColorContext*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetProfileBytes(uint cbBuffer, byte* pbBuffer, uint* pcbActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICColorContext*)Unsafe.AsPointer(ref this), cbBuffer, pbBuffer, pcbActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetExifColorSpace(uint* pValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICColorContext*)Unsafe.AsPointer(ref this), pValue); - } -} - -/// -/// IWICColorTransform -[Guid("b66f034f-d0e2-40ab-b436-6de39e321a94")] -[NativeTypeName("struct IWICColorTransform : IWICBitmapSource")] -[NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICColorTransform -{ - public static ref readonly Guid IID_IWICColorTransform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4F, 0x03, 0x6F, 0xB6, - 0xE2, 0xD0, - 0xAB, 0x40, - 0xB4, - 0x36, - 0x6D, - 0xE3, - 0x9E, - 0x32, - 0x1A, - 0x94 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICColorTransform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSize(uint* puiWidth, uint* puiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICColorTransform*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPixelFormat(Guid* pPixelFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICColorTransform*)Unsafe.AsPointer(ref this), pPixelFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetResolution(double* pDpiX, double* pDpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICColorTransform*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CopyPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICColorTransform*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICColorTransform*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult Initialize(IWICBitmapSource* pIBitmapSource, IWICColorContext* pIContextSource, IWICColorContext* pIContextDest, Guid* pixelFmtDest) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICColorTransform*)Unsafe.AsPointer(ref this), pIBitmapSource, pIContextSource, pIContextDest, pixelFmtDest); - } -} - -/// -/// IWICFastMetadataEncoder -[Guid("b84e2c09-78c9-4ac4-8bd3-524ae1663a2f")] -[NativeTypeName("struct IWICFastMetadataEncoder : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICFastMetadataEncoder -{ - public static ref readonly Guid IID_IWICFastMetadataEncoder - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x09, 0x2C, 0x4E, 0xB8, - 0xC9, 0x78, - 0xC4, 0x4A, - 0x8B, - 0xD3, - 0x52, - 0x4A, - 0xE1, - 0x66, - 0x3A, - 0x2F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICFastMetadataEncoder)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Commit() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICFastMetadataEncoder*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetMetadataQueryWriter(IWICMetadataQueryWriter** ppIMetadataQueryWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICFastMetadataEncoder*)Unsafe.AsPointer(ref this), ppIMetadataQueryWriter); - } -} - -/// -/// IWICStream -[Guid("135ff860-22b7-4ddf-b0f6-218f4f299a43")] -[NativeTypeName("struct IWICStream : IStream")] -[NativeInheritance("IStream")] -public unsafe partial struct IWICStream -{ - public static ref readonly Guid IID_IWICStream - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x60, 0xF8, 0x5F, 0x13, - 0xB7, 0x22, - 0xDF, 0x4D, - 0xB0, - 0xF6, - 0x21, - 0x8F, - 0x4F, - 0x29, - 0x9A, - 0x43 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICStream)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult InitializeFromIStream(Com.IStream* pIStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IWICStream*)Unsafe.AsPointer(ref this), pIStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public HResult InitializeFromFilename(ushort* wzFileName, uint dwDesiredAccess) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IWICStream*)Unsafe.AsPointer(ref this), wzFileName, dwDesiredAccess); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - public HResult InitializeFromMemory(byte* pbBuffer, uint cbBufferSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IWICStream*)Unsafe.AsPointer(ref this), pbBuffer, cbBufferSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult InitializeFromIStreamRegion(Com.IStream* pIStream, ULargeInteger ulOffset, ULargeInteger ulMaxSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICStream*)Unsafe.AsPointer(ref this), pIStream, ulOffset, ulMaxSize); - } -} - -/// -/// IWICEnumMetadataItem -[Guid("dc2bb46d-3f07-481e-8625-220c4aedbb33")] -[NativeTypeName("struct IWICEnumMetadataItem : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICEnumMetadataItem -{ - public static ref readonly Guid IID_IWICEnumMetadataItem - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6D, 0xB4, 0x2B, 0xDC, - 0x07, 0x3F, - 0x1E, 0x48, - 0x86, - 0x25, - 0x22, - 0x0C, - 0x4A, - 0xED, - 0xBB, - 0x33 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICEnumMetadataItem)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Next(uint celt, Com.Variant** rgeltSchema, Com.Variant** rgeltId, Com.Variant** rgeltValue, uint* pceltFetched) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICEnumMetadataItem*)Unsafe.AsPointer(ref this), celt, rgeltSchema, rgeltId, rgeltValue, pceltFetched); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Skip(uint celt) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICEnumMetadataItem*)Unsafe.AsPointer(ref this), celt); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult Reset() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICEnumMetadataItem*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult Clone(IWICEnumMetadataItem** ppIEnumMetadataItem) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICEnumMetadataItem*)Unsafe.AsPointer(ref this), ppIEnumMetadataItem); - } -} - -/// -/// IWICMetadataQueryReader -[Guid("30989668-e1c9-4597-b395-458eedb808df")] -[NativeTypeName("struct IWICMetadataQueryReader : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICMetadataQueryReader -{ - public static ref readonly Guid IID_IWICMetadataQueryReader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x68, 0x96, 0x98, 0x30, - 0xC9, 0xE1, - 0x97, 0x45, - 0xB3, - 0x95, - 0x45, - 0x8E, - 0xED, - 0xB8, - 0x08, - 0xDF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataQueryReader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetContainerFormat(Guid* pguidContainerFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataQueryReader*)Unsafe.AsPointer(ref this), pguidContainerFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetLocation(uint cchMaxLength, ushort* wzNamespace, uint* pcchActualLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataQueryReader*)Unsafe.AsPointer(ref this), cchMaxLength, wzNamespace, pcchActualLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetMetadataByName(ushort* wzName, Com.Variant** pvarValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataQueryReader*)Unsafe.AsPointer(ref this), wzName, pvarValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetEnumerator(Com.IEnumString** ppIEnumString) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataQueryReader*)Unsafe.AsPointer(ref this), ppIEnumString); - } -} - -/// -/// IWICMetadataQueryWriter -[Guid("a721791a-0def-4d06-bd91-2118bf1db10b")] -[NativeTypeName("struct IWICMetadataQueryWriter : IWICMetadataQueryReader")] -[NativeInheritance("IWICMetadataQueryReader")] -public unsafe partial struct IWICMetadataQueryWriter -{ - public static ref readonly Guid IID_IWICMetadataQueryWriter - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1A, 0x79, 0x21, 0xA7, - 0xEF, 0x0D, - 0x06, 0x4D, - 0xBD, - 0x91, - 0x21, - 0x18, - 0xBF, - 0x1D, - 0xB1, - 0x0B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataQueryWriter)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetContainerFormat(Guid* pguidContainerFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), pguidContainerFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetLocation(uint cchMaxLength, ushort* wzNamespace, uint* pcchActualLength) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), cchMaxLength, wzNamespace, pcchActualLength); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetMetadataByName(ushort* wzName, Com.Variant** pvarValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), wzName, pvarValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetEnumerator(Com.IEnumString** ppIEnumString) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), ppIEnumString); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetMetadataByName(ushort* wzName, Com.Variant* pvarValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), wzName, pvarValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult RemoveMetadataByName(ushort* wzName) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), wzName); - } -} - -/// -/// IWICBitmapEncoder -[Guid("00000103-a8f2-4877-ba0a-fd2b6645fb94")] -[NativeTypeName("struct IWICBitmapEncoder : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapEncoder -{ - public static ref readonly Guid IID_IWICBitmapEncoder - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x03, 0x01, 0x00, 0x00, - 0xF2, 0xA8, - 0x77, 0x48, - 0xBA, - 0x0A, - 0xFD, - 0x2B, - 0x66, - 0x45, - 0xFB, - 0x94 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapEncoder)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Initialize(Com.IStream* pIStream, WICBitmapEncoderCacheOption cacheOption) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), pIStream, cacheOption); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetContainerFormat(Guid* pguidContainerFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), pguidContainerFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetEncoderInfo(IWICBitmapEncoderInfo** ppIEncoderInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), ppIEncoderInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetColorContexts(uint cCount, IWICColorContext** ppIColorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), cCount, ppIColorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetThumbnail(IWICBitmapSource* pIThumbnail) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), pIThumbnail); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetPreview(IWICBitmapSource* pIPreview) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), pIPreview); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateNewFrame(IWICBitmapFrameEncode** ppIFrameEncode, Com.IPropertyBag2** ppIEncoderOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), ppIFrameEncode, ppIEncoderOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult Commit() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetMetadataQueryWriter(IWICMetadataQueryWriter** ppIMetadataQueryWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), ppIMetadataQueryWriter); - } -} - -/// -/// IWICBitmapFrameEncode -[Guid("00000105-a8f2-4877-ba0a-fd2b6645fb94")] -[NativeTypeName("struct IWICBitmapFrameEncode : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapFrameEncode -{ - public static ref readonly Guid IID_IWICBitmapFrameEncode - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x05, 0x01, 0x00, 0x00, - 0xF2, 0xA8, - 0x77, 0x48, - 0xBA, - 0x0A, - 0xFD, - 0x2B, - 0x66, - 0x45, - 0xFB, - 0x94 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapFrameEncode)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Initialize(Com.IPropertyBag2* pIEncoderOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), pIEncoderOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetSize(uint uiWidth, uint uiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), uiWidth, uiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetResolution(double dpiX, double dpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), dpiX, dpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult SetPixelFormat(Guid* pPixelFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), pPixelFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult SetColorContexts(uint cCount, IWICColorContext** ppIColorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), cCount, ppIColorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult SetPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetThumbnail(IWICBitmapSource* pIThumbnail) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), pIThumbnail); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult WritePixels(uint lineCount, uint cbStride, uint cbBufferSize, byte* pbPixels) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), lineCount, cbStride, cbBufferSize, pbPixels); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult WriteSource(IWICBitmapSource* pIBitmapSource, System.Drawing.Rectangle* prc) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), pIBitmapSource, prc); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult Commit() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetMetadataQueryWriter(IWICMetadataQueryWriter** ppIMetadataQueryWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), ppIMetadataQueryWriter); - } -} - -/// -/// IWICPlanarBitmapFrameEncode -[Guid("f928b7b8-2221-40c1-b72e-7e82f1974d1a")] -[NativeTypeName("struct IWICPlanarBitmapFrameEncode : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICPlanarBitmapFrameEncode -{ - public static ref readonly Guid IID_IWICPlanarBitmapFrameEncode - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB8, 0xB7, 0x28, 0xF9, - 0x21, 0x22, - 0xC1, 0x40, - 0xB7, - 0x2E, - 0x7E, - 0x82, - 0xF1, - 0x97, - 0x4D, - 0x1A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPlanarBitmapFrameEncode)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult WritePixels(uint lineCount, WICBitmapPlane* pPlanes, uint cPlanes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICPlanarBitmapFrameEncode*)Unsafe.AsPointer(ref this), lineCount, pPlanes, cPlanes); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult WriteSource(IWICBitmapSource** ppPlanes, uint cPlanes, System.Drawing.Rectangle* prcSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICPlanarBitmapFrameEncode*)Unsafe.AsPointer(ref this), ppPlanes, cPlanes, prcSource); - } -} - -/// -/// IWICBitmapDecoder -[Guid("9edde9e7-8dee-47ea-99df-e6faf2ed44bf")] -[NativeTypeName("struct IWICBitmapDecoder : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapDecoder -{ - public static ref readonly Guid IID_IWICBitmapDecoder - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE7, 0xE9, 0xDD, 0x9E, - 0xEE, 0x8D, - 0xEA, 0x47, - 0x99, - 0xDF, - 0xE6, - 0xFA, - 0xF2, - 0xED, - 0x44, - 0xBF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapDecoder)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult QueryCapability(Com.IStream* pIStream, uint* pdwCapability) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), pIStream, pdwCapability); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult Initialize(Com.IStream* pIStream, WICDecodeOptions cacheOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), pIStream, cacheOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetContainerFormat(Guid* pguidContainerFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), pguidContainerFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDecoderInfo(IWICBitmapDecoderInfo** ppIDecoderInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), ppIDecoderInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CopyPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetMetadataQueryReader(IWICMetadataQueryReader** ppIMetadataQueryReader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), ppIMetadataQueryReader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetPreview(IWICBitmapSource** ppIBitmapSource) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), ppIBitmapSource); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetColorContexts(uint cCount, IWICColorContext** ppIColorContexts, uint* pcActualCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), cCount, ppIColorContexts, pcActualCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetThumbnail(IWICBitmapSource** ppIThumbnail) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), ppIThumbnail); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetFrameCount(uint* pCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), pCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetFrame(uint index, IWICBitmapFrameDecode** ppIBitmapFrame) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), index, ppIBitmapFrame); - } -} - -/// -/// IWICBitmapSourceTransform -[Guid("3b16811b-6a43-4ec9-b713-3d5a0c13b940")] -[NativeTypeName("struct IWICBitmapSourceTransform : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapSourceTransform -{ - public static ref readonly Guid IID_IWICBitmapSourceTransform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1B, 0x81, 0x16, 0x3B, - 0x43, 0x6A, - 0xC9, 0x4E, - 0xB7, - 0x13, - 0x3D, - 0x5A, - 0x0C, - 0x13, - 0xB9, - 0x40 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapSourceTransform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CopyPixels(System.Drawing.Rectangle* prc, uint uiWidth, uint uiHeight, Guid* pguidDstFormat, WICBitmapTransformOptions dstTransform, uint nStride, uint cbBufferSize, byte* pbBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapSourceTransform*)Unsafe.AsPointer(ref this), prc, uiWidth, uiHeight, pguidDstFormat, dstTransform, nStride, cbBufferSize, pbBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetClosestSize(uint* puiWidth, uint* puiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapSourceTransform*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetClosestPixelFormat(Guid* pguidDstFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapSourceTransform*)Unsafe.AsPointer(ref this), pguidDstFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult DoesSupportTransform(WICBitmapTransformOptions dstTransform, Bool32* pfIsSupported) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapSourceTransform*)Unsafe.AsPointer(ref this), dstTransform, pfIsSupported); - } -} - -/// -/// IWICPlanarBitmapSourceTransform -[Guid("3aff9cce-be95-4303-b927-e7d16ff4a613")] -[NativeTypeName("struct IWICPlanarBitmapSourceTransform : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICPlanarBitmapSourceTransform -{ - public static ref readonly Guid IID_IWICPlanarBitmapSourceTransform - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCE, 0x9C, 0xFF, 0x3A, - 0x95, 0xBE, - 0x03, 0x43, - 0xB9, - 0x27, - 0xE7, - 0xD1, - 0x6F, - 0xF4, - 0xA6, - 0x13 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPlanarBitmapSourceTransform)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult DoesSupportTransform(uint* puiWidth, uint* puiHeight, WICBitmapTransformOptions dstTransform, WICPlanarOptions dstPlanarOptions, Guid* pguidDstFormats, WICBitmapPlaneDescription* pPlaneDescriptions, uint cPlanes, Bool32* pfIsSupported) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICPlanarBitmapSourceTransform*)Unsafe.AsPointer(ref this), puiWidth, puiHeight, dstTransform, dstPlanarOptions, pguidDstFormats, pPlaneDescriptions, cPlanes, pfIsSupported); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CopyPixels(System.Drawing.Rectangle* prcSource, uint uiWidth, uint uiHeight, WICBitmapTransformOptions dstTransform, WICPlanarOptions dstPlanarOptions, WICBitmapPlane* pDstPlanes, uint cPlanes) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICPlanarBitmapSourceTransform*)Unsafe.AsPointer(ref this), prcSource, uiWidth, uiHeight, dstTransform, dstPlanarOptions, pDstPlanes, cPlanes); - } -} - -/// -/// IWICBitmapFrameDecode -[Guid("3b16811b-6a43-4ec9-a813-3d930c13b940")] -[NativeTypeName("struct IWICBitmapFrameDecode : IWICBitmapSource")] -[NativeInheritance("IWICBitmapSource")] -public unsafe partial struct IWICBitmapFrameDecode -{ - public static ref readonly Guid IID_IWICBitmapFrameDecode - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1B, 0x81, 0x16, 0x3B, - 0x43, 0x6A, - 0xC9, 0x4E, - 0xA8, - 0x13, - 0x3D, - 0x93, - 0x0C, - 0x13, - 0xB9, - 0x40 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapFrameDecode)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSize(uint* puiWidth, uint* puiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPixelFormat(Guid* pPixelFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), pPixelFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetResolution(double* pDpiX, double* pDpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CopyPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetMetadataQueryReader(IWICMetadataQueryReader** ppIMetadataQueryReader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), ppIMetadataQueryReader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetColorContexts(uint cCount, IWICColorContext** ppIColorContexts, uint* pcActualCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), cCount, ppIColorContexts, pcActualCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetThumbnail(IWICBitmapSource** ppIThumbnail) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), ppIThumbnail); - } -} - -/// -/// IWICProgressiveLevelControl -[Guid("daac296f-7aa5-4dbf-8d15-225c5976f891")] -[NativeTypeName("struct IWICProgressiveLevelControl : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICProgressiveLevelControl -{ - public static ref readonly Guid IID_IWICProgressiveLevelControl - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6F, 0x29, 0xAC, 0xDA, - 0xA5, 0x7A, - 0xBF, 0x4D, - 0x8D, - 0x15, - 0x22, - 0x5C, - 0x59, - 0x76, - 0xF8, - 0x91 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICProgressiveLevelControl)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetLevelCount(uint* pcLevels) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICProgressiveLevelControl*)Unsafe.AsPointer(ref this), pcLevels); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCurrentLevel(uint* pnLevel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICProgressiveLevelControl*)Unsafe.AsPointer(ref this), pnLevel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult SetCurrentLevel(uint nLevel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICProgressiveLevelControl*)Unsafe.AsPointer(ref this), nLevel); - } -} - -/// -/// IWICProgressCallback -[Guid("4776f9cd-9517-45fa-bf24-e89c5ec5c60c")] -[NativeTypeName("struct IWICProgressCallback : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICProgressCallback -{ - public static ref readonly Guid IID_IWICProgressCallback - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCD, 0xF9, 0x76, 0x47, - 0x17, 0x95, - 0xFA, 0x45, - 0xBF, - 0x24, - 0xE8, - 0x9C, - 0x5E, - 0xC5, - 0xC6, - 0x0C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICProgressCallback)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Notify(uint uFrameNum, WICProgressOperation operation, double dblProgress) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICProgressCallback*)Unsafe.AsPointer(ref this), uFrameNum, operation, dblProgress); - } -} - -/// -/// IWICBitmapCodecProgressNotification -[Guid("64c1024e-c3cf-4462-8078-88c2b11c46d9")] -[NativeTypeName("struct IWICBitmapCodecProgressNotification : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICBitmapCodecProgressNotification -{ - public static ref readonly Guid IID_IWICBitmapCodecProgressNotification - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4E, 0x02, 0xC1, 0x64, - 0xCF, 0xC3, - 0x62, 0x44, - 0x80, - 0x78, - 0x88, - 0xC2, - 0xB1, - 0x1C, - 0x46, - 0xD9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapCodecProgressNotification)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult RegisterProgressNotification(delegate* unmanaged[Stdcall] pfnProgressNotification, void* pvData, uint dwProgressFlags) - { - return ((delegate* unmanaged[Stdcall], void*, uint, int>)(lpVtbl[3]))((IWICBitmapCodecProgressNotification*)Unsafe.AsPointer(ref this), pfnProgressNotification, pvData, dwProgressFlags); - } -} - -/// -/// IWICComponentInfo -[Guid("23bc3f0a-698b-4357-886b-f24d50671334")] -[NativeTypeName("struct IWICComponentInfo : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICComponentInfo -{ - public static ref readonly Guid IID_IWICComponentInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0A, 0x3F, 0xBC, 0x23, - 0x8B, 0x69, - 0x57, 0x43, - 0x88, - 0x6B, - 0xF2, - 0x4D, - 0x50, - 0x67, - 0x13, - 0x34 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICComponentInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetComponentType(WICComponentType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCLSID(Guid* pclsid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), pclsid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetSigningStatus(uint* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetVendorGUID(Guid* pguidVendor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), pguidVendor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); - } -} - -/// -/// IWICFormatConverterInfo -[Guid("9f34fb65-13f4-4f15-bc57-3726b5e53d9f")] -[NativeTypeName("struct IWICFormatConverterInfo : IWICComponentInfo")] -[NativeInheritance("IWICComponentInfo")] -public unsafe partial struct IWICFormatConverterInfo -{ - public static ref readonly Guid IID_IWICFormatConverterInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x65, 0xFB, 0x34, 0x9F, - 0xF4, 0x13, - 0x15, 0x4F, - 0xBC, - 0x57, - 0x37, - 0x26, - 0xB5, - 0xE5, - 0x3D, - 0x9F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICFormatConverterInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetComponentType(WICComponentType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCLSID(Guid* pclsid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), pclsid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetSigningStatus(uint* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetVendorGUID(Guid* pguidVendor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), pguidVendor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetPixelFormats(uint cFormats, Guid* pPixelFormatGUIDs, uint* pcActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cFormats, pPixelFormatGUIDs, pcActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateInstance(IWICFormatConverter** ppIConverter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), ppIConverter); - } -} - -/// -/// IWICBitmapCodecInfo -[Guid("e87a44c4-b76e-4c47-8b09-298eb12a2714")] -[NativeTypeName("struct IWICBitmapCodecInfo : IWICComponentInfo")] -[NativeInheritance("IWICComponentInfo")] -public unsafe partial struct IWICBitmapCodecInfo -{ - public static ref readonly Guid IID_IWICBitmapCodecInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC4, 0x44, 0x7A, 0xE8, - 0x6E, 0xB7, - 0x47, 0x4C, - 0x8B, - 0x09, - 0x29, - 0x8E, - 0xB1, - 0x2A, - 0x27, - 0x14 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapCodecInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetComponentType(WICComponentType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCLSID(Guid* pclsid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pclsid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetSigningStatus(uint* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetVendorGUID(Guid* pguidVendor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pguidVendor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetContainerFormat(Guid* pguidContainerFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pguidContainerFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetPixelFormats(uint cFormats, Guid* pguidPixelFormats, uint* pcActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cFormats, pguidPixelFormats, pcActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetColorManagementVersion(uint cchColorManagementVersion, ushort* wzColorManagementVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchColorManagementVersion, wzColorManagementVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetMimeTypes(uint cchMimeTypes, ushort* wzMimeTypes, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchMimeTypes, wzMimeTypes, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetFileExtensions(uint cchFileExtensions, ushort* wzFileExtensions, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchFileExtensions, wzFileExtensions, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult DoesSupportAnimation(Bool32* pfSupportAnimation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pfSupportAnimation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult DoesSupportChromakey(Bool32* pfSupportChromakey) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pfSupportChromakey); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult DoesSupportLossless(Bool32* pfSupportLossless) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pfSupportLossless); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult DoesSupportMultiframe(Bool32* pfSupportMultiframe) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pfSupportMultiframe); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult MatchesMimeType(ushort* wzMimeType, Bool32* pfMatches) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), wzMimeType, pfMatches); - } -} - -/// -/// IWICBitmapEncoderInfo -[Guid("94c9b4ee-a09f-4f92-8a1e-4a9bce7e76fb")] -[NativeTypeName("struct IWICBitmapEncoderInfo : IWICBitmapCodecInfo")] -[NativeInheritance("IWICBitmapCodecInfo")] -public unsafe partial struct IWICBitmapEncoderInfo -{ - public static ref readonly Guid IID_IWICBitmapEncoderInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEE, 0xB4, 0xC9, 0x94, - 0x9F, 0xA0, - 0x92, 0x4F, - 0x8A, - 0x1E, - 0x4A, - 0x9B, - 0xCE, - 0x7E, - 0x76, - 0xFB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapEncoderInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetContainerFormat(Guid* pguidContainerFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pguidContainerFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPixelFormats(uint cFormats, Guid* pguidPixelFormats, uint* pcActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cFormats, pguidPixelFormats, pcActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetColorManagementVersion(uint cchColorManagementVersion, ushort* wzColorManagementVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchColorManagementVersion, wzColorManagementVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetMimeTypes(uint cchMimeTypes, ushort* wzMimeTypes, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchMimeTypes, wzMimeTypes, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetFileExtensions(uint cchFileExtensions, ushort* wzFileExtensions, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchFileExtensions, wzFileExtensions, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult DoesSupportAnimation(Bool32* pfSupportAnimation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pfSupportAnimation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult DoesSupportChromakey(Bool32* pfSupportChromakey) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pfSupportChromakey); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult DoesSupportLossless(Bool32* pfSupportLossless) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pfSupportLossless); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult DoesSupportMultiframe(Bool32* pfSupportMultiframe) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pfSupportMultiframe); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult MatchesMimeType(ushort* wzMimeType, Bool32* pfMatches) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), wzMimeType, pfMatches); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetComponentType(WICComponentType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetCLSID(Guid* pclsid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pclsid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetSigningStatus(uint* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetVendorGUID(Guid* pguidVendor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pguidVendor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateInstance(IWICBitmapEncoder** ppIBitmapEncoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), ppIBitmapEncoder); - } -} - -/// -/// IWICBitmapDecoderInfo -[Guid("d8cd007f-d08f-4191-9bfc-236ea7f0e4b5")] -[NativeTypeName("struct IWICBitmapDecoderInfo : IWICBitmapCodecInfo")] -[NativeInheritance("IWICBitmapCodecInfo")] -public unsafe partial struct IWICBitmapDecoderInfo -{ - public static ref readonly Guid IID_IWICBitmapDecoderInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7F, 0x00, 0xCD, 0xD8, - 0x8F, 0xD0, - 0x91, 0x41, - 0x9B, - 0xFC, - 0x23, - 0x6E, - 0xA7, - 0xF0, - 0xE4, - 0xB5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapDecoderInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetContainerFormat(Guid* pguidContainerFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pguidContainerFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPixelFormats(uint cFormats, Guid* pguidPixelFormats, uint* pcActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cFormats, pguidPixelFormats, pcActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetColorManagementVersion(uint cchColorManagementVersion, ushort* wzColorManagementVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchColorManagementVersion, wzColorManagementVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetMimeTypes(uint cchMimeTypes, ushort* wzMimeTypes, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchMimeTypes, wzMimeTypes, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetFileExtensions(uint cchFileExtensions, ushort* wzFileExtensions, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchFileExtensions, wzFileExtensions, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult DoesSupportAnimation(Bool32* pfSupportAnimation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pfSupportAnimation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult DoesSupportChromakey(Bool32* pfSupportChromakey) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pfSupportChromakey); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult DoesSupportLossless(Bool32* pfSupportLossless) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pfSupportLossless); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult DoesSupportMultiframe(Bool32* pfSupportMultiframe) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pfSupportMultiframe); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult MatchesMimeType(ushort* wzMimeType, Bool32* pfMatches) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), wzMimeType, pfMatches); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetComponentType(WICComponentType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetCLSID(Guid* pclsid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pclsid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetSigningStatus(uint* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetVendorGUID(Guid* pguidVendor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pguidVendor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult GetPatterns(uint cbSizePatterns, WICBitmapPattern* pPatterns, uint* pcPatterns, uint* pcbPatternsActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cbSizePatterns, pPatterns, pcPatterns, pcbPatternsActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult MatchesPattern(Com.IStream* pIStream, Bool32* pfMatches) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pIStream, pfMatches); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateInstance(IWICBitmapDecoder** ppIBitmapDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), ppIBitmapDecoder); - } -} - -/// -/// IWICPixelFormatInfo -[Guid("e8eda601-3d48-431a-ab44-69059be88bbe")] -[NativeTypeName("struct IWICPixelFormatInfo : IWICComponentInfo")] -[NativeInheritance("IWICComponentInfo")] -public unsafe partial struct IWICPixelFormatInfo -{ - public static ref readonly Guid IID_IWICPixelFormatInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x01, 0xA6, 0xED, 0xE8, - 0x48, 0x3D, - 0x1A, 0x43, - 0xAB, - 0x44, - 0x69, - 0x05, - 0x9B, - 0xE8, - 0x8B, - 0xBE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPixelFormatInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetComponentType(WICComponentType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCLSID(Guid* pclsid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), pclsid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetSigningStatus(uint* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetVendorGUID(Guid* pguidVendor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), pguidVendor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetFormatGUID(Guid* pFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), pFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetColorContext(IWICColorContext** ppIColorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), ppIColorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetBitsPerPixel(uint* puiBitsPerPixel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), puiBitsPerPixel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetChannelCount(uint* puiChannelCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), puiChannelCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetChannelMask(uint uiChannelIndex, uint cbMaskBuffer, byte* pbMaskBuffer, uint* pcbActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), uiChannelIndex, cbMaskBuffer, pbMaskBuffer, pcbActual); - } -} - -/// -/// IWICPixelFormatInfo2 -[Guid("a9db33a2-af5f-43c7-b679-74f5984b5aa4")] -[NativeTypeName("struct IWICPixelFormatInfo2 : IWICPixelFormatInfo")] -[NativeInheritance("IWICPixelFormatInfo")] -public unsafe partial struct IWICPixelFormatInfo2 -{ - public static ref readonly Guid IID_IWICPixelFormatInfo2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA2, 0x33, 0xDB, 0xA9, - 0x5F, 0xAF, - 0xC7, 0x43, - 0xB6, - 0x79, - 0x74, - 0xF5, - 0x98, - 0x4B, - 0x5A, - 0xA4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPixelFormatInfo2)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetFormatGUID(Guid* pFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetColorContext(IWICColorContext** ppIColorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), ppIColorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetBitsPerPixel(uint* puiBitsPerPixel) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), puiBitsPerPixel); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetChannelCount(uint* puiChannelCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), puiChannelCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetChannelMask(uint uiChannelIndex, uint cbMaskBuffer, byte* pbMaskBuffer, uint* pcbActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), uiChannelIndex, cbMaskBuffer, pbMaskBuffer, pcbActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetComponentType(WICComponentType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetCLSID(Guid* pclsid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pclsid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetSigningStatus(uint* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetVendorGUID(Guid* pguidVendor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pguidVendor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SupportsTransparency(Bool32* pfSupportsTransparency) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pfSupportsTransparency); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetNumericRepresentation(WICPixelFormatNumericRepresentation* pNumericRepresentation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pNumericRepresentation); - } -} - -/// -/// IWICImagingFactory -[Guid("ec5ec8a9-c395-4314-9c77-54d7a935ff70")] -[NativeTypeName("struct IWICImagingFactory : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICImagingFactory -{ - public static ref readonly Guid IID_IWICImagingFactory - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA9, 0xC8, 0x5E, 0xEC, - 0x95, 0xC3, - 0x14, 0x43, - 0x9C, - 0x77, - 0x54, - 0xD7, - 0xA9, - 0x35, - 0xFF, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICImagingFactory)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDecoderFromFilename(ushort* wzFilename, Guid* pguidVendor, NativeFileAccess dwDesiredAccess, WICDecodeOptions metadataOptions, IWICBitmapDecoder** ppIDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), wzFilename, pguidVendor, dwDesiredAccess, metadataOptions, ppIDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDecoderFromStream(Com.IStream* pIStream, Guid* pguidVendor, WICDecodeOptions metadataOptions, IWICBitmapDecoder** ppIDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), pIStream, pguidVendor, metadataOptions, ppIDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateDecoderFromFileHandle(nuint hFile, Guid* pguidVendor, WICDecodeOptions metadataOptions, IWICBitmapDecoder** ppIDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), hFile, pguidVendor, metadataOptions, ppIDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateComponentInfo(Guid* clsidComponent, IWICComponentInfo** ppIInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), clsidComponent, ppIInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateDecoder(Guid* guidContainerFormat, Guid* pguidVendor, IWICBitmapDecoder** ppIDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, ppIDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateEncoder(Guid* guidContainerFormat, Guid* pguidVendor, IWICBitmapEncoder** ppIEncoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, ppIEncoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreatePalette(IWICPalette** ppIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateFormatConverter(IWICFormatConverter** ppIFormatConverter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIFormatConverter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateBitmapScaler(IWICBitmapScaler** ppIBitmapScaler) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIBitmapScaler); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateBitmapClipper(IWICBitmapClipper** ppIBitmapClipper) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIBitmapClipper); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateBitmapFlipRotator(IWICBitmapFlipRotator** ppIBitmapFlipRotator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIBitmapFlipRotator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateStream(IWICStream** ppIWICStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIWICStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateColorContext(IWICColorContext** ppIWICColorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIWICColorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateColorTransformer(IWICColorTransform** ppIWICColorTransform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIWICColorTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateBitmap(uint uiWidth, uint uiHeight, Guid* pixelFormat, WICBitmapCreateCacheOption option, IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), uiWidth, uiHeight, pixelFormat, option, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateBitmapFromSource(IWICBitmapSource* pIBitmapSource, WICBitmapCreateCacheOption option, IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), pIBitmapSource, option, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateBitmapFromSourceRect(IWICBitmapSource* pIBitmapSource, uint x, uint y, uint width, uint height, IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), pIBitmapSource, x, y, width, height, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateBitmapFromMemory(uint uiWidth, uint uiHeight, Guid* pixelFormat, uint cbStride, uint cbBufferSize, byte* pbBuffer, IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), uiWidth, uiHeight, pixelFormat, cbStride, cbBufferSize, pbBuffer, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateBitmapFromHBITMAP(IntPtr hBitmap, IntPtr hPalette, WICBitmapAlphaChannelOption options, IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), hBitmap, hPalette, options, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateBitmapFromHICON(IntPtr hIcon, IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), hIcon, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateComponentEnumerator(uint componentTypes, uint options, Com.IEnumUnknown** ppIEnumUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), componentTypes, options, ppIEnumUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateFastMetadataEncoderFromDecoder(IWICBitmapDecoder* pIDecoder, IWICFastMetadataEncoder** ppIFastEncoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), pIDecoder, ppIFastEncoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateFastMetadataEncoderFromFrameDecode(IWICBitmapFrameDecode* pIFrameDecoder, IWICFastMetadataEncoder** ppIFastEncoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), pIFrameDecoder, ppIFastEncoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateQueryWriter(Guid* guidMetadataFormat, Guid* pguidVendor, IWICMetadataQueryWriter** ppIQueryWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), guidMetadataFormat, pguidVendor, ppIQueryWriter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateQueryWriterFromReader(IWICMetadataQueryReader* pIQueryReader, Guid* pguidVendor, IWICMetadataQueryWriter** ppIQueryWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), pIQueryReader, pguidVendor, ppIQueryWriter); - } -} - -/// -/// IWICDevelopRawNotificationCallback -[Guid("95c75a6e-3e8c-4ec2-85a8-aebcc551e59b")] -[NativeTypeName("struct IWICDevelopRawNotificationCallback : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICDevelopRawNotificationCallback -{ - public static ref readonly Guid IID_IWICDevelopRawNotificationCallback - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6E, 0x5A, 0xC7, 0x95, - 0x8C, 0x3E, - 0xC2, 0x4E, - 0x85, - 0xA8, - 0xAE, - 0xBC, - 0xC5, - 0x51, - 0xE5, - 0x9B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDevelopRawNotificationCallback)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult Notify(uint NotificationMask) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICDevelopRawNotificationCallback*)Unsafe.AsPointer(ref this), NotificationMask); - } -} - -/// -/// IWICDevelopRaw -[Guid("fbec5e44-f7be-4b65-b7f8-c0c81fef026d")] -[NativeTypeName("struct IWICDevelopRaw : IWICBitmapFrameDecode")] -[NativeInheritance("IWICBitmapFrameDecode")] -public unsafe partial struct IWICDevelopRaw -{ - public static ref readonly Guid IID_IWICDevelopRaw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x44, 0x5E, 0xEC, 0xFB, - 0xBE, 0xF7, - 0x65, 0x4B, - 0xB7, - 0xF8, - 0xC0, - 0xC8, - 0x1F, - 0xEF, - 0x02, - 0x6D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDevelopRaw)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetMetadataQueryReader(IWICMetadataQueryReader** ppIMetadataQueryReader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), ppIMetadataQueryReader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetColorContexts(uint cCount, IWICColorContext** ppIColorContexts, uint* pcActualCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), cCount, ppIColorContexts, pcActualCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetThumbnail(IWICBitmapSource** ppIThumbnail) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), ppIThumbnail); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetSize(uint* puiWidth, uint* puiHeight) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetPixelFormat(Guid* pPixelFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pPixelFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetResolution(double* pDpiX, double* pDpiY) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CopyPalette(IWICPalette* pIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult QueryRawCapabilitiesInfo(WICRawCapabilitiesInfo* pInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult LoadParameterSet(WICRawParameterSet ParameterSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), ParameterSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetCurrentParameterSet(Com.IPropertyBag2** ppCurrentParameterSet) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), ppCurrentParameterSet); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult SetExposureCompensation(double ev) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), ev); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetExposureCompensation(double* pEV) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pEV); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult SetWhitePointRGB(uint Red, uint Green, uint Blue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Red, Green, Blue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetWhitePointRGB(uint* pRed, uint* pGreen, uint* pBlue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pRed, pGreen, pBlue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult SetNamedWhitePoint(WICNamedWhitePoint WhitePoint) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), WhitePoint); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult GetNamedWhitePoint(WICNamedWhitePoint* pWhitePoint) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pWhitePoint); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult SetWhitePointKelvin(uint WhitePointKelvin) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), WhitePointKelvin); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult GetWhitePointKelvin(uint* pWhitePointKelvin) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pWhitePointKelvin); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult GetKelvinRangeInfo(uint* pMinKelvinTemp, uint* pMaxKelvinTemp, uint* pKelvinTempStepValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pMinKelvinTemp, pMaxKelvinTemp, pKelvinTempStepValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult SetContrast(double Contrast) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Contrast); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult GetContrast(double* pContrast) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pContrast); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult SetGamma(double Gamma) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Gamma); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult GetGamma(double* pGamma) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pGamma); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult SetSharpness(double Sharpness) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Sharpness); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult GetSharpness(double* pSharpness) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pSharpness); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult SetSaturation(double Saturation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Saturation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult GetSaturation(double* pSaturation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pSaturation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult SetTint(double Tint) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Tint); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult GetTint(double* pTint) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pTint); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult SetNoiseReduction(double NoiseReduction) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), NoiseReduction); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult GetNoiseReduction(double* pNoiseReduction) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pNoiseReduction); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(35)] - public HResult SetDestinationColorContext(IWICColorContext* pColorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pColorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(36)] - public HResult SetToneCurve(uint cbToneCurveSize, WICRawToneCurve* pToneCurve) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), cbToneCurveSize, pToneCurve); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(37)] - public HResult GetToneCurve(uint cbToneCurveBufferSize, WICRawToneCurve* pToneCurve, uint* pcbActualToneCurveBufferSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), cbToneCurveBufferSize, pToneCurve, pcbActualToneCurveBufferSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(38)] - public HResult SetRotation(double Rotation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Rotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(39)] - public HResult GetRotation(double* pRotation) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pRotation); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(40)] - public HResult SetRenderMode(WICRawRenderMode RenderMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), RenderMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(41)] - public HResult GetRenderMode(WICRawRenderMode* pRenderMode) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pRenderMode); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(42)] - public HResult SetNotificationCallback(IWICDevelopRawNotificationCallback* pCallback) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pCallback); - } -} - -/// -/// IWICDdsDecoder -[Guid("409cd537-8532-40cb-9774-e2feb2df4e9c")] -[NativeTypeName("struct IWICDdsDecoder : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICDdsDecoder -{ - public static ref readonly Guid IID_IWICDdsDecoder - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x37, 0xD5, 0x9C, 0x40, - 0x32, 0x85, - 0xCB, 0x40, - 0x97, - 0x74, - 0xE2, - 0xFE, - 0xB2, - 0xDF, - 0x4E, - 0x9C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDdsDecoder)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetParameters(WICDdsParameters* pParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICDdsDecoder*)Unsafe.AsPointer(ref this), pParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFrame(uint arrayIndex, uint mipLevel, uint sliceIndex, IWICBitmapFrameDecode** ppIBitmapFrame) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICDdsDecoder*)Unsafe.AsPointer(ref this), arrayIndex, mipLevel, sliceIndex, ppIBitmapFrame); - } -} - -/// -/// IWICDdsEncoder -[Guid("5cacdb4c-407e-41b3-b936-d0f010cd6732")] -[NativeTypeName("struct IWICDdsEncoder : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICDdsEncoder -{ - public static ref readonly Guid IID_IWICDdsEncoder - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4C, 0xDB, 0xAC, 0x5C, - 0x7E, 0x40, - 0xB3, 0x41, - 0xB9, - 0x36, - 0xD0, - 0xF0, - 0x10, - 0xCD, - 0x67, - 0x32 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDdsEncoder)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult SetParameters(WICDdsParameters* pParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICDdsEncoder*)Unsafe.AsPointer(ref this), pParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetParameters(WICDdsParameters* pParameters) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICDdsEncoder*)Unsafe.AsPointer(ref this), pParameters); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateNewFrame(IWICBitmapFrameEncode** ppIFrameEncode, uint* pArrayIndex, uint* pMipLevel, uint* pSliceIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICDdsEncoder*)Unsafe.AsPointer(ref this), ppIFrameEncode, pArrayIndex, pMipLevel, pSliceIndex); - } -} - -/// -/// IWICDdsFrameDecode -[Guid("3d4c0c61-18a4-41e4-bd80-481a4fc9f464")] -[NativeTypeName("struct IWICDdsFrameDecode : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICDdsFrameDecode -{ - public static ref readonly Guid IID_IWICDdsFrameDecode - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x61, 0x0C, 0x4C, 0x3D, - 0xA4, 0x18, - 0xE4, 0x41, - 0xBD, - 0x80, - 0x48, - 0x1A, - 0x4F, - 0xC9, - 0xF4, - 0x64 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDdsFrameDecode)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetSizeInBlocks(uint* pWidthInBlocks, uint* pHeightInBlocks) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICDdsFrameDecode*)Unsafe.AsPointer(ref this), pWidthInBlocks, pHeightInBlocks); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetFormatInfo(WICDdsFormatInfo* pFormatInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICDdsFrameDecode*)Unsafe.AsPointer(ref this), pFormatInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CopyBlocks(System.Drawing.Rectangle* prcBoundsInBlocks, uint cbStride, uint cbBufferSize, byte* pbBuffer) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICDdsFrameDecode*)Unsafe.AsPointer(ref this), prcBoundsInBlocks, cbStride, cbBufferSize, pbBuffer); - } -} - -/// -/// IWICJpegFrameDecode -[Guid("8939f66e-c46a-4c21-a9d1-98b327ce1679")] -[NativeTypeName("struct IWICJpegFrameDecode : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICJpegFrameDecode -{ - public static ref readonly Guid IID_IWICJpegFrameDecode - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6E, 0xF6, 0x39, 0x89, - 0x6A, 0xC4, - 0x21, 0x4C, - 0xA9, - 0xD1, - 0x98, - 0xB3, - 0x27, - 0xCE, - 0x16, - 0x79 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICJpegFrameDecode)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult DoesSupportIndexing(Bool32* pfIndexingSupported) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), pfIndexingSupported); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult SetIndexing(WICJpegIndexingOptions options, uint horizontalIntervalSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), options, horizontalIntervalSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult ClearIndexing() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetAcHuffmanTable(uint scanIndex, uint tableIndex, Graphics.Dxgi.Common.JpegAcHuffmanTable* pAcHuffmanTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), scanIndex, tableIndex, pAcHuffmanTable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetDcHuffmanTable(uint scanIndex, uint tableIndex, Graphics.Dxgi.Common.JpegDcHuffmanTable* pDcHuffmanTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), scanIndex, tableIndex, pDcHuffmanTable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetQuantizationTable(uint scanIndex, uint tableIndex, Graphics.Dxgi.Common.JpegQuantizationTable* pQuantizationTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), scanIndex, tableIndex, pQuantizationTable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetFrameHeader(WICJpegFrameHeader* pFrameHeader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), pFrameHeader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetScanHeader(uint scanIndex, WICJpegScanHeader* pScanHeader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), scanIndex, pScanHeader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CopyScan(uint scanIndex, uint scanOffset, uint cbScanData, byte* pbScanData, uint* pcbScanDataActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), scanIndex, scanOffset, cbScanData, pbScanData, pcbScanDataActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CopyMinimalStream(uint streamOffset, uint cbStreamData, byte* pbStreamData, uint* pcbStreamDataActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), streamOffset, cbStreamData, pbStreamData, pcbStreamDataActual); - } -} - -/// -/// IWICJpegFrameEncode -[Guid("2f0c601f-d2c6-468c-abfa-49495d983ed1")] -[NativeTypeName("struct IWICJpegFrameEncode : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICJpegFrameEncode -{ - public static ref readonly Guid IID_IWICJpegFrameEncode - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1F, 0x60, 0x0C, 0x2F, - 0xC6, 0xD2, - 0x8C, 0x46, - 0xAB, - 0xFA, - 0x49, - 0x49, - 0x5D, - 0x98, - 0x3E, - 0xD1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICJpegFrameEncode)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetAcHuffmanTable(uint scanIndex, uint tableIndex, Graphics.Dxgi.Common.JpegAcHuffmanTable* pAcHuffmanTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICJpegFrameEncode*)Unsafe.AsPointer(ref this), scanIndex, tableIndex, pAcHuffmanTable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetDcHuffmanTable(uint scanIndex, uint tableIndex, Graphics.Dxgi.Common.JpegDcHuffmanTable* pDcHuffmanTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICJpegFrameEncode*)Unsafe.AsPointer(ref this), scanIndex, tableIndex, pDcHuffmanTable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetQuantizationTable(uint scanIndex, uint tableIndex, Graphics.Dxgi.Common.JpegQuantizationTable* pQuantizationTable) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICJpegFrameEncode*)Unsafe.AsPointer(ref this), scanIndex, tableIndex, pQuantizationTable); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult WriteScan(uint cbScanData, byte* pbScanData) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICJpegFrameEncode*)Unsafe.AsPointer(ref this), cbScanData, pbScanData); - } -} - -/// -/// IWICMetadataBlockReader -[Guid("feaa2a8d-b3f3-43e4-b25c-d1de990a1ae1")] -[NativeTypeName("struct IWICMetadataBlockReader : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICMetadataBlockReader -{ - public static ref readonly Guid IID_IWICMetadataBlockReader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8D, 0x2A, 0xAA, 0xFE, - 0xF3, 0xB3, - 0xE4, 0x43, - 0xB2, - 0x5C, - 0xD1, - 0xDE, - 0x99, - 0x0A, - 0x1A, - 0xE1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataBlockReader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetContainerFormat(Guid* pguidContainerFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataBlockReader*)Unsafe.AsPointer(ref this), pguidContainerFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCount(uint* pcCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataBlockReader*)Unsafe.AsPointer(ref this), pcCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetReaderByIndex(uint nIndex, IWICMetadataReader** ppIMetadataReader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataBlockReader*)Unsafe.AsPointer(ref this), nIndex, ppIMetadataReader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetEnumerator(Com.IEnumUnknown** ppIEnumMetadata) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataBlockReader*)Unsafe.AsPointer(ref this), ppIEnumMetadata); - } -} - -/// -/// IWICMetadataBlockWriter -[Guid("08fb9676-b444-41e8-8dbe-6a53a542bff1")] -[NativeTypeName("struct IWICMetadataBlockWriter : IWICMetadataBlockReader")] -[NativeInheritance("IWICMetadataBlockReader")] -public unsafe partial struct IWICMetadataBlockWriter -{ - public static ref readonly Guid IID_IWICMetadataBlockWriter - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x76, 0x96, 0xFB, 0x08, - 0x44, 0xB4, - 0xE8, 0x41, - 0x8D, - 0xBE, - 0x6A, - 0x53, - 0xA5, - 0x42, - 0xBF, - 0xF1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataBlockWriter)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetContainerFormat(Guid* pguidContainerFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), pguidContainerFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCount(uint* pcCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), pcCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetReaderByIndex(uint nIndex, IWICMetadataReader** ppIMetadataReader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), nIndex, ppIMetadataReader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetEnumerator(Com.IEnumUnknown** ppIEnumMetadata) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), ppIEnumMetadata); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult InitializeFromBlockReader(IWICMetadataBlockReader* pIMDBlockReader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), pIMDBlockReader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetWriterByIndex(uint nIndex, IWICMetadataWriter** ppIMetadataWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), nIndex, ppIMetadataWriter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult AddWriter(IWICMetadataWriter* pIMetadataWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), pIMetadataWriter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetWriterByIndex(uint nIndex, IWICMetadataWriter* pIMetadataWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), nIndex, pIMetadataWriter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult RemoveWriterByIndex(uint nIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), nIndex); - } -} - -/// -/// IWICMetadataReader -[Guid("9204fe99-d8fc-4fd5-a001-9536b067a899")] -[NativeTypeName("struct IWICMetadataReader : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICMetadataReader -{ - public static ref readonly Guid IID_IWICMetadataReader - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x99, 0xFE, 0x04, 0x92, - 0xFC, 0xD8, - 0xD5, 0x4F, - 0xA0, - 0x01, - 0x95, - 0x36, - 0xB0, - 0x67, - 0xA8, - 0x99 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataReader)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetMetadataFormat(Guid* pguidMetadataFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataReader*)Unsafe.AsPointer(ref this), pguidMetadataFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetMetadataHandlerInfo(IWICMetadataHandlerInfo** ppIHandler) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataReader*)Unsafe.AsPointer(ref this), ppIHandler); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetCount(uint* pcCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataReader*)Unsafe.AsPointer(ref this), pcCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetValueByIndex(uint nIndex, Com.Variant** pvarSchema, Com.Variant** pvarId, Com.Variant** pvarValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataReader*)Unsafe.AsPointer(ref this), nIndex, pvarSchema, pvarId, pvarValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetValue(Com.Variant* pvarSchema, Com.Variant* pvarId, Com.Variant** pvarValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataReader*)Unsafe.AsPointer(ref this), pvarSchema, pvarId, pvarValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetEnumerator(IWICEnumMetadataItem** ppIEnumMetadata) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataReader*)Unsafe.AsPointer(ref this), ppIEnumMetadata); - } -} - -/// -/// IWICMetadataWriter -[Guid("f7836e16-3be0-470b-86bb-160d0aecd7de")] -[NativeTypeName("struct IWICMetadataWriter : IWICMetadataReader")] -[NativeInheritance("IWICMetadataReader")] -public unsafe partial struct IWICMetadataWriter -{ - public static ref readonly Guid IID_IWICMetadataWriter - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x16, 0x6E, 0x83, 0xF7, - 0xE0, 0x3B, - 0x0B, 0x47, - 0x86, - 0xBB, - 0x16, - 0x0D, - 0x0A, - 0xEC, - 0xD7, - 0xDE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataWriter)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetMetadataFormat(Guid* pguidMetadataFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), pguidMetadataFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetMetadataHandlerInfo(IWICMetadataHandlerInfo** ppIHandler) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), ppIHandler); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetCount(uint* pcCount) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), pcCount); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetValueByIndex(uint nIndex, Com.Variant** pvarSchema, Com.Variant** pvarId, Com.Variant** pvarValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), nIndex, pvarSchema, pvarId, pvarValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetValue(Com.Variant* pvarSchema, Com.Variant* pvarId, Com.Variant** pvarValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), pvarSchema, pvarId, pvarValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetEnumerator(IWICEnumMetadataItem** ppIEnumMetadata) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), ppIEnumMetadata); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult SetValue(Com.Variant* pvarSchema, Com.Variant* pvarId, Com.Variant* pvarValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), pvarSchema, pvarId, pvarValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult SetValueByIndex(uint nIndex, Com.Variant* pvarSchema, Com.Variant* pvarId, Com.Variant* pvarValue) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), nIndex, pvarSchema, pvarId, pvarValue); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult RemoveValue(Com.Variant* pvarSchema, Com.Variant* pvarId) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), pvarSchema, pvarId); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult RemoveValueByIndex(uint nIndex) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), nIndex); - } -} - -/// -/// IWICStreamProvider -[Guid("449494bc-b468-4927-96d7-ba90d31ab505")] -[NativeTypeName("struct IWICStreamProvider : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct IWICStreamProvider -{ - public static ref readonly Guid IID_IWICStreamProvider - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBC, 0x94, 0x94, 0x44, - 0x68, 0xB4, - 0x27, 0x49, - 0x96, - 0xD7, - 0xBA, - 0x90, - 0xD3, - 0x1A, - 0xB5, - 0x05 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICStreamProvider)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetStream(Com.IStream** ppIStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICStreamProvider*)Unsafe.AsPointer(ref this), ppIStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetPersistOptions(uint* pdwPersistOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICStreamProvider*)Unsafe.AsPointer(ref this), pdwPersistOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetPreferredVendorGUID(Guid* pguidPreferredVendor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICStreamProvider*)Unsafe.AsPointer(ref this), pguidPreferredVendor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult RefreshStream() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICStreamProvider*)Unsafe.AsPointer(ref this)); - } -} - -/// -/// IWICPersistStream -[Guid("00675040-6908-45f8-86a3-49c7dfd6d9ad")] -[NativeTypeName("struct IWICPersistStream : IPersistStream")] -[NativeInheritance("IPersistStream")] -public unsafe partial struct IWICPersistStream -{ - public static ref readonly Guid IID_IWICPersistStream - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x40, 0x50, 0x67, 0x00, - 0x08, 0x69, - 0xF8, 0x45, - 0x86, - 0xA3, - 0x49, - 0xC7, - 0xDF, - 0xD6, - 0xD9, - 0xAD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPersistStream)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult LoadEx(Com.IStream* pIStream, Guid* pguidPreferredVendor, uint dwPersistOptions) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IWICPersistStream*)Unsafe.AsPointer(ref this), pIStream, pguidPreferredVendor, dwPersistOptions); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - public HResult SaveEx(Com.IStream* pIStream, uint dwPersistOptions, Bool32 fClearDirty) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IWICPersistStream*)Unsafe.AsPointer(ref this), pIStream, dwPersistOptions, fClearDirty); - } -} - -/// -/// IWICMetadataHandlerInfo -[Guid("aba958bf-c672-44d1-8d61-ce6df2e682c2")] -[NativeTypeName("struct IWICMetadataHandlerInfo : IWICComponentInfo")] -[NativeInheritance("IWICComponentInfo")] -public unsafe partial struct IWICMetadataHandlerInfo -{ - public static ref readonly Guid IID_IWICMetadataHandlerInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBF, 0x58, 0xA9, 0xAB, - 0x72, 0xC6, - 0xD1, 0x44, - 0x8D, - 0x61, - 0xCE, - 0x6D, - 0xF2, - 0xE6, - 0x82, - 0xC2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataHandlerInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetComponentType(WICComponentType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetCLSID(Guid* pclsid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pclsid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetSigningStatus(uint* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult GetVendorGUID(Guid* pguidVendor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pguidVendor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetMetadataFormat(Guid* pguidMetadataFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pguidMetadataFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetContainerFormats(uint cContainerFormats, Guid* pguidContainerFormats, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cContainerFormats, pguidContainerFormats, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult DoesRequireFullStream(Bool32* pfRequiresFullStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pfRequiresFullStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult DoesSupportPadding(Bool32* pfSupportsPadding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pfSupportsPadding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult DoesRequireFixedSize(Bool32* pfFixedSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pfFixedSize); - } -} - -/// -/// IWICMetadataReaderInfo -[Guid("eebf1f5b-07c1-4447-a3ab-22acaf78a804")] -[NativeTypeName("struct IWICMetadataReaderInfo : IWICMetadataHandlerInfo")] -[NativeInheritance("IWICMetadataHandlerInfo")] -public unsafe partial struct IWICMetadataReaderInfo -{ - public static ref readonly Guid IID_IWICMetadataReaderInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5B, 0x1F, 0xBF, 0xEE, - 0xC1, 0x07, - 0x47, 0x44, - 0xA3, - 0xAB, - 0x22, - 0xAC, - 0xAF, - 0x78, - 0xA8, - 0x04 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataReaderInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetMetadataFormat(Guid* pguidMetadataFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pguidMetadataFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetContainerFormats(uint cContainerFormats, Guid* pguidContainerFormats, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cContainerFormats, pguidContainerFormats, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult DoesRequireFullStream(Bool32* pfRequiresFullStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pfRequiresFullStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult DoesSupportPadding(Bool32* pfSupportsPadding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pfSupportsPadding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult DoesRequireFixedSize(Bool32* pfFixedSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pfFixedSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetComponentType(WICComponentType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetCLSID(Guid* pclsid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pclsid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetSigningStatus(uint* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetVendorGUID(Guid* pguidVendor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pguidVendor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetPatterns(Guid* guidContainerFormat, uint cbSize, WICMetadataPattern* pPattern, uint* pcCount, uint* pcbActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), guidContainerFormat, cbSize, pPattern, pcCount, pcbActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult MatchesPattern(Guid* guidContainerFormat, Com.IStream* pIStream, Bool32* pfMatches) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), guidContainerFormat, pIStream, pfMatches); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateInstance(IWICMetadataReader** ppIReader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), ppIReader); - } -} - -/// -/// IWICMetadataWriterInfo -[Guid("b22e3fba-3925-4323-b5c1-9ebfc430f236")] -[NativeTypeName("struct IWICMetadataWriterInfo : IWICMetadataHandlerInfo")] -[NativeInheritance("IWICMetadataHandlerInfo")] -public unsafe partial struct IWICMetadataWriterInfo -{ - public static ref readonly Guid IID_IWICMetadataWriterInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBA, 0x3F, 0x2E, 0xB2, - 0x25, 0x39, - 0x23, 0x43, - 0xB5, - 0xC1, - 0x9E, - 0xBF, - 0xC4, - 0x30, - 0xF2, - 0x36 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataWriterInfo)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult GetMetadataFormat(Guid* pguidMetadataFormat) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pguidMetadataFormat); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult GetContainerFormats(uint cContainerFormats, Guid* pguidContainerFormats, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cContainerFormats, pguidContainerFormats, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult DoesRequireFullStream(Bool32* pfRequiresFullStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pfRequiresFullStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult DoesSupportPadding(Bool32* pfSupportsPadding) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pfSupportsPadding); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult DoesRequireFixedSize(Bool32* pfFixedSize) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pfFixedSize); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult GetComponentType(WICComponentType* pType) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pType); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult GetCLSID(Guid* pclsid) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pclsid); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult GetSigningStatus(uint* pStatus) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pStatus); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult GetVendorGUID(Guid* pguidVendor) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pguidVendor); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult GetHeader(Guid* guidContainerFormat, uint cbSize, WICMetadataHeader* pHeader, uint* pcbActual) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), guidContainerFormat, cbSize, pHeader, pcbActual); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateInstance(IWICMetadataWriter** ppIWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), ppIWriter); - } -} - -/// -/// IWICComponentFactory -[Guid("412d0c3a-9650-44fa-af5b-dd2a06c8e8fb")] -[NativeTypeName("struct IWICComponentFactory : IWICImagingFactory")] -[NativeInheritance("IWICImagingFactory")] -public unsafe partial struct IWICComponentFactory -{ - public static ref readonly Guid IID_IWICComponentFactory - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3A, 0x0C, 0x2D, 0x41, - 0x50, 0x96, - 0xFA, 0x44, - 0xAF, - 0x5B, - 0xDD, - 0x2A, - 0x06, - 0xC8, - 0xE8, - 0xFB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICComponentFactory)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDecoderFromFilename(ushort* wzFilename, Guid* pguidVendor, uint dwDesiredAccess, WICDecodeOptions metadataOptions, IWICBitmapDecoder** ppIDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), wzFilename, pguidVendor, dwDesiredAccess, metadataOptions, ppIDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(4)] - public HResult CreateDecoderFromStream(Com.IStream* pIStream, Guid* pguidVendor, WICDecodeOptions metadataOptions, IWICBitmapDecoder** ppIDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIStream, pguidVendor, metadataOptions, ppIDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public HResult CreateDecoderFromFileHandle(nuint hFile, Guid* pguidVendor, WICDecodeOptions metadataOptions, IWICBitmapDecoder** ppIDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), hFile, pguidVendor, metadataOptions, ppIDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(6)] - public HResult CreateComponentInfo(Guid* clsidComponent, IWICComponentInfo** ppIInfo) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), clsidComponent, ppIInfo); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(7)] - public HResult CreateDecoder(Guid* guidContainerFormat, Guid* pguidVendor, IWICBitmapDecoder** ppIDecoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, ppIDecoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(8)] - public HResult CreateEncoder(Guid* guidContainerFormat, Guid* pguidVendor, IWICBitmapEncoder** ppIEncoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, ppIEncoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(9)] - public HResult CreatePalette(IWICPalette** ppIPalette) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIPalette); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(10)] - public HResult CreateFormatConverter(IWICFormatConverter** ppIFormatConverter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIFormatConverter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(11)] - public HResult CreateBitmapScaler(IWICBitmapScaler** ppIBitmapScaler) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIBitmapScaler); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(12)] - public HResult CreateBitmapClipper(IWICBitmapClipper** ppIBitmapClipper) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIBitmapClipper); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(13)] - public HResult CreateBitmapFlipRotator(IWICBitmapFlipRotator** ppIBitmapFlipRotator) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIBitmapFlipRotator); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(14)] - public HResult CreateStream(IWICStream** ppIWICStream) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIWICStream); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(15)] - public HResult CreateColorContext(IWICColorContext** ppIWICColorContext) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIWICColorContext); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(16)] - public HResult CreateColorTransformer(IWICColorTransform** ppIWICColorTransform) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIWICColorTransform); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(17)] - public HResult CreateBitmap(uint uiWidth, uint uiHeight, Guid* pixelFormat, WICBitmapCreateCacheOption option, IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), uiWidth, uiHeight, pixelFormat, option, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(18)] - public HResult CreateBitmapFromSource(IWICBitmapSource* pIBitmapSource, WICBitmapCreateCacheOption option, IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIBitmapSource, option, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(19)] - public HResult CreateBitmapFromSourceRect(IWICBitmapSource* pIBitmapSource, uint x, uint y, uint width, uint height, IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIBitmapSource, x, y, width, height, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(20)] - public HResult CreateBitmapFromMemory(uint uiWidth, uint uiHeight, Guid* pixelFormat, uint cbStride, uint cbBufferSize, byte* pbBuffer, IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), uiWidth, uiHeight, pixelFormat, cbStride, cbBufferSize, pbBuffer, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(21)] - public HResult CreateBitmapFromHBITMAP(IntPtr hBitmap, IntPtr hPalette, WICBitmapAlphaChannelOption options, IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), hBitmap, hPalette, options, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(22)] - public HResult CreateBitmapFromHICON(IntPtr hIcon, IWICBitmap** ppIBitmap) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), hIcon, ppIBitmap); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(23)] - public HResult CreateComponentEnumerator(uint componentTypes, uint options, Com.IEnumUnknown** ppIEnumUnknown) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), componentTypes, options, ppIEnumUnknown); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(24)] - public HResult CreateFastMetadataEncoderFromDecoder(IWICBitmapDecoder* pIDecoder, IWICFastMetadataEncoder** ppIFastEncoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIDecoder, ppIFastEncoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(25)] - public HResult CreateFastMetadataEncoderFromFrameDecode(IWICBitmapFrameDecode* pIFrameDecoder, IWICFastMetadataEncoder** ppIFastEncoder) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIFrameDecoder, ppIFastEncoder); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(26)] - public HResult CreateQueryWriter(Guid* guidMetadataFormat, Guid* pguidVendor, IWICMetadataQueryWriter** ppIQueryWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), guidMetadataFormat, pguidVendor, ppIQueryWriter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(27)] - public HResult CreateQueryWriterFromReader(IWICMetadataQueryReader* pIQueryReader, Guid* pguidVendor, IWICMetadataQueryWriter** ppIQueryWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIQueryReader, pguidVendor, ppIQueryWriter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(28)] - public HResult CreateMetadataReader(Guid* guidMetadataFormat, Guid* pguidVendor, uint dwOptions, Com.IStream* pIStream, IWICMetadataReader** ppIReader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), guidMetadataFormat, pguidVendor, dwOptions, pIStream, ppIReader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(29)] - public HResult CreateMetadataReaderFromContainer(Guid* guidContainerFormat, Guid* pguidVendor, uint dwOptions, Com.IStream* pIStream, IWICMetadataReader** ppIReader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, dwOptions, pIStream, ppIReader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(30)] - public HResult CreateMetadataWriter(Guid* guidMetadataFormat, Guid* pguidVendor, uint dwMetadataOptions, IWICMetadataWriter** ppIWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), guidMetadataFormat, pguidVendor, dwMetadataOptions, ppIWriter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(31)] - public HResult CreateMetadataWriterFromReader(IWICMetadataReader* pIReader, Guid* pguidVendor, IWICMetadataWriter** ppIWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIReader, pguidVendor, ppIWriter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(32)] - public HResult CreateQueryReaderFromBlockReader(IWICMetadataBlockReader* pIBlockReader, IWICMetadataQueryReader** ppIQueryReader) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIBlockReader, ppIQueryReader); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(33)] - public HResult CreateQueryWriterFromBlockWriter(IWICMetadataBlockWriter* pIBlockWriter, IWICMetadataQueryWriter** ppIQueryWriter) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIBlockWriter, ppIQueryWriter); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(34)] - public HResult CreateEncoderPropertyBag(Com.PropertyBagMetadata** ppropOptions, uint cCount, Com.IPropertyBag2** ppIPropertyBag) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppropOptions, cCount, ppIPropertyBag); - } -} - #endregion Com Types #region Functions diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmap.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmap.cs new file mode 100644 index 0000000..1c8e731 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmap.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmap +[Guid("00000121-a8f2-4877-ba0a-fd2b6645fb94")] +[NativeTypeName("struct IWICBitmap : IWICBitmapSource")] +[NativeInheritance("IWICBitmapSource")] +public unsafe partial struct IWICBitmap +{ + public static ref readonly Guid IID_IWICBitmap + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x21, 0x01, 0x00, 0x00, + 0xF2, 0xA8, + 0x77, 0x48, + 0xBA, + 0x0A, + 0xFD, + 0x2B, + 0x66, + 0x45, + 0xFB, + 0x94 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmap)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSize(uint* puiWidth, uint* puiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmap*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPixelFormat(Guid* pPixelFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmap*)Unsafe.AsPointer(ref this), pPixelFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetResolution(double* pDpiX, double* pDpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmap*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CopyPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmap*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmap*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Lock(System.Drawing.Rectangle* prcLock, WICBitmapLockFlags flags, IWICBitmapLock** ppILock) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmap*)Unsafe.AsPointer(ref this), prcLock, flags, ppILock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmap*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetResolution(double dpiX, double dpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmap*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapClipper.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapClipper.cs new file mode 100644 index 0000000..0b9c082 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapClipper.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapClipper +[Guid("e4fbcf03-223d-4e81-9333-d635556dd1b5")] +[NativeTypeName("struct IWICBitmapClipper : IWICBitmapSource")] +[NativeInheritance("IWICBitmapSource")] +public unsafe partial struct IWICBitmapClipper +{ + public static ref readonly Guid IID_IWICBitmapClipper + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x03, 0xCF, 0xFB, 0xE4, + 0x3D, 0x22, + 0x81, 0x4E, + 0x93, + 0x33, + 0xD6, + 0x35, + 0x55, + 0x6D, + 0xD1, + 0xB5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapClipper)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSize(uint* puiWidth, uint* puiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapClipper*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPixelFormat(Guid* pPixelFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapClipper*)Unsafe.AsPointer(ref this), pPixelFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetResolution(double* pDpiX, double* pDpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapClipper*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CopyPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapClipper*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapClipper*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Initialize(IWICBitmapSource* pISource, System.Drawing.Rectangle* prc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapClipper*)Unsafe.AsPointer(ref this), pISource, prc); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapCodecInfo.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapCodecInfo.cs new file mode 100644 index 0000000..ef2abb2 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapCodecInfo.cs @@ -0,0 +1,243 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapCodecInfo +[Guid("e87a44c4-b76e-4c47-8b09-298eb12a2714")] +[NativeTypeName("struct IWICBitmapCodecInfo : IWICComponentInfo")] +[NativeInheritance("IWICComponentInfo")] +public unsafe partial struct IWICBitmapCodecInfo +{ + public static ref readonly Guid IID_IWICBitmapCodecInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC4, 0x44, 0x7A, 0xE8, + 0x6E, 0xB7, + 0x47, 0x4C, + 0x8B, + 0x09, + 0x29, + 0x8E, + 0xB1, + 0x2A, + 0x27, + 0x14 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapCodecInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetComponentType(WICComponentType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCLSID(Guid* pclsid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pclsid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetSigningStatus(uint* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetVendorGUID(Guid* pguidVendor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pguidVendor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetContainerFormat(Guid* pguidContainerFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pguidContainerFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetPixelFormats(uint cFormats, Guid* pguidPixelFormats, uint* pcActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cFormats, pguidPixelFormats, pcActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetColorManagementVersion(uint cchColorManagementVersion, ushort* wzColorManagementVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchColorManagementVersion, wzColorManagementVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetMimeTypes(uint cchMimeTypes, ushort* wzMimeTypes, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchMimeTypes, wzMimeTypes, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetFileExtensions(uint cchFileExtensions, ushort* wzFileExtensions, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchFileExtensions, wzFileExtensions, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult DoesSupportAnimation(Bool32* pfSupportAnimation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pfSupportAnimation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult DoesSupportChromakey(Bool32* pfSupportChromakey) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pfSupportChromakey); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult DoesSupportLossless(Bool32* pfSupportLossless) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pfSupportLossless); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult DoesSupportMultiframe(Bool32* pfSupportMultiframe) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), pfSupportMultiframe); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult MatchesMimeType(ushort* wzMimeType, Bool32* pfMatches) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), wzMimeType, pfMatches); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapCodecProgressNotification.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapCodecProgressNotification.cs new file mode 100644 index 0000000..e4cec40 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapCodecProgressNotification.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapCodecProgressNotification +[Guid("64c1024e-c3cf-4462-8078-88c2b11c46d9")] +[NativeTypeName("struct IWICBitmapCodecProgressNotification : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICBitmapCodecProgressNotification +{ + public static ref readonly Guid IID_IWICBitmapCodecProgressNotification + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4E, 0x02, 0xC1, 0x64, + 0xCF, 0xC3, + 0x62, 0x44, + 0x80, + 0x78, + 0x88, + 0xC2, + 0xB1, + 0x1C, + 0x46, + 0xD9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapCodecProgressNotification)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult RegisterProgressNotification(delegate* unmanaged[Stdcall] pfnProgressNotification, void* pvData, uint dwProgressFlags) + { + return ((delegate* unmanaged[Stdcall], void*, uint, int>)(lpVtbl[3]))((IWICBitmapCodecProgressNotification*)Unsafe.AsPointer(ref this), pfnProgressNotification, pvData, dwProgressFlags); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapDecoder.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapDecoder.cs new file mode 100644 index 0000000..5a3cc3e --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapDecoder.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapDecoder +[Guid("9edde9e7-8dee-47ea-99df-e6faf2ed44bf")] +[NativeTypeName("struct IWICBitmapDecoder : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICBitmapDecoder +{ + public static ref readonly Guid IID_IWICBitmapDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE7, 0xE9, 0xDD, 0x9E, + 0xEE, 0x8D, + 0xEA, 0x47, + 0x99, + 0xDF, + 0xE6, + 0xFA, + 0xF2, + 0xED, + 0x44, + 0xBF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapDecoder)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult QueryCapability(Com.IStream* pIStream, uint* pdwCapability) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), pIStream, pdwCapability); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Initialize(Com.IStream* pIStream, WICDecodeOptions cacheOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), pIStream, cacheOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetContainerFormat(Guid* pguidContainerFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), pguidContainerFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetDecoderInfo(IWICBitmapDecoderInfo** ppIDecoderInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), ppIDecoderInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CopyPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetMetadataQueryReader(IWICMetadataQueryReader** ppIMetadataQueryReader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), ppIMetadataQueryReader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetPreview(IWICBitmapSource** ppIBitmapSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), ppIBitmapSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetColorContexts(uint cCount, IWICColorContext** ppIColorContexts, uint* pcActualCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), cCount, ppIColorContexts, pcActualCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetThumbnail(IWICBitmapSource** ppIThumbnail) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), ppIThumbnail); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetFrameCount(uint* pCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), pCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetFrame(uint index, IWICBitmapFrameDecode** ppIBitmapFrame) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICBitmapDecoder*)Unsafe.AsPointer(ref this), index, ppIBitmapFrame); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapDecoderInfo.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapDecoderInfo.cs new file mode 100644 index 0000000..32c8fd1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapDecoderInfo.cs @@ -0,0 +1,267 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapDecoderInfo +[Guid("d8cd007f-d08f-4191-9bfc-236ea7f0e4b5")] +[NativeTypeName("struct IWICBitmapDecoderInfo : IWICBitmapCodecInfo")] +[NativeInheritance("IWICBitmapCodecInfo")] +public unsafe partial struct IWICBitmapDecoderInfo +{ + public static ref readonly Guid IID_IWICBitmapDecoderInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7F, 0x00, 0xCD, 0xD8, + 0x8F, 0xD0, + 0x91, 0x41, + 0x9B, + 0xFC, + 0x23, + 0x6E, + 0xA7, + 0xF0, + 0xE4, + 0xB5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapDecoderInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetComponentType(WICComponentType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCLSID(Guid* pclsid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pclsid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetSigningStatus(uint* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetVendorGUID(Guid* pguidVendor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pguidVendor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetContainerFormat(Guid* pguidContainerFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pguidContainerFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetPixelFormats(uint cFormats, Guid* pguidPixelFormats, uint* pcActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cFormats, pguidPixelFormats, pcActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetColorManagementVersion(uint cchColorManagementVersion, ushort* wzColorManagementVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchColorManagementVersion, wzColorManagementVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetMimeTypes(uint cchMimeTypes, ushort* wzMimeTypes, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchMimeTypes, wzMimeTypes, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetFileExtensions(uint cchFileExtensions, ushort* wzFileExtensions, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchFileExtensions, wzFileExtensions, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult DoesSupportAnimation(Bool32* pfSupportAnimation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pfSupportAnimation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult DoesSupportChromakey(Bool32* pfSupportChromakey) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pfSupportChromakey); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult DoesSupportLossless(Bool32* pfSupportLossless) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pfSupportLossless); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult DoesSupportMultiframe(Bool32* pfSupportMultiframe) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pfSupportMultiframe); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult MatchesMimeType(ushort* wzMimeType, Bool32* pfMatches) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), wzMimeType, pfMatches); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult GetPatterns(uint cbSizePatterns, WICBitmapPattern* pPatterns, uint* pcPatterns, uint* pcbPatternsActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cbSizePatterns, pPatterns, pcPatterns, pcbPatternsActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult MatchesPattern(Com.IStream* pIStream, Bool32* pfMatches) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), pIStream, pfMatches); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateInstance(IWICBitmapDecoder** ppIBitmapDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), ppIBitmapDecoder); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapEncoder.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapEncoder.cs new file mode 100644 index 0000000..cccc65b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapEncoder.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapEncoder +[Guid("00000103-a8f2-4877-ba0a-fd2b6645fb94")] +[NativeTypeName("struct IWICBitmapEncoder : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICBitmapEncoder +{ + public static ref readonly Guid IID_IWICBitmapEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x03, 0x01, 0x00, 0x00, + 0xF2, 0xA8, + 0x77, 0x48, + 0xBA, + 0x0A, + 0xFD, + 0x2B, + 0x66, + 0x45, + 0xFB, + 0x94 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapEncoder)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Initialize(Com.IStream* pIStream, WICBitmapEncoderCacheOption cacheOption) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), pIStream, cacheOption); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetContainerFormat(Guid* pguidContainerFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), pguidContainerFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetEncoderInfo(IWICBitmapEncoderInfo** ppIEncoderInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), ppIEncoderInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetColorContexts(uint cCount, IWICColorContext** ppIColorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), cCount, ppIColorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetThumbnail(IWICBitmapSource* pIThumbnail) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), pIThumbnail); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetPreview(IWICBitmapSource* pIPreview) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), pIPreview); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateNewFrame(IWICBitmapFrameEncode** ppIFrameEncode, Com.IPropertyBag2** ppIEncoderOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), ppIFrameEncode, ppIEncoderOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult Commit() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetMetadataQueryWriter(IWICMetadataQueryWriter** ppIMetadataQueryWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICBitmapEncoder*)Unsafe.AsPointer(ref this), ppIMetadataQueryWriter); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapEncoderInfo.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapEncoderInfo.cs new file mode 100644 index 0000000..b49c7ff --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapEncoderInfo.cs @@ -0,0 +1,251 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapEncoderInfo +[Guid("94c9b4ee-a09f-4f92-8a1e-4a9bce7e76fb")] +[NativeTypeName("struct IWICBitmapEncoderInfo : IWICBitmapCodecInfo")] +[NativeInheritance("IWICBitmapCodecInfo")] +public unsafe partial struct IWICBitmapEncoderInfo +{ + public static ref readonly Guid IID_IWICBitmapEncoderInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEE, 0xB4, 0xC9, 0x94, + 0x9F, 0xA0, + 0x92, 0x4F, + 0x8A, + 0x1E, + 0x4A, + 0x9B, + 0xCE, + 0x7E, + 0x76, + 0xFB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapEncoderInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetComponentType(WICComponentType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCLSID(Guid* pclsid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pclsid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetSigningStatus(uint* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetVendorGUID(Guid* pguidVendor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pguidVendor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetContainerFormat(Guid* pguidContainerFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pguidContainerFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetPixelFormats(uint cFormats, Guid* pguidPixelFormats, uint* pcActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cFormats, pguidPixelFormats, pcActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetColorManagementVersion(uint cchColorManagementVersion, ushort* wzColorManagementVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchColorManagementVersion, wzColorManagementVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetMimeTypes(uint cchMimeTypes, ushort* wzMimeTypes, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchMimeTypes, wzMimeTypes, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetFileExtensions(uint cchFileExtensions, ushort* wzFileExtensions, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchFileExtensions, wzFileExtensions, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult DoesSupportAnimation(Bool32* pfSupportAnimation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pfSupportAnimation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult DoesSupportChromakey(Bool32* pfSupportChromakey) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pfSupportChromakey); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult DoesSupportLossless(Bool32* pfSupportLossless) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pfSupportLossless); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult DoesSupportMultiframe(Bool32* pfSupportMultiframe) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), pfSupportMultiframe); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult MatchesMimeType(ushort* wzMimeType, Bool32* pfMatches) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), wzMimeType, pfMatches); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateInstance(IWICBitmapEncoder** ppIBitmapEncoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), ppIBitmapEncoder); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapFlipRotator.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapFlipRotator.cs new file mode 100644 index 0000000..a8c70d7 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapFlipRotator.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapFlipRotator +[Guid("5009834f-2d6a-41ce-9e1b-17c5aff7a782")] +[NativeTypeName("struct IWICBitmapFlipRotator : IWICBitmapSource")] +[NativeInheritance("IWICBitmapSource")] +public unsafe partial struct IWICBitmapFlipRotator +{ + public static ref readonly Guid IID_IWICBitmapFlipRotator + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4F, 0x83, 0x09, 0x50, + 0x6A, 0x2D, + 0xCE, 0x41, + 0x9E, + 0x1B, + 0x17, + 0xC5, + 0xAF, + 0xF7, + 0xA7, + 0x82 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapFlipRotator)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSize(uint* puiWidth, uint* puiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapFlipRotator*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPixelFormat(Guid* pPixelFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapFlipRotator*)Unsafe.AsPointer(ref this), pPixelFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetResolution(double* pDpiX, double* pDpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapFlipRotator*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CopyPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapFlipRotator*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapFlipRotator*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Initialize(IWICBitmapSource* pISource, WICBitmapTransformOptions options) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapFlipRotator*)Unsafe.AsPointer(ref this), pISource, options); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapFrameDecode.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapFrameDecode.cs new file mode 100644 index 0000000..7b4316b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapFrameDecode.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapFrameDecode +[Guid("3b16811b-6a43-4ec9-a813-3d930c13b940")] +[NativeTypeName("struct IWICBitmapFrameDecode : IWICBitmapSource")] +[NativeInheritance("IWICBitmapSource")] +public unsafe partial struct IWICBitmapFrameDecode +{ + public static ref readonly Guid IID_IWICBitmapFrameDecode + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1B, 0x81, 0x16, 0x3B, + 0x43, 0x6A, + 0xC9, 0x4E, + 0xA8, + 0x13, + 0x3D, + 0x93, + 0x0C, + 0x13, + 0xB9, + 0x40 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapFrameDecode)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSize(uint* puiWidth, uint* puiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPixelFormat(Guid* pPixelFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), pPixelFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetResolution(double* pDpiX, double* pDpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CopyPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetMetadataQueryReader(IWICMetadataQueryReader** ppIMetadataQueryReader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), ppIMetadataQueryReader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetColorContexts(uint cCount, IWICColorContext** ppIColorContexts, uint* pcActualCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), cCount, ppIColorContexts, pcActualCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetThumbnail(IWICBitmapSource** ppIThumbnail) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapFrameDecode*)Unsafe.AsPointer(ref this), ppIThumbnail); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapFrameEncode.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapFrameEncode.cs new file mode 100644 index 0000000..88de355 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapFrameEncode.cs @@ -0,0 +1,171 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapFrameEncode +[Guid("00000105-a8f2-4877-ba0a-fd2b6645fb94")] +[NativeTypeName("struct IWICBitmapFrameEncode : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICBitmapFrameEncode +{ + public static ref readonly Guid IID_IWICBitmapFrameEncode + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x05, 0x01, 0x00, 0x00, + 0xF2, 0xA8, + 0x77, 0x48, + 0xBA, + 0x0A, + 0xFD, + 0x2B, + 0x66, + 0x45, + 0xFB, + 0x94 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapFrameEncode)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Initialize(Com.IPropertyBag2* pIEncoderOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), pIEncoderOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetSize(uint uiWidth, uint uiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), uiWidth, uiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetResolution(double dpiX, double dpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPixelFormat(Guid* pPixelFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), pPixelFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetColorContexts(uint cCount, IWICColorContext** ppIColorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), cCount, ppIColorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetThumbnail(IWICBitmapSource* pIThumbnail) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), pIThumbnail); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult WritePixels(uint lineCount, uint cbStride, uint cbBufferSize, byte* pbPixels) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), lineCount, cbStride, cbBufferSize, pbPixels); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult WriteSource(IWICBitmapSource* pIBitmapSource, System.Drawing.Rectangle* prc) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), pIBitmapSource, prc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult Commit() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetMetadataQueryWriter(IWICMetadataQueryWriter** ppIMetadataQueryWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICBitmapFrameEncode*)Unsafe.AsPointer(ref this), ppIMetadataQueryWriter); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapLock.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapLock.cs new file mode 100644 index 0000000..704dff3 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapLock.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapLock +[Guid("00000123-a8f2-4877-ba0a-fd2b6645fb94")] +[NativeTypeName("struct IWICBitmapLock : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICBitmapLock +{ + public static ref readonly Guid IID_IWICBitmapLock + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x23, 0x01, 0x00, 0x00, + 0xF2, 0xA8, + 0x77, 0x48, + 0xBA, + 0x0A, + 0xFD, + 0x2B, + 0x66, + 0x45, + 0xFB, + 0x94 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapLock)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSize(uint* puiWidth, uint* puiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapLock*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetStride(uint* pcbStride) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapLock*)Unsafe.AsPointer(ref this), pcbStride); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetDataPointer(uint* pcbBufferSize, byte** ppbData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapLock*)Unsafe.AsPointer(ref this), pcbBufferSize, ppbData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetPixelFormat(Guid* pPixelFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapLock*)Unsafe.AsPointer(ref this), pPixelFormat); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapScaler.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapScaler.cs new file mode 100644 index 0000000..c05ce35 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapScaler.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapScaler +[Guid("00000302-a8f2-4877-ba0a-fd2b6645fb94")] +[NativeTypeName("struct IWICBitmapScaler : IWICBitmapSource")] +[NativeInheritance("IWICBitmapSource")] +public unsafe partial struct IWICBitmapScaler +{ + public static ref readonly Guid IID_IWICBitmapScaler + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x02, 0x03, 0x00, 0x00, + 0xF2, 0xA8, + 0x77, 0x48, + 0xBA, + 0x0A, + 0xFD, + 0x2B, + 0x66, + 0x45, + 0xFB, + 0x94 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapScaler)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSize(uint* puiWidth, uint* puiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapScaler*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPixelFormat(Guid* pPixelFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapScaler*)Unsafe.AsPointer(ref this), pPixelFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetResolution(double* pDpiX, double* pDpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapScaler*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CopyPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapScaler*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapScaler*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Initialize(IWICBitmapSource* pISource, uint uiWidth, uint uiHeight, WICBitmapInterpolationMode mode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICBitmapScaler*)Unsafe.AsPointer(ref this), pISource, uiWidth, uiHeight, mode); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapSource.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapSource.cs new file mode 100644 index 0000000..8b47348 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapSource.cs @@ -0,0 +1,123 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapSource +[Guid("00000120-a8f2-4877-ba0a-fd2b6645fb94")] +[NativeTypeName("struct IWICBitmapSource : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICBitmapSource +{ + public static ref readonly Guid IID_IWICBitmapSource + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x20, 0x01, 0x00, 0x00, + 0xF2, 0xA8, + 0x77, 0x48, + 0xBA, + 0x0A, + 0xFD, + 0x2B, + 0x66, + 0x45, + 0xFB, + 0x94 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapSource)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSize(uint* puiWidth, uint* puiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapSource*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPixelFormat(Guid* pPixelFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapSource*)Unsafe.AsPointer(ref this), pPixelFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetResolution(double* pDpiX, double* pDpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapSource*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CopyPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapSource*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICBitmapSource*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapSourceTransform.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapSourceTransform.cs new file mode 100644 index 0000000..2840904 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICBitmapSourceTransform.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICBitmapSourceTransform +[Guid("3b16811b-6a43-4ec9-b713-3d5a0c13b940")] +[NativeTypeName("struct IWICBitmapSourceTransform : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICBitmapSourceTransform +{ + public static ref readonly Guid IID_IWICBitmapSourceTransform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1B, 0x81, 0x16, 0x3B, + 0x43, 0x6A, + 0xC9, 0x4E, + 0xB7, + 0x13, + 0x3D, + 0x5A, + 0x0C, + 0x13, + 0xB9, + 0x40 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICBitmapSourceTransform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CopyPixels(System.Drawing.Rectangle* prc, uint uiWidth, uint uiHeight, Guid* pguidDstFormat, WICBitmapTransformOptions dstTransform, uint nStride, uint cbBufferSize, byte* pbBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICBitmapSourceTransform*)Unsafe.AsPointer(ref this), prc, uiWidth, uiHeight, pguidDstFormat, dstTransform, nStride, cbBufferSize, pbBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetClosestSize(uint* puiWidth, uint* puiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICBitmapSourceTransform*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetClosestPixelFormat(Guid* pguidDstFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICBitmapSourceTransform*)Unsafe.AsPointer(ref this), pguidDstFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult DoesSupportTransform(WICBitmapTransformOptions dstTransform, Bool32* pfIsSupported) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICBitmapSourceTransform*)Unsafe.AsPointer(ref this), dstTransform, pfIsSupported); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICColorContext.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICColorContext.cs new file mode 100644 index 0000000..e4330a1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICColorContext.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICColorContext +[Guid("3c613a02-34b2-44ea-9a7c-45aea9c6fd6d")] +[NativeTypeName("struct IWICColorContext : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICColorContext +{ + public static ref readonly Guid IID_IWICColorContext + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x02, 0x3A, 0x61, 0x3C, + 0xB2, 0x34, + 0xEA, 0x44, + 0x9A, + 0x7C, + 0x45, + 0xAE, + 0xA9, + 0xC6, + 0xFD, + 0x6D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICColorContext)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult InitializeFromFilename(ushort* wzFilename) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICColorContext*)Unsafe.AsPointer(ref this), wzFilename); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult InitializeFromMemory(byte* pbBuffer, uint cbBufferSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICColorContext*)Unsafe.AsPointer(ref this), pbBuffer, cbBufferSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult InitializeFromExifColorSpace(uint value) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICColorContext*)Unsafe.AsPointer(ref this), value); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetType(WICColorContextType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICColorContext*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetProfileBytes(uint cbBuffer, byte* pbBuffer, uint* pcbActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICColorContext*)Unsafe.AsPointer(ref this), cbBuffer, pbBuffer, pcbActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetExifColorSpace(uint* pValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICColorContext*)Unsafe.AsPointer(ref this), pValue); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICColorTransform.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICColorTransform.cs new file mode 100644 index 0000000..afcc460 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICColorTransform.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICColorTransform +[Guid("b66f034f-d0e2-40ab-b436-6de39e321a94")] +[NativeTypeName("struct IWICColorTransform : IWICBitmapSource")] +[NativeInheritance("IWICBitmapSource")] +public unsafe partial struct IWICColorTransform +{ + public static ref readonly Guid IID_IWICColorTransform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4F, 0x03, 0x6F, 0xB6, + 0xE2, 0xD0, + 0xAB, 0x40, + 0xB4, + 0x36, + 0x6D, + 0xE3, + 0x9E, + 0x32, + 0x1A, + 0x94 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICColorTransform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSize(uint* puiWidth, uint* puiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICColorTransform*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPixelFormat(Guid* pPixelFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICColorTransform*)Unsafe.AsPointer(ref this), pPixelFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetResolution(double* pDpiX, double* pDpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICColorTransform*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CopyPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICColorTransform*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICColorTransform*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Initialize(IWICBitmapSource* pIBitmapSource, IWICColorContext* pIContextSource, IWICColorContext* pIContextDest, Guid* pixelFmtDest) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICColorTransform*)Unsafe.AsPointer(ref this), pIBitmapSource, pIContextSource, pIContextDest, pixelFmtDest); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICComponentFactory.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICComponentFactory.cs new file mode 100644 index 0000000..70d622d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICComponentFactory.cs @@ -0,0 +1,339 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICComponentFactory +[Guid("412d0c3a-9650-44fa-af5b-dd2a06c8e8fb")] +[NativeTypeName("struct IWICComponentFactory : IWICImagingFactory")] +[NativeInheritance("IWICImagingFactory")] +public unsafe partial struct IWICComponentFactory +{ + public static ref readonly Guid IID_IWICComponentFactory + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3A, 0x0C, 0x2D, 0x41, + 0x50, 0x96, + 0xFA, 0x44, + 0xAF, + 0x5B, + 0xDD, + 0x2A, + 0x06, + 0xC8, + 0xE8, + 0xFB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICComponentFactory)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateDecoderFromFilename(ushort* wzFilename, Guid* pguidVendor, uint dwDesiredAccess, WICDecodeOptions metadataOptions, IWICBitmapDecoder** ppIDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), wzFilename, pguidVendor, dwDesiredAccess, metadataOptions, ppIDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateDecoderFromStream(Com.IStream* pIStream, Guid* pguidVendor, WICDecodeOptions metadataOptions, IWICBitmapDecoder** ppIDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIStream, pguidVendor, metadataOptions, ppIDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateDecoderFromFileHandle(nuint hFile, Guid* pguidVendor, WICDecodeOptions metadataOptions, IWICBitmapDecoder** ppIDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), hFile, pguidVendor, metadataOptions, ppIDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateComponentInfo(Guid* clsidComponent, IWICComponentInfo** ppIInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), clsidComponent, ppIInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateDecoder(Guid* guidContainerFormat, Guid* pguidVendor, IWICBitmapDecoder** ppIDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, ppIDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateEncoder(Guid* guidContainerFormat, Guid* pguidVendor, IWICBitmapEncoder** ppIEncoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, ppIEncoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreatePalette(IWICPalette** ppIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateFormatConverter(IWICFormatConverter** ppIFormatConverter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIFormatConverter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateBitmapScaler(IWICBitmapScaler** ppIBitmapScaler) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIBitmapScaler); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateBitmapClipper(IWICBitmapClipper** ppIBitmapClipper) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIBitmapClipper); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateBitmapFlipRotator(IWICBitmapFlipRotator** ppIBitmapFlipRotator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIBitmapFlipRotator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateStream(IWICStream** ppIWICStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIWICStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateColorContext(IWICColorContext** ppIWICColorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIWICColorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateColorTransformer(IWICColorTransform** ppIWICColorTransform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppIWICColorTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateBitmap(uint uiWidth, uint uiHeight, Guid* pixelFormat, WICBitmapCreateCacheOption option, IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), uiWidth, uiHeight, pixelFormat, option, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateBitmapFromSource(IWICBitmapSource* pIBitmapSource, WICBitmapCreateCacheOption option, IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIBitmapSource, option, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateBitmapFromSourceRect(IWICBitmapSource* pIBitmapSource, uint x, uint y, uint width, uint height, IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIBitmapSource, x, y, width, height, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateBitmapFromMemory(uint uiWidth, uint uiHeight, Guid* pixelFormat, uint cbStride, uint cbBufferSize, byte* pbBuffer, IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), uiWidth, uiHeight, pixelFormat, cbStride, cbBufferSize, pbBuffer, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateBitmapFromHBITMAP(IntPtr hBitmap, IntPtr hPalette, WICBitmapAlphaChannelOption options, IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), hBitmap, hPalette, options, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateBitmapFromHICON(IntPtr hIcon, IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), hIcon, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateComponentEnumerator(uint componentTypes, uint options, Com.IEnumUnknown** ppIEnumUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), componentTypes, options, ppIEnumUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateFastMetadataEncoderFromDecoder(IWICBitmapDecoder* pIDecoder, IWICFastMetadataEncoder** ppIFastEncoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIDecoder, ppIFastEncoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateFastMetadataEncoderFromFrameDecode(IWICBitmapFrameDecode* pIFrameDecoder, IWICFastMetadataEncoder** ppIFastEncoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIFrameDecoder, ppIFastEncoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult CreateQueryWriter(Guid* guidMetadataFormat, Guid* pguidVendor, IWICMetadataQueryWriter** ppIQueryWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), guidMetadataFormat, pguidVendor, ppIQueryWriter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateQueryWriterFromReader(IWICMetadataQueryReader* pIQueryReader, Guid* pguidVendor, IWICMetadataQueryWriter** ppIQueryWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIQueryReader, pguidVendor, ppIQueryWriter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateMetadataReader(Guid* guidMetadataFormat, Guid* pguidVendor, uint dwOptions, Com.IStream* pIStream, IWICMetadataReader** ppIReader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), guidMetadataFormat, pguidVendor, dwOptions, pIStream, ppIReader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateMetadataReaderFromContainer(Guid* guidContainerFormat, Guid* pguidVendor, uint dwOptions, Com.IStream* pIStream, IWICMetadataReader** ppIReader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, dwOptions, pIStream, ppIReader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateMetadataWriter(Guid* guidMetadataFormat, Guid* pguidVendor, uint dwMetadataOptions, IWICMetadataWriter** ppIWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), guidMetadataFormat, pguidVendor, dwMetadataOptions, ppIWriter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateMetadataWriterFromReader(IWICMetadataReader* pIReader, Guid* pguidVendor, IWICMetadataWriter** ppIWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIReader, pguidVendor, ppIWriter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CreateQueryReaderFromBlockReader(IWICMetadataBlockReader* pIBlockReader, IWICMetadataQueryReader** ppIQueryReader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIBlockReader, ppIQueryReader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CreateQueryWriterFromBlockWriter(IWICMetadataBlockWriter* pIBlockWriter, IWICMetadataQueryWriter** ppIQueryWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), pIBlockWriter, ppIQueryWriter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult CreateEncoderPropertyBag(Com.PropertyBagMetadata** ppropOptions, uint cCount, Com.IPropertyBag2** ppIPropertyBag) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IWICComponentFactory*)Unsafe.AsPointer(ref this), ppropOptions, cCount, ppIPropertyBag); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICComponentInfo.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICComponentInfo.cs new file mode 100644 index 0000000..0f24dd3 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICComponentInfo.cs @@ -0,0 +1,147 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICComponentInfo +[Guid("23bc3f0a-698b-4357-886b-f24d50671334")] +[NativeTypeName("struct IWICComponentInfo : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICComponentInfo +{ + public static ref readonly Guid IID_IWICComponentInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0A, 0x3F, 0xBC, 0x23, + 0x8B, 0x69, + 0x57, 0x43, + 0x88, + 0x6B, + 0xF2, + 0x4D, + 0x50, + 0x67, + 0x13, + 0x34 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICComponentInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetComponentType(WICComponentType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCLSID(Guid* pclsid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), pclsid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetSigningStatus(uint* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetVendorGUID(Guid* pguidVendor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), pguidVendor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDdsDecoder.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDdsDecoder.cs new file mode 100644 index 0000000..aa89049 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDdsDecoder.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICDdsDecoder +[Guid("409cd537-8532-40cb-9774-e2feb2df4e9c")] +[NativeTypeName("struct IWICDdsDecoder : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICDdsDecoder +{ + public static ref readonly Guid IID_IWICDdsDecoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x37, 0xD5, 0x9C, 0x40, + 0x32, 0x85, + 0xCB, 0x40, + 0x97, + 0x74, + 0xE2, + 0xFE, + 0xB2, + 0xDF, + 0x4E, + 0x9C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDdsDecoder)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetParameters(WICDdsParameters* pParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICDdsDecoder*)Unsafe.AsPointer(ref this), pParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFrame(uint arrayIndex, uint mipLevel, uint sliceIndex, IWICBitmapFrameDecode** ppIBitmapFrame) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICDdsDecoder*)Unsafe.AsPointer(ref this), arrayIndex, mipLevel, sliceIndex, ppIBitmapFrame); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDdsEncoder.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDdsEncoder.cs new file mode 100644 index 0000000..2b1031a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDdsEncoder.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICDdsEncoder +[Guid("5cacdb4c-407e-41b3-b936-d0f010cd6732")] +[NativeTypeName("struct IWICDdsEncoder : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICDdsEncoder +{ + public static ref readonly Guid IID_IWICDdsEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4C, 0xDB, 0xAC, 0x5C, + 0x7E, 0x40, + 0xB3, 0x41, + 0xB9, + 0x36, + 0xD0, + 0xF0, + 0x10, + 0xCD, + 0x67, + 0x32 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDdsEncoder)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetParameters(WICDdsParameters* pParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICDdsEncoder*)Unsafe.AsPointer(ref this), pParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetParameters(WICDdsParameters* pParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICDdsEncoder*)Unsafe.AsPointer(ref this), pParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateNewFrame(IWICBitmapFrameEncode** ppIFrameEncode, uint* pArrayIndex, uint* pMipLevel, uint* pSliceIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICDdsEncoder*)Unsafe.AsPointer(ref this), ppIFrameEncode, pArrayIndex, pMipLevel, pSliceIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDdsFrameDecode.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDdsFrameDecode.cs new file mode 100644 index 0000000..27b1e6c --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDdsFrameDecode.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICDdsFrameDecode +[Guid("3d4c0c61-18a4-41e4-bd80-481a4fc9f464")] +[NativeTypeName("struct IWICDdsFrameDecode : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICDdsFrameDecode +{ + public static ref readonly Guid IID_IWICDdsFrameDecode + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x61, 0x0C, 0x4C, 0x3D, + 0xA4, 0x18, + 0xE4, 0x41, + 0xBD, + 0x80, + 0x48, + 0x1A, + 0x4F, + 0xC9, + 0xF4, + 0x64 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDdsFrameDecode)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSizeInBlocks(uint* pWidthInBlocks, uint* pHeightInBlocks) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICDdsFrameDecode*)Unsafe.AsPointer(ref this), pWidthInBlocks, pHeightInBlocks); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFormatInfo(WICDdsFormatInfo* pFormatInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICDdsFrameDecode*)Unsafe.AsPointer(ref this), pFormatInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CopyBlocks(System.Drawing.Rectangle* prcBoundsInBlocks, uint cbStride, uint cbBufferSize, byte* pbBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICDdsFrameDecode*)Unsafe.AsPointer(ref this), prcBoundsInBlocks, cbStride, cbBufferSize, pbBuffer); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDevelopRaw.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDevelopRaw.cs new file mode 100644 index 0000000..4d19b4b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDevelopRaw.cs @@ -0,0 +1,403 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICDevelopRaw +[Guid("fbec5e44-f7be-4b65-b7f8-c0c81fef026d")] +[NativeTypeName("struct IWICDevelopRaw : IWICBitmapFrameDecode")] +[NativeInheritance("IWICBitmapFrameDecode")] +public unsafe partial struct IWICDevelopRaw +{ + public static ref readonly Guid IID_IWICDevelopRaw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x44, 0x5E, 0xEC, 0xFB, + 0xBE, 0xF7, + 0x65, 0x4B, + 0xB7, + 0xF8, + 0xC0, + 0xC8, + 0x1F, + 0xEF, + 0x02, + 0x6D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDevelopRaw)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSize(uint* puiWidth, uint* puiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPixelFormat(Guid* pPixelFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pPixelFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetResolution(double* pDpiX, double* pDpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CopyPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetMetadataQueryReader(IWICMetadataQueryReader** ppIMetadataQueryReader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), ppIMetadataQueryReader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetColorContexts(uint cCount, IWICColorContext** ppIColorContexts, uint* pcActualCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), cCount, ppIColorContexts, pcActualCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetThumbnail(IWICBitmapSource** ppIThumbnail) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), ppIThumbnail); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult QueryRawCapabilitiesInfo(WICRawCapabilitiesInfo* pInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult LoadParameterSet(WICRawParameterSet ParameterSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), ParameterSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetCurrentParameterSet(Com.IPropertyBag2** ppCurrentParameterSet) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), ppCurrentParameterSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult SetExposureCompensation(double ev) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), ev); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetExposureCompensation(double* pEV) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pEV); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult SetWhitePointRGB(uint Red, uint Green, uint Blue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Red, Green, Blue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetWhitePointRGB(uint* pRed, uint* pGreen, uint* pBlue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pRed, pGreen, pBlue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult SetNamedWhitePoint(WICNamedWhitePoint WhitePoint) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), WhitePoint); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetNamedWhitePoint(WICNamedWhitePoint* pWhitePoint) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pWhitePoint); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult SetWhitePointKelvin(uint WhitePointKelvin) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), WhitePointKelvin); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetWhitePointKelvin(uint* pWhitePointKelvin) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pWhitePointKelvin); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult GetKelvinRangeInfo(uint* pMinKelvinTemp, uint* pMaxKelvinTemp, uint* pKelvinTempStepValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pMinKelvinTemp, pMaxKelvinTemp, pKelvinTempStepValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult SetContrast(double Contrast) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Contrast); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetContrast(double* pContrast) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pContrast); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult SetGamma(double Gamma) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Gamma); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetGamma(double* pGamma) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pGamma); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult SetSharpness(double Sharpness) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Sharpness); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult GetSharpness(double* pSharpness) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[28]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pSharpness); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult SetSaturation(double Saturation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[29]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Saturation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult GetSaturation(double* pSaturation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[30]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pSaturation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult SetTint(double Tint) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[31]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Tint); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult GetTint(double* pTint) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[32]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pTint); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult SetNoiseReduction(double NoiseReduction) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[33]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), NoiseReduction); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetNoiseReduction(double* pNoiseReduction) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[34]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pNoiseReduction); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult SetDestinationColorContext(IWICColorContext* pColorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[35]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pColorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult SetToneCurve(uint cbToneCurveSize, WICRawToneCurve* pToneCurve) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[36]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), cbToneCurveSize, pToneCurve); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetToneCurve(uint cbToneCurveBufferSize, WICRawToneCurve* pToneCurve, uint* pcbActualToneCurveBufferSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[37]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), cbToneCurveBufferSize, pToneCurve, pcbActualToneCurveBufferSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult SetRotation(double Rotation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[38]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), Rotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetRotation(double* pRotation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[39]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pRotation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetRenderMode(WICRawRenderMode RenderMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[40]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), RenderMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult GetRenderMode(WICRawRenderMode* pRenderMode) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[41]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pRenderMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult SetNotificationCallback(IWICDevelopRawNotificationCallback* pCallback) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[42]))((IWICDevelopRaw*)Unsafe.AsPointer(ref this), pCallback); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDevelopRawNotificationCallback.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDevelopRawNotificationCallback.cs new file mode 100644 index 0000000..df32a8f --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICDevelopRawNotificationCallback.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICDevelopRawNotificationCallback +[Guid("95c75a6e-3e8c-4ec2-85a8-aebcc551e59b")] +[NativeTypeName("struct IWICDevelopRawNotificationCallback : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICDevelopRawNotificationCallback +{ + public static ref readonly Guid IID_IWICDevelopRawNotificationCallback + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6E, 0x5A, 0xC7, 0x95, + 0x8C, 0x3E, + 0xC2, 0x4E, + 0x85, + 0xA8, + 0xAE, + 0xBC, + 0xC5, + 0x51, + 0xE5, + 0x9B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICDevelopRawNotificationCallback)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Notify(uint NotificationMask) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICDevelopRawNotificationCallback*)Unsafe.AsPointer(ref this), NotificationMask); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICEnumMetadataItem.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICEnumMetadataItem.cs new file mode 100644 index 0000000..8e57f28 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICEnumMetadataItem.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICEnumMetadataItem +[Guid("dc2bb46d-3f07-481e-8625-220c4aedbb33")] +[NativeTypeName("struct IWICEnumMetadataItem : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICEnumMetadataItem +{ + public static ref readonly Guid IID_IWICEnumMetadataItem + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6D, 0xB4, 0x2B, 0xDC, + 0x07, 0x3F, + 0x1E, 0x48, + 0x86, + 0x25, + 0x22, + 0x0C, + 0x4A, + 0xED, + 0xBB, + 0x33 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICEnumMetadataItem)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Next(uint celt, Com.Variant** rgeltSchema, Com.Variant** rgeltId, Com.Variant** rgeltValue, uint* pceltFetched) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICEnumMetadataItem*)Unsafe.AsPointer(ref this), celt, rgeltSchema, rgeltId, rgeltValue, pceltFetched); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult Skip(uint celt) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICEnumMetadataItem*)Unsafe.AsPointer(ref this), celt); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult Reset() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICEnumMetadataItem*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult Clone(IWICEnumMetadataItem** ppIEnumMetadataItem) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICEnumMetadataItem*)Unsafe.AsPointer(ref this), ppIEnumMetadataItem); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICFastMetadataEncoder.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICFastMetadataEncoder.cs new file mode 100644 index 0000000..09ff795 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICFastMetadataEncoder.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICFastMetadataEncoder +[Guid("b84e2c09-78c9-4ac4-8bd3-524ae1663a2f")] +[NativeTypeName("struct IWICFastMetadataEncoder : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICFastMetadataEncoder +{ + public static ref readonly Guid IID_IWICFastMetadataEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x09, 0x2C, 0x4E, 0xB8, + 0xC9, 0x78, + 0xC4, 0x4A, + 0x8B, + 0xD3, + 0x52, + 0x4A, + 0xE1, + 0x66, + 0x3A, + 0x2F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICFastMetadataEncoder)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Commit() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICFastMetadataEncoder*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetMetadataQueryWriter(IWICMetadataQueryWriter** ppIMetadataQueryWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICFastMetadataEncoder*)Unsafe.AsPointer(ref this), ppIMetadataQueryWriter); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICFormatConverter.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICFormatConverter.cs new file mode 100644 index 0000000..3390bad --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICFormatConverter.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICFormatConverter +[Guid("00000301-a8f2-4877-ba0a-fd2b6645fb94")] +[NativeTypeName("struct IWICFormatConverter : IWICBitmapSource")] +[NativeInheritance("IWICBitmapSource")] +public unsafe partial struct IWICFormatConverter +{ + public static ref readonly Guid IID_IWICFormatConverter + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x01, 0x03, 0x00, 0x00, + 0xF2, 0xA8, + 0x77, 0x48, + 0xBA, + 0x0A, + 0xFD, + 0x2B, + 0x66, + 0x45, + 0xFB, + 0x94 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICFormatConverter)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSize(uint* puiWidth, uint* puiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPixelFormat(Guid* pPixelFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), pPixelFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetResolution(double* pDpiX, double* pDpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CopyPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Initialize(IWICBitmapSource* pISource, Guid* dstFormat, WICBitmapDitherType dither, IWICPalette* pIPalette, double alphaThresholdPercent, WICBitmapPaletteType paletteTranslate) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), pISource, dstFormat, dither, pIPalette, alphaThresholdPercent, paletteTranslate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CanConvert(Guid* srcPixelFormat, Guid* dstPixelFormat, Bool32* pfCanConvert) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICFormatConverter*)Unsafe.AsPointer(ref this), srcPixelFormat, dstPixelFormat, pfCanConvert); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICFormatConverterInfo.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICFormatConverterInfo.cs new file mode 100644 index 0000000..f89bff3 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICFormatConverterInfo.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICFormatConverterInfo +[Guid("9f34fb65-13f4-4f15-bc57-3726b5e53d9f")] +[NativeTypeName("struct IWICFormatConverterInfo : IWICComponentInfo")] +[NativeInheritance("IWICComponentInfo")] +public unsafe partial struct IWICFormatConverterInfo +{ + public static ref readonly Guid IID_IWICFormatConverterInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x65, 0xFB, 0x34, 0x9F, + 0xF4, 0x13, + 0x15, 0x4F, + 0xBC, + 0x57, + 0x37, + 0x26, + 0xB5, + 0xE5, + 0x3D, + 0x9F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICFormatConverterInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetComponentType(WICComponentType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCLSID(Guid* pclsid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), pclsid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetSigningStatus(uint* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetVendorGUID(Guid* pguidVendor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), pguidVendor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetPixelFormats(uint cFormats, Guid* pPixelFormatGUIDs, uint* pcActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cFormats, pPixelFormatGUIDs, pcActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateInstance(IWICFormatConverter** ppIConverter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), ppIConverter); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICImageEncoder.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICImageEncoder.cs new file mode 100644 index 0000000..27f1a12 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICImageEncoder.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging.D2D; + +/// +/// IWICImageEncoder +[Guid("04c75bf8-3ce1-473b-acc5-3cc4f5e94999")] +[NativeTypeName("struct IWICImageEncoder : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICImageEncoder +{ + public static ref readonly Guid IID_IWICImageEncoder + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF8, 0x5B, 0xC7, 0x04, + 0xE1, 0x3C, + 0x3B, 0x47, + 0xAC, + 0xC5, + 0x3C, + 0xC4, + 0xF5, + 0xE9, + 0x49, + 0x99 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICImageEncoder)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult WriteFrame(Graphics.Direct2D.ID2D1Image* pImage, Graphics.Imaging.IWICBitmapFrameEncode* pFrameEncode, Graphics.Imaging.WICImageParameters* pImageParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICImageEncoder*)Unsafe.AsPointer(ref this), pImage, pFrameEncode, pImageParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult WriteFrameThumbnail(Graphics.Direct2D.ID2D1Image* pImage, Graphics.Imaging.IWICBitmapFrameEncode* pFrameEncode, Graphics.Imaging.WICImageParameters* pImageParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICImageEncoder*)Unsafe.AsPointer(ref this), pImage, pFrameEncode, pImageParameters); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult WriteThumbnail(Graphics.Direct2D.ID2D1Image* pImage, Graphics.Imaging.IWICBitmapEncoder* pEncoder, Graphics.Imaging.WICImageParameters* pImageParameters) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICImageEncoder*)Unsafe.AsPointer(ref this), pImage, pEncoder, pImageParameters); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICImagingFactory.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICImagingFactory.cs new file mode 100644 index 0000000..fb61af4 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICImagingFactory.cs @@ -0,0 +1,283 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICImagingFactory +[Guid("ec5ec8a9-c395-4314-9c77-54d7a935ff70")] +[NativeTypeName("struct IWICImagingFactory : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICImagingFactory +{ + public static ref readonly Guid IID_IWICImagingFactory + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA9, 0xC8, 0x5E, 0xEC, + 0x95, 0xC3, + 0x14, 0x43, + 0x9C, + 0x77, + 0x54, + 0xD7, + 0xA9, + 0x35, + 0xFF, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICImagingFactory)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateDecoderFromFilename(ushort* wzFilename, Guid* pguidVendor, NativeFileAccess dwDesiredAccess, WICDecodeOptions metadataOptions, IWICBitmapDecoder** ppIDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), wzFilename, pguidVendor, dwDesiredAccess, metadataOptions, ppIDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateDecoderFromStream(Com.IStream* pIStream, Guid* pguidVendor, WICDecodeOptions metadataOptions, IWICBitmapDecoder** ppIDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), pIStream, pguidVendor, metadataOptions, ppIDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateDecoderFromFileHandle(nuint hFile, Guid* pguidVendor, WICDecodeOptions metadataOptions, IWICBitmapDecoder** ppIDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), hFile, pguidVendor, metadataOptions, ppIDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateComponentInfo(Guid* clsidComponent, IWICComponentInfo** ppIInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), clsidComponent, ppIInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateDecoder(Guid* guidContainerFormat, Guid* pguidVendor, IWICBitmapDecoder** ppIDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, ppIDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateEncoder(Guid* guidContainerFormat, Guid* pguidVendor, IWICBitmapEncoder** ppIEncoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, ppIEncoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreatePalette(IWICPalette** ppIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateFormatConverter(IWICFormatConverter** ppIFormatConverter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIFormatConverter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateBitmapScaler(IWICBitmapScaler** ppIBitmapScaler) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIBitmapScaler); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateBitmapClipper(IWICBitmapClipper** ppIBitmapClipper) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIBitmapClipper); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateBitmapFlipRotator(IWICBitmapFlipRotator** ppIBitmapFlipRotator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIBitmapFlipRotator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateStream(IWICStream** ppIWICStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIWICStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateColorContext(IWICColorContext** ppIWICColorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIWICColorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateColorTransformer(IWICColorTransform** ppIWICColorTransform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), ppIWICColorTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateBitmap(uint uiWidth, uint uiHeight, Guid* pixelFormat, WICBitmapCreateCacheOption option, IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), uiWidth, uiHeight, pixelFormat, option, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateBitmapFromSource(IWICBitmapSource* pIBitmapSource, WICBitmapCreateCacheOption option, IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), pIBitmapSource, option, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateBitmapFromSourceRect(IWICBitmapSource* pIBitmapSource, uint x, uint y, uint width, uint height, IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), pIBitmapSource, x, y, width, height, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateBitmapFromMemory(uint uiWidth, uint uiHeight, Guid* pixelFormat, uint cbStride, uint cbBufferSize, byte* pbBuffer, IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), uiWidth, uiHeight, pixelFormat, cbStride, cbBufferSize, pbBuffer, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateBitmapFromHBITMAP(IntPtr hBitmap, IntPtr hPalette, WICBitmapAlphaChannelOption options, IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), hBitmap, hPalette, options, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateBitmapFromHICON(IntPtr hIcon, IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), hIcon, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateComponentEnumerator(uint componentTypes, uint options, Com.IEnumUnknown** ppIEnumUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), componentTypes, options, ppIEnumUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateFastMetadataEncoderFromDecoder(IWICBitmapDecoder* pIDecoder, IWICFastMetadataEncoder** ppIFastEncoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), pIDecoder, ppIFastEncoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateFastMetadataEncoderFromFrameDecode(IWICBitmapFrameDecode* pIFrameDecoder, IWICFastMetadataEncoder** ppIFastEncoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), pIFrameDecoder, ppIFastEncoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult CreateQueryWriter(Guid* guidMetadataFormat, Guid* pguidVendor, IWICMetadataQueryWriter** ppIQueryWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[26]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), guidMetadataFormat, pguidVendor, ppIQueryWriter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateQueryWriterFromReader(IWICMetadataQueryReader* pIQueryReader, Guid* pguidVendor, IWICMetadataQueryWriter** ppIQueryWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[27]))((IWICImagingFactory*)Unsafe.AsPointer(ref this), pIQueryReader, pguidVendor, ppIQueryWriter); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICImagingFactory2.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICImagingFactory2.cs new file mode 100644 index 0000000..14966c8 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICImagingFactory2.cs @@ -0,0 +1,265 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging.D2D; + +/// +/// IWICImagingFactory2 +[Guid("7b816b45-1996-4476-b132-de9e247c8af0")] +[NativeTypeName("struct IWICImagingFactory2 : IWICImagingFactory")] +[NativeInheritance("IWICImagingFactory")] +public unsafe partial struct IWICImagingFactory2 +{ + public static ref readonly Guid IID_IWICImagingFactory2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x45, 0x6B, 0x81, 0x7B, + 0x96, 0x19, + 0x76, 0x44, + 0xB1, + 0x32, + 0xDE, + 0x9E, + 0x24, + 0x7C, + 0x8A, + 0xF0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICImagingFactory2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult CreateDecoderFromFilename(ushort* wzFilename, Guid* pguidVendor, uint dwDesiredAccess, Graphics.Imaging.WICDecodeOptions metadataOptions, Graphics.Imaging.IWICBitmapDecoder** ppIDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), wzFilename, pguidVendor, dwDesiredAccess, metadataOptions, ppIDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public HResult CreateDecoderFromStream(Com.IStream* pIStream, Guid* pguidVendor, Graphics.Imaging.WICDecodeOptions metadataOptions, Graphics.Imaging.IWICBitmapDecoder** ppIDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pIStream, pguidVendor, metadataOptions, ppIDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public HResult CreateDecoderFromFileHandle(nuint hFile, Guid* pguidVendor, Graphics.Imaging.WICDecodeOptions metadataOptions, Graphics.Imaging.IWICBitmapDecoder** ppIDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), hFile, pguidVendor, metadataOptions, ppIDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult CreateComponentInfo(Guid* clsidComponent, Graphics.Imaging.IWICComponentInfo** ppIInfo) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), clsidComponent, ppIInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateDecoder(Guid* guidContainerFormat, Guid* pguidVendor, Graphics.Imaging.IWICBitmapDecoder** ppIDecoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, ppIDecoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateEncoder(Guid* guidContainerFormat, Guid* pguidVendor, Graphics.Imaging.IWICBitmapEncoder** ppIEncoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), guidContainerFormat, pguidVendor, ppIEncoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreatePalette(Graphics.Imaging.IWICPalette** ppIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateFormatConverter(Graphics.Imaging.IWICFormatConverter** ppIFormatConverter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIFormatConverter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateBitmapScaler(Graphics.Imaging.IWICBitmapScaler** ppIBitmapScaler) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIBitmapScaler); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateBitmapClipper(Graphics.Imaging.IWICBitmapClipper** ppIBitmapClipper) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIBitmapClipper); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateBitmapFlipRotator(Graphics.Imaging.IWICBitmapFlipRotator** ppIBitmapFlipRotator) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIBitmapFlipRotator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateStream(Graphics.Imaging.IWICStream** ppIWICStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIWICStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateColorContext(Graphics.Imaging.IWICColorContext** ppIWICColorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIWICColorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateColorTransformer(Graphics.Imaging.IWICColorTransform** ppIWICColorTransform) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), ppIWICColorTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateBitmap(uint uiWidth, uint uiHeight, Guid* pixelFormat, Graphics.Imaging.WICBitmapCreateCacheOption option, Graphics.Imaging.IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), uiWidth, uiHeight, pixelFormat, option, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateBitmapFromSource(Graphics.Imaging.IWICBitmapSource* pIBitmapSource, Graphics.Imaging.WICBitmapCreateCacheOption option, Graphics.Imaging.IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pIBitmapSource, option, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateBitmapFromSourceRect(Graphics.Imaging.IWICBitmapSource* pIBitmapSource, uint x, uint y, uint width, uint height, Graphics.Imaging.IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pIBitmapSource, x, y, width, height, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateBitmapFromMemory(uint uiWidth, uint uiHeight, Guid* pixelFormat, uint cbStride, uint cbBufferSize, byte* pbBuffer, Graphics.Imaging.IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), uiWidth, uiHeight, pixelFormat, cbStride, cbBufferSize, pbBuffer, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateBitmapFromHBITMAP(IntPtr hBitmap, IntPtr hPalette, Graphics.Imaging.WICBitmapAlphaChannelOption options, Graphics.Imaging.IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), hBitmap, hPalette, options, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateBitmapFromHICON(IntPtr hIcon, Graphics.Imaging.IWICBitmap** ppIBitmap) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), hIcon, ppIBitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateComponentEnumerator(uint componentTypes, uint options, Com.IEnumUnknown** ppIEnumUnknown) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), componentTypes, options, ppIEnumUnknown); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateFastMetadataEncoderFromDecoder(Graphics.Imaging.IWICBitmapDecoder* pIDecoder, Graphics.Imaging.IWICFastMetadataEncoder** ppIFastEncoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[21]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pIDecoder, ppIFastEncoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateFastMetadataEncoderFromFrameDecode(Graphics.Imaging.IWICBitmapFrameDecode* pIFrameDecoder, Graphics.Imaging.IWICFastMetadataEncoder** ppIFastEncoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[22]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pIFrameDecoder, ppIFastEncoder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateQueryWriter(Guid* guidMetadataFormat, Guid* pguidVendor, Graphics.Imaging.IWICMetadataQueryWriter** ppIQueryWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[23]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), guidMetadataFormat, pguidVendor, ppIQueryWriter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateQueryWriterFromReader(Graphics.Imaging.IWICMetadataQueryReader* pIQueryReader, Guid* pguidVendor, Graphics.Imaging.IWICMetadataQueryWriter** ppIQueryWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[24]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pIQueryReader, pguidVendor, ppIQueryWriter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateImageEncoder(Graphics.Direct2D.ID2D1Device* pD2DDevice, IWICImageEncoder** ppWICImageEncoder) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[25]))((IWICImagingFactory2*)Unsafe.AsPointer(ref this), pD2DDevice, ppWICImageEncoder); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICJpegFrameDecode.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICJpegFrameDecode.cs new file mode 100644 index 0000000..f88ef30 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICJpegFrameDecode.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICJpegFrameDecode +[Guid("8939f66e-c46a-4c21-a9d1-98b327ce1679")] +[NativeTypeName("struct IWICJpegFrameDecode : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICJpegFrameDecode +{ + public static ref readonly Guid IID_IWICJpegFrameDecode + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6E, 0xF6, 0x39, 0x89, + 0x6A, 0xC4, + 0x21, 0x4C, + 0xA9, + 0xD1, + 0x98, + 0xB3, + 0x27, + 0xCE, + 0x16, + 0x79 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICJpegFrameDecode)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult DoesSupportIndexing(Bool32* pfIndexingSupported) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), pfIndexingSupported); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetIndexing(WICJpegIndexingOptions options, uint horizontalIntervalSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), options, horizontalIntervalSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult ClearIndexing() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetAcHuffmanTable(uint scanIndex, uint tableIndex, Graphics.Dxgi.Common.JpegAcHuffmanTable* pAcHuffmanTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), scanIndex, tableIndex, pAcHuffmanTable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDcHuffmanTable(uint scanIndex, uint tableIndex, Graphics.Dxgi.Common.JpegDcHuffmanTable* pDcHuffmanTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), scanIndex, tableIndex, pDcHuffmanTable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetQuantizationTable(uint scanIndex, uint tableIndex, Graphics.Dxgi.Common.JpegQuantizationTable* pQuantizationTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), scanIndex, tableIndex, pQuantizationTable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetFrameHeader(WICJpegFrameHeader* pFrameHeader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), pFrameHeader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetScanHeader(uint scanIndex, WICJpegScanHeader* pScanHeader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), scanIndex, pScanHeader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CopyScan(uint scanIndex, uint scanOffset, uint cbScanData, byte* pbScanData, uint* pcbScanDataActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), scanIndex, scanOffset, cbScanData, pbScanData, pcbScanDataActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CopyMinimalStream(uint streamOffset, uint cbStreamData, byte* pbStreamData, uint* pcbStreamDataActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICJpegFrameDecode*)Unsafe.AsPointer(ref this), streamOffset, cbStreamData, pbStreamData, pcbStreamDataActual); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICJpegFrameEncode.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICJpegFrameEncode.cs new file mode 100644 index 0000000..6ea55f1 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICJpegFrameEncode.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICJpegFrameEncode +[Guid("2f0c601f-d2c6-468c-abfa-49495d983ed1")] +[NativeTypeName("struct IWICJpegFrameEncode : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICJpegFrameEncode +{ + public static ref readonly Guid IID_IWICJpegFrameEncode + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1F, 0x60, 0x0C, 0x2F, + 0xC6, 0xD2, + 0x8C, 0x46, + 0xAB, + 0xFA, + 0x49, + 0x49, + 0x5D, + 0x98, + 0x3E, + 0xD1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICJpegFrameEncode)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetAcHuffmanTable(uint scanIndex, uint tableIndex, Graphics.Dxgi.Common.JpegAcHuffmanTable* pAcHuffmanTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICJpegFrameEncode*)Unsafe.AsPointer(ref this), scanIndex, tableIndex, pAcHuffmanTable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetDcHuffmanTable(uint scanIndex, uint tableIndex, Graphics.Dxgi.Common.JpegDcHuffmanTable* pDcHuffmanTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICJpegFrameEncode*)Unsafe.AsPointer(ref this), scanIndex, tableIndex, pDcHuffmanTable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetQuantizationTable(uint scanIndex, uint tableIndex, Graphics.Dxgi.Common.JpegQuantizationTable* pQuantizationTable) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICJpegFrameEncode*)Unsafe.AsPointer(ref this), scanIndex, tableIndex, pQuantizationTable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult WriteScan(uint cbScanData, byte* pbScanData) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICJpegFrameEncode*)Unsafe.AsPointer(ref this), cbScanData, pbScanData); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataBlockReader.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataBlockReader.cs new file mode 100644 index 0000000..af3778d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataBlockReader.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICMetadataBlockReader +[Guid("feaa2a8d-b3f3-43e4-b25c-d1de990a1ae1")] +[NativeTypeName("struct IWICMetadataBlockReader : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICMetadataBlockReader +{ + public static ref readonly Guid IID_IWICMetadataBlockReader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8D, 0x2A, 0xAA, 0xFE, + 0xF3, 0xB3, + 0xE4, 0x43, + 0xB2, + 0x5C, + 0xD1, + 0xDE, + 0x99, + 0x0A, + 0x1A, + 0xE1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataBlockReader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetContainerFormat(Guid* pguidContainerFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataBlockReader*)Unsafe.AsPointer(ref this), pguidContainerFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCount(uint* pcCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataBlockReader*)Unsafe.AsPointer(ref this), pcCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetReaderByIndex(uint nIndex, IWICMetadataReader** ppIMetadataReader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataBlockReader*)Unsafe.AsPointer(ref this), nIndex, ppIMetadataReader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetEnumerator(Com.IEnumUnknown** ppIEnumMetadata) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataBlockReader*)Unsafe.AsPointer(ref this), ppIEnumMetadata); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataBlockWriter.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataBlockWriter.cs new file mode 100644 index 0000000..7c8b2d5 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataBlockWriter.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICMetadataBlockWriter +[Guid("08fb9676-b444-41e8-8dbe-6a53a542bff1")] +[NativeTypeName("struct IWICMetadataBlockWriter : IWICMetadataBlockReader")] +[NativeInheritance("IWICMetadataBlockReader")] +public unsafe partial struct IWICMetadataBlockWriter +{ + public static ref readonly Guid IID_IWICMetadataBlockWriter + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x76, 0x96, 0xFB, 0x08, + 0x44, 0xB4, + 0xE8, 0x41, + 0x8D, + 0xBE, + 0x6A, + 0x53, + 0xA5, + 0x42, + 0xBF, + 0xF1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataBlockWriter)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetContainerFormat(Guid* pguidContainerFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), pguidContainerFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCount(uint* pcCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), pcCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetReaderByIndex(uint nIndex, IWICMetadataReader** ppIMetadataReader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), nIndex, ppIMetadataReader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetEnumerator(Com.IEnumUnknown** ppIEnumMetadata) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), ppIEnumMetadata); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult InitializeFromBlockReader(IWICMetadataBlockReader* pIMDBlockReader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), pIMDBlockReader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetWriterByIndex(uint nIndex, IWICMetadataWriter** ppIMetadataWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), nIndex, ppIMetadataWriter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult AddWriter(IWICMetadataWriter* pIMetadataWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), pIMetadataWriter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetWriterByIndex(uint nIndex, IWICMetadataWriter* pIMetadataWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), nIndex, pIMetadataWriter); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult RemoveWriterByIndex(uint nIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICMetadataBlockWriter*)Unsafe.AsPointer(ref this), nIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataHandlerInfo.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataHandlerInfo.cs new file mode 100644 index 0000000..cb3923d --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataHandlerInfo.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICMetadataHandlerInfo +[Guid("aba958bf-c672-44d1-8d61-ce6df2e682c2")] +[NativeTypeName("struct IWICMetadataHandlerInfo : IWICComponentInfo")] +[NativeInheritance("IWICComponentInfo")] +public unsafe partial struct IWICMetadataHandlerInfo +{ + public static ref readonly Guid IID_IWICMetadataHandlerInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBF, 0x58, 0xA9, 0xAB, + 0x72, 0xC6, + 0xD1, 0x44, + 0x8D, + 0x61, + 0xCE, + 0x6D, + 0xF2, + 0xE6, + 0x82, + 0xC2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataHandlerInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetComponentType(WICComponentType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCLSID(Guid* pclsid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pclsid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetSigningStatus(uint* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetVendorGUID(Guid* pguidVendor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pguidVendor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetMetadataFormat(Guid* pguidMetadataFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pguidMetadataFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetContainerFormats(uint cContainerFormats, Guid* pguidContainerFormats, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cContainerFormats, pguidContainerFormats, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult DoesRequireFullStream(Bool32* pfRequiresFullStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pfRequiresFullStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult DoesSupportPadding(Bool32* pfSupportsPadding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pfSupportsPadding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult DoesRequireFixedSize(Bool32* pfFixedSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), pfFixedSize); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataQueryReader.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataQueryReader.cs new file mode 100644 index 0000000..d29ba3a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataQueryReader.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICMetadataQueryReader +[Guid("30989668-e1c9-4597-b395-458eedb808df")] +[NativeTypeName("struct IWICMetadataQueryReader : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICMetadataQueryReader +{ + public static ref readonly Guid IID_IWICMetadataQueryReader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x68, 0x96, 0x98, 0x30, + 0xC9, 0xE1, + 0x97, 0x45, + 0xB3, + 0x95, + 0x45, + 0x8E, + 0xED, + 0xB8, + 0x08, + 0xDF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataQueryReader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetContainerFormat(Guid* pguidContainerFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataQueryReader*)Unsafe.AsPointer(ref this), pguidContainerFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetLocation(uint cchMaxLength, ushort* wzNamespace, uint* pcchActualLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataQueryReader*)Unsafe.AsPointer(ref this), cchMaxLength, wzNamespace, pcchActualLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetMetadataByName(ushort* wzName, Com.Variant** pvarValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataQueryReader*)Unsafe.AsPointer(ref this), wzName, pvarValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetEnumerator(Com.IEnumString** ppIEnumString) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataQueryReader*)Unsafe.AsPointer(ref this), ppIEnumString); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataQueryWriter.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataQueryWriter.cs new file mode 100644 index 0000000..d1b5f40 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataQueryWriter.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICMetadataQueryWriter +[Guid("a721791a-0def-4d06-bd91-2118bf1db10b")] +[NativeTypeName("struct IWICMetadataQueryWriter : IWICMetadataQueryReader")] +[NativeInheritance("IWICMetadataQueryReader")] +public unsafe partial struct IWICMetadataQueryWriter +{ + public static ref readonly Guid IID_IWICMetadataQueryWriter + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1A, 0x79, 0x21, 0xA7, + 0xEF, 0x0D, + 0x06, 0x4D, + 0xBD, + 0x91, + 0x21, + 0x18, + 0xBF, + 0x1D, + 0xB1, + 0x0B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataQueryWriter)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetContainerFormat(Guid* pguidContainerFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), pguidContainerFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetLocation(uint cchMaxLength, ushort* wzNamespace, uint* pcchActualLength) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), cchMaxLength, wzNamespace, pcchActualLength); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetMetadataByName(ushort* wzName, Com.Variant** pvarValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), wzName, pvarValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetEnumerator(Com.IEnumString** ppIEnumString) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), ppIEnumString); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult SetMetadataByName(ushort* wzName, Com.Variant* pvarValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), wzName, pvarValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult RemoveMetadataByName(ushort* wzName) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), wzName); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataReader.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataReader.cs new file mode 100644 index 0000000..2007d92 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataReader.cs @@ -0,0 +1,131 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICMetadataReader +[Guid("9204fe99-d8fc-4fd5-a001-9536b067a899")] +[NativeTypeName("struct IWICMetadataReader : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICMetadataReader +{ + public static ref readonly Guid IID_IWICMetadataReader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x99, 0xFE, 0x04, 0x92, + 0xFC, 0xD8, + 0xD5, 0x4F, + 0xA0, + 0x01, + 0x95, + 0x36, + 0xB0, + 0x67, + 0xA8, + 0x99 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataReader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetMetadataFormat(Guid* pguidMetadataFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataReader*)Unsafe.AsPointer(ref this), pguidMetadataFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetMetadataHandlerInfo(IWICMetadataHandlerInfo** ppIHandler) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataReader*)Unsafe.AsPointer(ref this), ppIHandler); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetCount(uint* pcCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataReader*)Unsafe.AsPointer(ref this), pcCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetValueByIndex(uint nIndex, Com.Variant** pvarSchema, Com.Variant** pvarId, Com.Variant** pvarValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataReader*)Unsafe.AsPointer(ref this), nIndex, pvarSchema, pvarId, pvarValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetValue(Com.Variant* pvarSchema, Com.Variant* pvarId, Com.Variant** pvarValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataReader*)Unsafe.AsPointer(ref this), pvarSchema, pvarId, pvarValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetEnumerator(IWICEnumMetadataItem** ppIEnumMetadata) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataReader*)Unsafe.AsPointer(ref this), ppIEnumMetadata); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataReaderInfo.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataReaderInfo.cs new file mode 100644 index 0000000..0d87106 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataReaderInfo.cs @@ -0,0 +1,227 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICMetadataReaderInfo +[Guid("eebf1f5b-07c1-4447-a3ab-22acaf78a804")] +[NativeTypeName("struct IWICMetadataReaderInfo : IWICMetadataHandlerInfo")] +[NativeInheritance("IWICMetadataHandlerInfo")] +public unsafe partial struct IWICMetadataReaderInfo +{ + public static ref readonly Guid IID_IWICMetadataReaderInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5B, 0x1F, 0xBF, 0xEE, + 0xC1, 0x07, + 0x47, 0x44, + 0xA3, + 0xAB, + 0x22, + 0xAC, + 0xAF, + 0x78, + 0xA8, + 0x04 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataReaderInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetComponentType(WICComponentType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCLSID(Guid* pclsid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pclsid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetSigningStatus(uint* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetVendorGUID(Guid* pguidVendor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pguidVendor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetMetadataFormat(Guid* pguidMetadataFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pguidMetadataFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetContainerFormats(uint cContainerFormats, Guid* pguidContainerFormats, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cContainerFormats, pguidContainerFormats, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult DoesRequireFullStream(Bool32* pfRequiresFullStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pfRequiresFullStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult DoesSupportPadding(Bool32* pfSupportsPadding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pfSupportsPadding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult DoesRequireFixedSize(Bool32* pfFixedSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), pfFixedSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetPatterns(Guid* guidContainerFormat, uint cbSize, WICMetadataPattern* pPattern, uint* pcCount, uint* pcbActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), guidContainerFormat, cbSize, pPattern, pcCount, pcbActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult MatchesPattern(Guid* guidContainerFormat, Com.IStream* pIStream, Bool32* pfMatches) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), guidContainerFormat, pIStream, pfMatches); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateInstance(IWICMetadataReader** ppIReader) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[20]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), ppIReader); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataWriter.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataWriter.cs new file mode 100644 index 0000000..48c5bad --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataWriter.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICMetadataWriter +[Guid("f7836e16-3be0-470b-86bb-160d0aecd7de")] +[NativeTypeName("struct IWICMetadataWriter : IWICMetadataReader")] +[NativeInheritance("IWICMetadataReader")] +public unsafe partial struct IWICMetadataWriter +{ + public static ref readonly Guid IID_IWICMetadataWriter + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x16, 0x6E, 0x83, 0xF7, + 0xE0, 0x3B, + 0x0B, 0x47, + 0x86, + 0xBB, + 0x16, + 0x0D, + 0x0A, + 0xEC, + 0xD7, + 0xDE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataWriter)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetMetadataFormat(Guid* pguidMetadataFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), pguidMetadataFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetMetadataHandlerInfo(IWICMetadataHandlerInfo** ppIHandler) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), ppIHandler); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetCount(uint* pcCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), pcCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetValueByIndex(uint nIndex, Com.Variant** pvarSchema, Com.Variant** pvarId, Com.Variant** pvarValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), nIndex, pvarSchema, pvarId, pvarValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetValue(Com.Variant* pvarSchema, Com.Variant* pvarId, Com.Variant** pvarValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), pvarSchema, pvarId, pvarValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetEnumerator(IWICEnumMetadataItem** ppIEnumMetadata) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), ppIEnumMetadata); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult SetValue(Com.Variant* pvarSchema, Com.Variant* pvarId, Com.Variant* pvarValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), pvarSchema, pvarId, pvarValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult SetValueByIndex(uint nIndex, Com.Variant* pvarSchema, Com.Variant* pvarId, Com.Variant* pvarValue) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), nIndex, pvarSchema, pvarId, pvarValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult RemoveValue(Com.Variant* pvarSchema, Com.Variant* pvarId) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), pvarSchema, pvarId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult RemoveValueByIndex(uint nIndex) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICMetadataWriter*)Unsafe.AsPointer(ref this), nIndex); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataWriterInfo.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataWriterInfo.cs new file mode 100644 index 0000000..2228b74 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICMetadataWriterInfo.cs @@ -0,0 +1,219 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICMetadataWriterInfo +[Guid("b22e3fba-3925-4323-b5c1-9ebfc430f236")] +[NativeTypeName("struct IWICMetadataWriterInfo : IWICMetadataHandlerInfo")] +[NativeInheritance("IWICMetadataHandlerInfo")] +public unsafe partial struct IWICMetadataWriterInfo +{ + public static ref readonly Guid IID_IWICMetadataWriterInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBA, 0x3F, 0x2E, 0xB2, + 0x25, 0x39, + 0x23, 0x43, + 0xB5, + 0xC1, + 0x9E, + 0xBF, + 0xC4, + 0x30, + 0xF2, + 0x36 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICMetadataWriterInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetComponentType(WICComponentType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCLSID(Guid* pclsid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pclsid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetSigningStatus(uint* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetVendorGUID(Guid* pguidVendor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pguidVendor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetMetadataFormat(Guid* pguidMetadataFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pguidMetadataFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetContainerFormats(uint cContainerFormats, Guid* pguidContainerFormats, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cContainerFormats, pguidContainerFormats, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult DoesRequireFullStream(Bool32* pfRequiresFullStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pfRequiresFullStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult DoesSupportPadding(Bool32* pfSupportsPadding) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pfSupportsPadding); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult DoesRequireFixedSize(Bool32* pfFixedSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), pfFixedSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult GetHeader(Guid* guidContainerFormat, uint cbSize, WICMetadataHeader* pHeader, uint* pcbActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[18]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), guidContainerFormat, cbSize, pHeader, pcbActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateInstance(IWICMetadataWriter** ppIWriter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[19]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), ppIWriter); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPalette.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPalette.cs new file mode 100644 index 0000000..03a3030 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPalette.cs @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICPalette +[Guid("00000040-a8f2-4877-ba0a-fd2b6645fb94")] +[NativeTypeName("struct IWICPalette : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICPalette +{ + public static ref readonly Guid IID_IWICPalette + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x40, 0x00, 0x00, 0x00, + 0xF2, 0xA8, + 0x77, 0x48, + 0xBA, + 0x0A, + 0xFD, + 0x2B, + 0x66, + 0x45, + 0xFB, + 0x94 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPalette)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult InitializePredefined(WICBitmapPaletteType ePaletteType, Bool32 fAddTransparentColor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICPalette*)Unsafe.AsPointer(ref this), ePaletteType, fAddTransparentColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult InitializeCustom(uint* pColors, uint cCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICPalette*)Unsafe.AsPointer(ref this), pColors, cCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult InitializeFromBitmap(IWICBitmapSource* pISurface, uint cCount, Bool32 fAddTransparentColor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICPalette*)Unsafe.AsPointer(ref this), pISurface, cCount, fAddTransparentColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult InitializeFromPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICPalette*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetType(WICBitmapPaletteType* pePaletteType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICPalette*)Unsafe.AsPointer(ref this), pePaletteType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetColorCount(uint* pcCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICPalette*)Unsafe.AsPointer(ref this), pcCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetColors(uint cCount, uint* pColors, uint* pcActualColors) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICPalette*)Unsafe.AsPointer(ref this), cCount, pColors, pcActualColors); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult IsBlackWhite(Bool32* pfIsBlackWhite) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICPalette*)Unsafe.AsPointer(ref this), pfIsBlackWhite); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult IsGrayscale(Bool32* pfIsGrayscale) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICPalette*)Unsafe.AsPointer(ref this), pfIsGrayscale); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult HasAlpha(Bool32* pfHasAlpha) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICPalette*)Unsafe.AsPointer(ref this), pfHasAlpha); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPersistStream.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPersistStream.cs new file mode 100644 index 0000000..199ef03 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPersistStream.cs @@ -0,0 +1,73 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICPersistStream +[Guid("00675040-6908-45f8-86a3-49c7dfd6d9ad")] +[NativeTypeName("struct IWICPersistStream : IPersistStream")] +[NativeInheritance("IPersistStream")] +public unsafe partial struct IWICPersistStream +{ + public static ref readonly Guid IID_IWICPersistStream + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x40, 0x50, 0x67, 0x00, + 0x08, 0x69, + 0xF8, 0x45, + 0x86, + 0xA3, + 0x49, + 0xC7, + 0xDF, + 0xD6, + 0xD9, + 0xAD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPersistStream)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult LoadEx(Com.IStream* pIStream, Guid* pguidPreferredVendor, uint dwPersistOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IWICPersistStream*)Unsafe.AsPointer(ref this), pIStream, pguidPreferredVendor, dwPersistOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public HResult SaveEx(Com.IStream* pIStream, uint dwPersistOptions, Bool32 fClearDirty) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IWICPersistStream*)Unsafe.AsPointer(ref this), pIStream, dwPersistOptions, fClearDirty); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPixelFormatInfo.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPixelFormatInfo.cs new file mode 100644 index 0000000..887c91b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPixelFormatInfo.cs @@ -0,0 +1,187 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICPixelFormatInfo +[Guid("e8eda601-3d48-431a-ab44-69059be88bbe")] +[NativeTypeName("struct IWICPixelFormatInfo : IWICComponentInfo")] +[NativeInheritance("IWICComponentInfo")] +public unsafe partial struct IWICPixelFormatInfo +{ + public static ref readonly Guid IID_IWICPixelFormatInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x01, 0xA6, 0xED, 0xE8, + 0x48, 0x3D, + 0x1A, 0x43, + 0xAB, + 0x44, + 0x69, + 0x05, + 0x9B, + 0xE8, + 0x8B, + 0xBE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPixelFormatInfo)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetComponentType(WICComponentType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCLSID(Guid* pclsid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), pclsid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetSigningStatus(uint* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetVendorGUID(Guid* pguidVendor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), pguidVendor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetFormatGUID(Guid* pFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), pFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetColorContext(IWICColorContext** ppIColorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), ppIColorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetBitsPerPixel(uint* puiBitsPerPixel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), puiBitsPerPixel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetChannelCount(uint* puiChannelCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), puiChannelCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetChannelMask(uint uiChannelIndex, uint cbMaskBuffer, byte* pbMaskBuffer, uint* pcbActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), uiChannelIndex, cbMaskBuffer, pbMaskBuffer, pcbActual); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPixelFormatInfo2.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPixelFormatInfo2.cs new file mode 100644 index 0000000..1b83100 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPixelFormatInfo2.cs @@ -0,0 +1,203 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICPixelFormatInfo2 +[Guid("a9db33a2-af5f-43c7-b679-74f5984b5aa4")] +[NativeTypeName("struct IWICPixelFormatInfo2 : IWICPixelFormatInfo")] +[NativeInheritance("IWICPixelFormatInfo")] +public unsafe partial struct IWICPixelFormatInfo2 +{ + public static ref readonly Guid IID_IWICPixelFormatInfo2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA2, 0x33, 0xDB, 0xA9, + 0x5F, 0xAF, + 0xC7, 0x43, + 0xB6, + 0x79, + 0x74, + 0xF5, + 0x98, + 0x4B, + 0x5A, + 0xA4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPixelFormatInfo2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetComponentType(WICComponentType* pType) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pType); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCLSID(Guid* pclsid) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pclsid); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetSigningStatus(uint* pStatus) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pStatus); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetVendorGUID(Guid* pguidVendor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pguidVendor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetFormatGUID(Guid* pFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult GetColorContext(IWICColorContext** ppIColorContext) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), ppIColorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetBitsPerPixel(uint* puiBitsPerPixel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[13]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), puiBitsPerPixel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult GetChannelCount(uint* puiChannelCount) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[14]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), puiChannelCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult GetChannelMask(uint uiChannelIndex, uint cbMaskBuffer, byte* pbMaskBuffer, uint* pcbActual) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[15]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), uiChannelIndex, cbMaskBuffer, pbMaskBuffer, pcbActual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult SupportsTransparency(Bool32* pfSupportsTransparency) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[16]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pfSupportsTransparency); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetNumericRepresentation(WICPixelFormatNumericRepresentation* pNumericRepresentation) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[17]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), pNumericRepresentation); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPlanarBitmapFrameEncode.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPlanarBitmapFrameEncode.cs new file mode 100644 index 0000000..b37e18a --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPlanarBitmapFrameEncode.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICPlanarBitmapFrameEncode +[Guid("f928b7b8-2221-40c1-b72e-7e82f1974d1a")] +[NativeTypeName("struct IWICPlanarBitmapFrameEncode : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICPlanarBitmapFrameEncode +{ + public static ref readonly Guid IID_IWICPlanarBitmapFrameEncode + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB8, 0xB7, 0x28, 0xF9, + 0x21, 0x22, + 0xC1, 0x40, + 0xB7, + 0x2E, + 0x7E, + 0x82, + 0xF1, + 0x97, + 0x4D, + 0x1A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPlanarBitmapFrameEncode)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult WritePixels(uint lineCount, WICBitmapPlane* pPlanes, uint cPlanes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICPlanarBitmapFrameEncode*)Unsafe.AsPointer(ref this), lineCount, pPlanes, cPlanes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult WriteSource(IWICBitmapSource** ppPlanes, uint cPlanes, System.Drawing.Rectangle* prcSource) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICPlanarBitmapFrameEncode*)Unsafe.AsPointer(ref this), ppPlanes, cPlanes, prcSource); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPlanarBitmapSourceTransform.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPlanarBitmapSourceTransform.cs new file mode 100644 index 0000000..61881dd --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPlanarBitmapSourceTransform.cs @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICPlanarBitmapSourceTransform +[Guid("3aff9cce-be95-4303-b927-e7d16ff4a613")] +[NativeTypeName("struct IWICPlanarBitmapSourceTransform : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICPlanarBitmapSourceTransform +{ + public static ref readonly Guid IID_IWICPlanarBitmapSourceTransform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCE, 0x9C, 0xFF, 0x3A, + 0x95, 0xBE, + 0x03, 0x43, + 0xB9, + 0x27, + 0xE7, + 0xD1, + 0x6F, + 0xF4, + 0xA6, + 0x13 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPlanarBitmapSourceTransform)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult DoesSupportTransform(uint* puiWidth, uint* puiHeight, WICBitmapTransformOptions dstTransform, WICPlanarOptions dstPlanarOptions, Guid* pguidDstFormats, WICBitmapPlaneDescription* pPlaneDescriptions, uint cPlanes, Bool32* pfIsSupported) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICPlanarBitmapSourceTransform*)Unsafe.AsPointer(ref this), puiWidth, puiHeight, dstTransform, dstPlanarOptions, pguidDstFormats, pPlaneDescriptions, cPlanes, pfIsSupported); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CopyPixels(System.Drawing.Rectangle* prcSource, uint uiWidth, uint uiHeight, WICBitmapTransformOptions dstTransform, WICPlanarOptions dstPlanarOptions, WICBitmapPlane* pDstPlanes, uint cPlanes) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICPlanarBitmapSourceTransform*)Unsafe.AsPointer(ref this), prcSource, uiWidth, uiHeight, dstTransform, dstPlanarOptions, pDstPlanes, cPlanes); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPlanarFormatConverter.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPlanarFormatConverter.cs new file mode 100644 index 0000000..57bc851 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICPlanarFormatConverter.cs @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICPlanarFormatConverter +[Guid("bebee9cb-83b0-4dcc-8132-b0aaa55eac96")] +[NativeTypeName("struct IWICPlanarFormatConverter : IWICBitmapSource")] +[NativeInheritance("IWICBitmapSource")] +public unsafe partial struct IWICPlanarFormatConverter +{ + public static ref readonly Guid IID_IWICPlanarFormatConverter + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCB, 0xE9, 0xBE, 0xBE, + 0xB0, 0x83, + 0xCC, 0x4D, + 0x81, + 0x32, + 0xB0, + 0xAA, + 0xA5, + 0x5E, + 0xAC, + 0x96 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICPlanarFormatConverter)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSize(uint* puiWidth, uint* puiHeight) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), puiWidth, puiHeight); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPixelFormat(Guid* pPixelFormat) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), pPixelFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetResolution(double* pDpiX, double* pDpiY) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), pDpiX, pDpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CopyPalette(IWICPalette* pIPalette) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), pIPalette); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CopyPixels(System.Drawing.Rectangle* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult Initialize(IWICBitmapSource** ppPlanes, uint cPlanes, Guid* dstFormat, WICBitmapDitherType dither, IWICPalette* pIPalette, double alphaThresholdPercent, WICBitmapPaletteType paletteTranslate) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), ppPlanes, cPlanes, dstFormat, dither, pIPalette, alphaThresholdPercent, paletteTranslate); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CanConvert(Guid* pSrcPixelFormats, uint cSrcPlanes, Guid* dstPixelFormat, Bool32* pfCanConvert) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IWICPlanarFormatConverter*)Unsafe.AsPointer(ref this), pSrcPixelFormats, cSrcPlanes, dstPixelFormat, pfCanConvert); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICProgressCallback.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICProgressCallback.cs new file mode 100644 index 0000000..416d935 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICProgressCallback.cs @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICProgressCallback +[Guid("4776f9cd-9517-45fa-bf24-e89c5ec5c60c")] +[NativeTypeName("struct IWICProgressCallback : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICProgressCallback +{ + public static ref readonly Guid IID_IWICProgressCallback + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCD, 0xF9, 0x76, 0x47, + 0x17, 0x95, + 0xFA, 0x45, + 0xBF, + 0x24, + 0xE8, + 0x9C, + 0x5E, + 0xC5, + 0xC6, + 0x0C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICProgressCallback)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Notify(uint uFrameNum, WICProgressOperation operation, double dblProgress) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICProgressCallback*)Unsafe.AsPointer(ref this), uFrameNum, operation, dblProgress); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICProgressiveLevelControl.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICProgressiveLevelControl.cs new file mode 100644 index 0000000..0ad3fcd --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICProgressiveLevelControl.cs @@ -0,0 +1,107 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICProgressiveLevelControl +[Guid("daac296f-7aa5-4dbf-8d15-225c5976f891")] +[NativeTypeName("struct IWICProgressiveLevelControl : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICProgressiveLevelControl +{ + public static ref readonly Guid IID_IWICProgressiveLevelControl + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6F, 0x29, 0xAC, 0xDA, + 0xA5, 0x7A, + 0xBF, 0x4D, + 0x8D, + 0x15, + 0x22, + 0x5C, + 0x59, + 0x76, + 0xF8, + 0x91 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICProgressiveLevelControl)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetLevelCount(uint* pcLevels) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICProgressiveLevelControl*)Unsafe.AsPointer(ref this), pcLevels); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetCurrentLevel(uint* pnLevel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICProgressiveLevelControl*)Unsafe.AsPointer(ref this), pnLevel); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetCurrentLevel(uint nLevel) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICProgressiveLevelControl*)Unsafe.AsPointer(ref this), nLevel); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICStream.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICStream.cs new file mode 100644 index 0000000..f06033b --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICStream.cs @@ -0,0 +1,89 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICStream +[Guid("135ff860-22b7-4ddf-b0f6-218f4f299a43")] +[NativeTypeName("struct IWICStream : IStream")] +[NativeInheritance("IStream")] +public unsafe partial struct IWICStream +{ + public static ref readonly Guid IID_IWICStream + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x60, 0xF8, 0x5F, 0x13, + 0xB7, 0x22, + 0xDF, 0x4D, + 0xB0, + 0xF6, + 0x21, + 0x8F, + 0x4F, + 0x29, + 0x9A, + 0x43 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICStream)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult InitializeFromIStream(Com.IStream* pIStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IWICStream*)Unsafe.AsPointer(ref this), pIStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public HResult InitializeFromFilename(ushort* wzFileName, uint dwDesiredAccess) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IWICStream*)Unsafe.AsPointer(ref this), wzFileName, dwDesiredAccess); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public HResult InitializeFromMemory(byte* pbBuffer, uint cbBufferSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IWICStream*)Unsafe.AsPointer(ref this), pbBuffer, cbBufferSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult InitializeFromIStreamRegion(Com.IStream* pIStream, ULargeInteger ulOffset, ULargeInteger ulMaxSize) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICStream*)Unsafe.AsPointer(ref this), pIStream, ulOffset, ulMaxSize); + } +} + diff --git a/src/Vortice.Win32/Generated/Graphics/Imaging/IWICStreamProvider.cs b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICStreamProvider.cs new file mode 100644 index 0000000..d5a1a43 --- /dev/null +++ b/src/Vortice.Win32/Generated/Graphics/Imaging/IWICStreamProvider.cs @@ -0,0 +1,115 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Numerics; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; + +#if !NET6_0_OR_GREATER +using MemoryMarshal = Win32.MemoryMarshal; +#endif + +namespace Win32.Graphics.Imaging; + +/// +/// IWICStreamProvider +[Guid("449494bc-b468-4927-96d7-ba90d31ab505")] +[NativeTypeName("struct IWICStreamProvider : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IWICStreamProvider +{ + public static ref readonly Guid IID_IWICStreamProvider + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBC, 0x94, 0x94, 0x44, + 0x68, 0xB4, + 0x27, 0x49, + 0x96, + 0xD7, + 0xBA, + 0x90, + 0xD3, + 0x1A, + 0xB5, + 0x05 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IWICStreamProvider)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetStream(Com.IStream** ppIStream) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IWICStreamProvider*)Unsafe.AsPointer(ref this), ppIStream); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetPersistOptions(uint* pdwPersistOptions) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IWICStreamProvider*)Unsafe.AsPointer(ref this), pdwPersistOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetPreferredVendorGUID(Guid* pguidPreferredVendor) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IWICStreamProvider*)Unsafe.AsPointer(ref this), pguidPreferredVendor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult RefreshStream() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IWICStreamProvider*)Unsafe.AsPointer(ref this)); + } +} +