diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30e6c43..b33c35d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,14 +14,14 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup .NET 8 SDK - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: ./global.json diff --git a/Directory.Build.props b/Directory.Build.props index 69623e9..32d8f3e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -3,6 +3,12 @@ https://github.com/amerkoleci/Vortice.Win32 git + + + + 2.2.0 + + true @@ -16,8 +22,6 @@ $(MSBuildThisFileDirectory)NuGet.config true - 2.1.0 - true $(NoWarn);AD0001;CS1591;CS1701;CA2252; diff --git a/Directory.Packages.props b/Directory.Packages.props index c39e29f..5db0057 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -3,20 +3,16 @@ true - true - - - - - + + - + diff --git a/README.md b/README.md index e3920a2..c0efc26 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,7 @@ [![Build status](https://github.com/amerkoleci/Vortice.Win32/workflows/Build/badge.svg)](https://github.com/amerkoleci/Vortice.Win32/actions) [![NuGet](https://img.shields.io/nuget/v/Vortice.Win32.svg)](https://www.nuget.org/packages/Vortice.Win32) -**Vortice.Win32** is a **.NET 7.0** and **.NET 8.0** low-level bindings for Win32, generation is based on json files from [win32json](https://github.com/marlersoft/win32json), follows naming conventions of Vortice.Windows but small GC allocation and using unsafe struct for COM objects. - -**NOTE** Starting from 15/11/2023 this project is archived, I suggest to use [Silk.NET](https://github.com/dotnet/Silk.NET) +**Vortice.Win32** is **.net8.0** low-level bindings for Win32, generation is based on json files from [win32json](https://github.com/marlersoft/win32json), follows naming conventions of Vortice.Windows but small GC allocation and using unsafe struct for COM objects. ## Sponsors To further help development of these bindings library or other projects, please consider [SPONSOR](https://github.com/sponsors/amerkoleci) my profile in order to allow faster issue triaging and new features to be implemented. diff --git a/global.json b/global.json index 21cd67a..fee645a 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "8.0.100-rc.2", - "allowPrerelease": true, - "rollForward": "latestFeature" + "version": "8.0.100", + "rollForward": "latestFeature", + "allowPrerelease": false } - } +} diff --git a/samples/01-ClearScreen/01-ClearScreen.csproj b/samples/01-ClearScreen/01-ClearScreen.csproj index 78b37d0..e076672 100644 --- a/samples/01-ClearScreen/01-ClearScreen.csproj +++ b/samples/01-ClearScreen/01-ClearScreen.csproj @@ -1,7 +1,7 @@ Exe - net7.0;net8.0 + net8.0 true false ClearScreen diff --git a/samples/01-ClearScreen/Program.cs b/samples/01-ClearScreen/Program.cs index 687f769..3efcdec 100644 --- a/samples/01-ClearScreen/Program.cs +++ b/samples/01-ClearScreen/Program.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Numerics; @@ -120,14 +120,14 @@ public static unsafe class Program TestD2D1AndDWrite(); using ComPtr factory = default; - uint factoryFlags = 0; + CreateFactoryFlags factoryFlags = CreateFactoryFlags.None; #if DEBUG { using ComPtr dxgiInfoQueue = default; if (DXGIGetDebugInterface1(0, __uuidof(), (void**)dxgiInfoQueue.GetAddressOf()).Success) { - factoryFlags = DXGI_CREATE_FACTORY_DEBUG; + factoryFlags = CreateFactoryFlags.Debug; dxgiInfoQueue.Get()->SetBreakOnSeverity(DXGI_DEBUG_ALL, InfoQueueMessageSeverity.Error, true); dxgiInfoQueue.Get()->SetBreakOnSeverity(DXGI_DEBUG_ALL, InfoQueueMessageSeverity.Corruption, true); diff --git a/samples/01-ClearScreen/VertexPositionColor.cs b/samples/01-ClearScreen/VertexPositionColor.cs index adaca62..1cc1b19 100644 --- a/samples/01-ClearScreen/VertexPositionColor.cs +++ b/samples/01-ClearScreen/VertexPositionColor.cs @@ -1,21 +1,12 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. -using Win32; -using Win32.Graphics.Direct3D; -using Win32.Graphics.Direct3D11; -using Win32.Graphics.Dxgi; -using static Win32.Apis; -using static Win32.Graphics.Direct3D11.Apis; -using static Win32.Graphics.Dxgi.Apis; -using MessageId = Win32.Graphics.Direct3D11.MessageId; -using InfoQueueFilter = Win32.Graphics.Direct3D11.InfoQueueFilter; -using Win32.Graphics.Dxgi.Common; -using System.Drawing; using System.Numerics; +using System.Runtime.InteropServices; namespace ClearScreen; +[StructLayout(LayoutKind.Sequential, Pack = 1)] public readonly struct VertexPositionColor { public static readonly unsafe int SizeInBytes = sizeof(VertexPositionColor); diff --git a/src/Generator/ApiData.cs b/src/Generator/ApiData.cs index bc5050d..e8ff9d4 100644 --- a/src/Generator/ApiData.cs +++ b/src/Generator/ApiData.cs @@ -1,10 +1,8 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. #nullable disable -using System.Text; - namespace Generator; public class ApiDataArrayShape diff --git a/src/Generator/CodeWriter.cs b/src/Generator/CodeWriter.cs index cc6ba12..3adc52e 100644 --- a/src/Generator/CodeWriter.cs +++ b/src/Generator/CodeWriter.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Text; diff --git a/src/Generator/DocGenerator.cs b/src/Generator/DocGenerator.cs index daba49e..9738291 100644 --- a/src/Generator/DocGenerator.cs +++ b/src/Generator/DocGenerator.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Text.RegularExpressions; diff --git a/src/Generator/Program.cs b/src/Generator/Program.cs index 31dc2e0..a4aeefb 100644 --- a/src/Generator/Program.cs +++ b/src/Generator/Program.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Globalization; @@ -10,8 +10,8 @@ namespace Generator; public static class Program { - private static readonly string[] jsons = new[] - { + private static readonly string[] s_jsons = + [ "Graphics.Dxgi.Common.json", "Graphics.Dxgi.json", "Graphics.Direct3D.json", @@ -31,7 +31,7 @@ public static class Program // Media //"Media.Audio.json", "Media.Audio.XAudio2.json", - }; + ]; private static readonly Dictionary s_csNameMappings = new() { @@ -52,7 +52,7 @@ public static class Program {"IntPtr", "nint" }, {"UIntPtr", "nuint" }, - {"Char", "ushort" }, + {"Char", "char" }, { "Foundation.BOOL", "Bool32" }, { "Foundation.BOOLEAN", "byte" }, @@ -879,6 +879,8 @@ public static class Program { "DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS", "DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG" }, { "DXGI_DEBUG_RLO_FLAGS", "DXGI_DEBUG_RLO" }, { "DXGI_OFFER_RESOURCE_FLAGS", "DXGI_OFFER_RESOURCE_FLAG" }, + { "DXGI_SHARED_RESOURCE_RW", "DXGI_SHARED_RESOURCE" }, + { "DXGI_CREATE_FACTORY_FLAGS", "DXGI_CREATE_FACTORY" }, // D3D { "D3D_INTERPOLATION_MODE", "D3D_INTERPOLATION" }, @@ -988,7 +990,7 @@ public static class Program {"DXGI_USAGE", true }, {"DXGI_MAP", true }, {"DXGI_PRESENT", true }, - {"DXGI_MWA", true }, + {"DXGI_MWA_FLAGS", true }, {"DXGI_ENUM_MODES", true }, {"DXC_HASHFLAG", true }, {"DxcValidatorFlags", true }, @@ -1029,7 +1031,7 @@ public static class Program // Generated { "DXGI_MAP", "MapFlags" }, { "DXGI_ENUM_MODES", "EnumModesFlags" }, - { "DXGI_MWA", "WindowAssociationFlags" }, + { "DXGI_MWA_FLAGS", "WindowAssociationFlags" }, { "DXGI_PRESENT", "PresentFlags" }, { "DXGI_DEBUG_RLO_FLAGS", "ReportLiveObjectFlags" }, @@ -1137,6 +1139,12 @@ public static class Program { "XAUDIO2_DEBUG_CONFIGURATION::BreakMask", "LogType" }, }; + private static readonly Dictionary s_structFieldNameRemap = new() + { + { "D3D12_SAMPLE_MASK::SampleMask", "Mask" }, + { "D3D12_DEPTH_STENCIL_FORMAT::DepthStencilFormat", "Format" }, + }; + private static readonly Dictionary s_mapFunctionParameters = new() { // DXGI @@ -1144,7 +1152,7 @@ public static class Program { "IDXGIOutput::GetDisplayModeList::Flags", "DXGI_ENUM_MODES" }, { "IDXGISwapChain::Present::Flags", "DXGI_PRESENT" }, { "IDXGISwapChain::ResizeBuffers::SwapChainFlags", "DXGI_SWAP_CHAIN_FLAG" }, - { "IDXGIFactory::MakeWindowAssociation::Flags", "DXGI_MWA" }, + { "IDXGIFactory::MakeWindowAssociation::Flags", "DXGI_MWA_FLAGS" }, // D3D11 { "ID3D11DeviceContext::Map::MapFlags", "D3D11_MAP_FLAG" }, @@ -1243,7 +1251,7 @@ public static class Program //DocGenerator.Generate(new[] { "DComposition" }, Path.Combine(directCompositionPath, "DirectComposition.xml")); //DocGenerator.Generate(rootPath, new[] { "XAudio2", "XAUDIO2", "Hrtf", "XAPO", "X3DAUDIO" }, Path.Combine(XAudio2Path, "XAudio2.xml")); - foreach (string jsonFile in jsons) + foreach (string jsonFile in s_jsons) { string finalPath = Path.Combine(AppContext.BaseDirectory, "win32json", "api", jsonFile); string jsonData = File.ReadAllText(finalPath); @@ -2207,6 +2215,10 @@ public static class Program { fieldValueName = "Mask"; } + else if (s_structFieldNameRemap.TryGetValue($"{structType.Name}::{field.Name}", out string? remapFieldName)) + { + fieldValueName = remapFieldName; + } string fieldTypeName = GetTypeNameWithPointerCheck(api, field.Type); if (string.IsNullOrEmpty(writer.DocFileName) == false) diff --git a/src/Generator/win32json/api/Graphics.Direct2D.Common.json b/src/Generator/win32json/api/Graphics.Direct2D.Common.json index fe7aa6f..811f2de 100644 --- a/src/Generator/win32json/api/Graphics.Direct2D.Common.json +++ b/src/Generator/win32json/api/Graphics.Direct2D.Common.json @@ -237,25 +237,6 @@ ] ,"NestedTypes":[ { - "Name":"_Anonymous1_e__Struct" - ,"Architectures":[] - ,"Platform":null - ,"Kind":"Struct" - ,"Size":0 - ,"PackingSize":0 - ,"SizeField":"" - ,"Fields":[ - {"Name":"m11","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ,{"Name":"m12","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ,{"Name":"m21","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ,{"Name":"m22","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ,{"Name":"dx","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ,{"Name":"dy","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ] - ,"NestedTypes":[ - ] - } - ,{ "Name":"_Anonymous2_e__Struct" ,"Architectures":[] ,"Platform":null @@ -274,6 +255,25 @@ ,"NestedTypes":[ ] } + ,{ + "Name":"_Anonymous1_e__Struct" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"m11","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"m12","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"m21","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"m22","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"dx","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"dy","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } ] } ] @@ -452,6 +452,21 @@ } ] } + ,{ + "Name":"D2D1_GRADIENT_STOP" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"position","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"color","Type":{"Kind":"ApiRef","Name":"D2D1_COLOR_F","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } ,{ "Name":"D2D1_FIGURE_BEGIN" ,"Architectures":[] diff --git a/src/Generator/win32json/api/Graphics.Direct2D.json b/src/Generator/win32json/api/Graphics.Direct2D.json index 58d6b5a..5bbe92d 100644 --- a/src/Generator/win32json/api/Graphics.Direct2D.json +++ b/src/Generator/win32json/api/Graphics.Direct2D.json @@ -620,21 +620,6 @@ ,"NestedTypes":[ ] } - ,{ - "Name":"D2D1_GRADIENT_STOP" - ,"Architectures":[] - ,"Platform":null - ,"Kind":"Struct" - ,"Size":0 - ,"PackingSize":0 - ,"SizeField":"" - ,"Fields":[ - {"Name":"position","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ,{"Name":"color","Type":{"Kind":"ApiRef","Name":"D2D1_COLOR_F","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]},"Attrs":[]} - ] - ,"NestedTypes":[ - ] - } ,{ "Name":"D2D1_BRUSH_PROPERTIES" ,"Architectures":[] @@ -1297,7 +1282,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"gradientStops","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":1,"Child":{"Kind":"ApiRef","Name":"D2D1_GRADIENT_STOP","TargetKind":"Default","Api":"Graphics.Direct2D","Parents":[]}},"Attrs":["Out"]} + {"Name":"gradientStops","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":1,"Child":{"Kind":"ApiRef","Name":"D2D1_GRADIENT_STOP","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]}},"Attrs":["Out"]} ,{"Name":"gradientStopsCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ] } @@ -2516,7 +2501,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"gradientStops","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":1,"Child":{"Kind":"ApiRef","Name":"D2D1_GRADIENT_STOP","TargetKind":"Default","Api":"Graphics.Direct2D","Parents":[]}},"Attrs":["In","Const"]} + {"Name":"gradientStops","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":1,"Child":{"Kind":"ApiRef","Name":"D2D1_GRADIENT_STOP","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]}},"Attrs":["In","Const"]} ,{"Name":"gradientStopsCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ,{"Name":"colorInterpolationGamma","Type":{"Kind":"ApiRef","Name":"D2D1_GAMMA","TargetKind":"Default","Api":"Graphics.Direct2D","Parents":[]},"Attrs":["In"]} ,{"Name":"extendMode","Type":{"Kind":"ApiRef","Name":"D2D1_EXTEND_MODE","TargetKind":"Default","Api":"Graphics.Direct2D","Parents":[]},"Attrs":["In"]} @@ -5941,7 +5926,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"gradientStops","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":1,"Child":{"Kind":"ApiRef","Name":"D2D1_GRADIENT_STOP","TargetKind":"Default","Api":"Graphics.Direct2D","Parents":[]}},"Attrs":["Out"]} + {"Name":"gradientStops","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":1,"Child":{"Kind":"ApiRef","Name":"D2D1_GRADIENT_STOP","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]}},"Attrs":["Out"]} ,{"Name":"gradientStopsCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ] } @@ -6140,7 +6125,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"straightAlphaGradientStops","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":1,"Child":{"Kind":"ApiRef","Name":"D2D1_GRADIENT_STOP","TargetKind":"Default","Api":"Graphics.Direct2D","Parents":[]}},"Attrs":["In","Const"]} + {"Name":"straightAlphaGradientStops","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":1,"Child":{"Kind":"ApiRef","Name":"D2D1_GRADIENT_STOP","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]}},"Attrs":["In","Const"]} ,{"Name":"straightAlphaGradientStopsCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ,{"Name":"preInterpolationSpace","Type":{"Kind":"ApiRef","Name":"D2D1_COLOR_SPACE","TargetKind":"Default","Api":"Graphics.Direct2D","Parents":[]},"Attrs":["In"]} ,{"Name":"postInterpolationSpace","Type":{"Kind":"ApiRef","Name":"D2D1_COLOR_SPACE","TargetKind":"Default","Api":"Graphics.Direct2D","Parents":[]},"Attrs":["In"]} @@ -11701,6 +11686,108 @@ } ] } + ,{ + "Name":"ID2D1DeviceContext7" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"ec891cf7-9b69-4851-9def-4e0915771e62" + ,"Interface":{"Kind":"ApiRef","Name":"ID2D1DeviceContext6","TargetKind":"Com","Api":"Graphics.Direct2D","Parents":[]} + ,"Methods":[ + { + "Name":"GetPaintFeatureLevel" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"DWRITE_PAINT_FEATURE_LEVEL","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + ] + } + ,{ + "Name":"DrawPaintGlyphRun" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"Void"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"baselineOrigin","Type":{"Kind":"ApiRef","Name":"D2D_POINT_2F","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]},"Attrs":["In"]} + ,{"Name":"glyphRun","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_GLYPH_RUN","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["In","Const"]} + ,{"Name":"defaultFillBrush","Type":{"Kind":"ApiRef","Name":"ID2D1Brush","TargetKind":"Com","Api":"Graphics.Direct2D","Parents":[]},"Attrs":["In","Optional"]} + ,{"Name":"colorPaletteIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"measuringMode","Type":{"Kind":"ApiRef","Name":"DWRITE_MEASURING_MODE","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":["In"]} + ] + } + ,{ + "Name":"DrawGlyphRunWithColorSupport" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"Void"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"baselineOrigin","Type":{"Kind":"ApiRef","Name":"D2D_POINT_2F","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]},"Attrs":["In"]} + ,{"Name":"glyphRun","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_GLYPH_RUN","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["In","Const"]} + ,{"Name":"glyphRunDescription","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_GLYPH_RUN_DESCRIPTION","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["In","Optional","Const"]} + ,{"Name":"foregroundBrush","Type":{"Kind":"ApiRef","Name":"ID2D1Brush","TargetKind":"Com","Api":"Graphics.Direct2D","Parents":[]},"Attrs":["In","Optional"]} + ,{"Name":"svgGlyphStyle","Type":{"Kind":"ApiRef","Name":"ID2D1SvgGlyphStyle","TargetKind":"Com","Api":"Graphics.Direct2D","Parents":[]},"Attrs":["In","Optional"]} + ,{"Name":"colorPaletteIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"measuringMode","Type":{"Kind":"ApiRef","Name":"DWRITE_MEASURING_MODE","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":["In"]} + ,{"Name":"bitmapSnapOption","Type":{"Kind":"ApiRef","Name":"D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION","TargetKind":"Default","Api":"Graphics.Direct2D","Parents":[]},"Attrs":["In"]} + ] + } + ] + } + ,{ + "Name":"ID2D1Device7" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"f07c8968-dd4e-4ba6-9cbd-eb6d3752dcbb" + ,"Interface":{"Kind":"ApiRef","Name":"ID2D1Device6","TargetKind":"Com","Api":"Graphics.Direct2D","Parents":[]} + ,"Methods":[ + { + "Name":"CreateDeviceContext" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"options","Type":{"Kind":"ApiRef","Name":"D2D1_DEVICE_CONTEXT_OPTIONS","TargetKind":"Default","Api":"Graphics.Direct2D","Parents":[]},"Attrs":["In"]} + ,{"Name":"deviceContext","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"ID2D1DeviceContext7","TargetKind":"Com","Api":"Graphics.Direct2D","Parents":[]}},"Attrs":["Out","ComOutPtr"]} + ] + } + ] + } + ,{ + "Name":"ID2D1Factory8" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"677c9311-f36d-4b1f-ae86-86d1223ffd3a" + ,"Interface":{"Kind":"ApiRef","Name":"ID2D1Factory7","TargetKind":"Com","Api":"Graphics.Direct2D","Parents":[]} + ,"Methods":[ + { + "Name":"CreateDevice" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"dxgiDevice","Type":{"Kind":"ApiRef","Name":"IDXGIDevice","TargetKind":"Com","Api":"Graphics.Dxgi","Parents":[]},"Attrs":["In"]} + ,{"Name":"d2dDevice6","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"ID2D1Device7","TargetKind":"Com","Api":"Graphics.Direct2D","Parents":[]}},"Attrs":["Out","ComOutPtr"]} + ] + } + ] + } ,{ "Name":"ID2D1EffectContext1" ,"Architectures":[] diff --git a/src/Generator/win32json/api/Graphics.Direct3D.Dxc.json b/src/Generator/win32json/api/Graphics.Direct3D.Dxc.json index dcdcc79..71abb52 100644 --- a/src/Generator/win32json/api/Graphics.Direct3D.Dxc.json +++ b/src/Generator/win32json/api/Graphics.Direct3D.Dxc.json @@ -2,6 +2,13 @@ "Constants":[ { + "Name":"CLSID_DxcUtils" + ,"Type":{"Kind":"Native","Name":"Guid"} + ,"ValueType":"String" + ,"Value":"6245d6af-66e0-48fd-80b4-4d271796748c" + ,"Attrs":[] + } + ,{ "Name":"DXC_HASHFLAG_INCLUDES_SOURCE" ,"Type":{"Kind":"Native","Name":"UInt32"} ,"ValueType":"UInt32" diff --git a/src/Generator/win32json/api/Graphics.Direct3D.json b/src/Generator/win32json/api/Graphics.Direct3D.json index 8866fa4..39bdc1c 100644 --- a/src/Generator/win32json/api/Graphics.Direct3D.json +++ b/src/Generator/win32json/api/Graphics.Direct3D.json @@ -309,6 +309,27 @@ ,"Value":268435456 ,"Attrs":[] } + ,{ + "Name":"D3D_SHADER_FEATURE_ADVANCED_TEXTURE_OPS" + ,"Type":{"Kind":"Native","Name":"UInt32"} + ,"ValueType":"UInt32" + ,"Value":536870912 + ,"Attrs":[] + } + ,{ + "Name":"D3D_SHADER_FEATURE_WRITEABLE_MSAA_TEXTURES" + ,"Type":{"Kind":"Native","Name":"UInt32"} + ,"ValueType":"UInt32" + ,"Value":1073741824 + ,"Attrs":[] + } + ,{ + "Name":"D3D_SHADER_FEATURE_SAMPLE_CMP_GRADIENT_OR_BIAS" + ,"Type":{"Kind":"Native","Name":"UInt32"} + ,"ValueType":"UInt32" + ,"Value":2147483648 + ,"Attrs":[] + } ,{ "Name":"WKPDID_D3DDebugObjectName" ,"Type":{"Kind":"Native","Name":"Guid"} @@ -407,7 +428,8 @@ ,"Flags":false ,"Scoped":false ,"Values":[ - {"Name":"D3D_FEATURE_LEVEL_1_0_CORE","Value":4096} + {"Name":"D3D_FEATURE_LEVEL_1_0_GENERIC","Value":256} + ,{"Name":"D3D_FEATURE_LEVEL_1_0_CORE","Value":4096} ,{"Name":"D3D_FEATURE_LEVEL_9_1","Value":37120} ,{"Name":"D3D_FEATURE_LEVEL_9_2","Value":37376} ,{"Name":"D3D_FEATURE_LEVEL_9_3","Value":37632} @@ -1200,10 +1222,22 @@ ,{"Name":"D3D_REGISTER_COMPONENT_UINT32","Value":1} ,{"Name":"D3D_REGISTER_COMPONENT_SINT32","Value":2} ,{"Name":"D3D_REGISTER_COMPONENT_FLOAT32","Value":3} + ,{"Name":"D3D_REGISTER_COMPONENT_UINT16","Value":4} + ,{"Name":"D3D_REGISTER_COMPONENT_SINT16","Value":5} + ,{"Name":"D3D_REGISTER_COMPONENT_FLOAT16","Value":6} + ,{"Name":"D3D_REGISTER_COMPONENT_UINT64","Value":7} + ,{"Name":"D3D_REGISTER_COMPONENT_SINT64","Value":8} + ,{"Name":"D3D_REGISTER_COMPONENT_FLOAT64","Value":9} ,{"Name":"D3D10_REGISTER_COMPONENT_UNKNOWN","Value":0} ,{"Name":"D3D10_REGISTER_COMPONENT_UINT32","Value":1} ,{"Name":"D3D10_REGISTER_COMPONENT_SINT32","Value":2} ,{"Name":"D3D10_REGISTER_COMPONENT_FLOAT32","Value":3} + ,{"Name":"D3D10_REGISTER_COMPONENT_UINT16","Value":4} + ,{"Name":"D3D10_REGISTER_COMPONENT_SINT16","Value":5} + ,{"Name":"D3D10_REGISTER_COMPONENT_FLOAT16","Value":6} + ,{"Name":"D3D10_REGISTER_COMPONENT_UINT64","Value":7} + ,{"Name":"D3D10_REGISTER_COMPONENT_SINT64","Value":8} + ,{"Name":"D3D10_REGISTER_COMPONENT_FLOAT64","Value":9} ] ,"IntegerBase":"Int32" } diff --git a/src/Generator/win32json/api/Graphics.Direct3D11.json b/src/Generator/win32json/api/Graphics.Direct3D11.json index 8715eb6..79c2c69 100644 --- a/src/Generator/win32json/api/Graphics.Direct3D11.json +++ b/src/Generator/win32json/api/Graphics.Direct3D11.json @@ -5590,6 +5590,7 @@ ,{"Name":"D3D11_FORMAT_SUPPORT2_TILED","Value":512} ,{"Name":"D3D11_FORMAT_SUPPORT2_SHAREABLE","Value":1024} ,{"Name":"D3D11_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY","Value":16384} + ,{"Name":"D3D11_FORMAT_SUPPORT2_DISPLAYABLE","Value":65536} ] ,"IntegerBase":"Int32" } diff --git a/src/Generator/win32json/api/Graphics.Direct3D12.json b/src/Generator/win32json/api/Graphics.Direct3D12.json index c05f6b8..2d16d64 100644 --- a/src/Generator/win32json/api/Graphics.Direct3D12.json +++ b/src/Generator/win32json/api/Graphics.Direct3D12.json @@ -1930,7 +1930,7 @@ "Name":"D3D12_PREVIEW_SDK_VERSION" ,"Type":{"Kind":"Native","Name":"UInt32"} ,"ValueType":"UInt32" - ,"Value":710 + ,"Value":714 ,"Attrs":[] } ,{ @@ -2406,7 +2406,7 @@ "Name":"D3D12_SDK_VERSION" ,"Type":{"Kind":"Native","Name":"UInt32"} ,"ValueType":"UInt32" - ,"Value":610 + ,"Value":614 ,"Attrs":[] } ,{ @@ -2843,6 +2843,41 @@ ,"Value":4294967295 ,"Attrs":[] } + ,{ + "Name":"D3D12_VIDEO_ENCODER_AV1_INVALID_DPB_RESOURCE_INDEX" + ,"Type":{"Kind":"Native","Name":"UInt32"} + ,"ValueType":"UInt32" + ,"Value":255 + ,"Attrs":[] + } + ,{ + "Name":"D3D12_VIDEO_ENCODER_AV1_MAX_TILE_COLS" + ,"Type":{"Kind":"Native","Name":"UInt32"} + ,"ValueType":"UInt32" + ,"Value":64 + ,"Attrs":[] + } + ,{ + "Name":"D3D12_VIDEO_ENCODER_AV1_MAX_TILE_ROWS" + ,"Type":{"Kind":"Native","Name":"UInt32"} + ,"ValueType":"UInt32" + ,"Value":64 + ,"Attrs":[] + } + ,{ + "Name":"D3D12_VIDEO_ENCODER_AV1_SUPERRES_DENOM_MIN" + ,"Type":{"Kind":"Native","Name":"UInt32"} + ,"ValueType":"UInt32" + ,"Value":9 + ,"Attrs":[] + } + ,{ + "Name":"D3D12_VIDEO_ENCODER_AV1_SUPERRES_NUM" + ,"Type":{"Kind":"Native","Name":"UInt32"} + ,"ValueType":"UInt32" + ,"Value":8 + ,"Attrs":[] + } ,{ "Name":"D3D12_VIDEO_PROCESS_MAX_FILTERS" ,"Type":{"Kind":"Native","Name":"UInt32"} @@ -2962,6 +2997,20 @@ ,"Value":25 ,"Attrs":[] } + ,{ + "Name":"D3D12_WORK_GRAPHS_BACKING_MEMORY_ALIGNMENT_IN_BYTES" + ,"Type":{"Kind":"Native","Name":"UInt32"} + ,"ValueType":"UInt32" + ,"Value":8 + ,"Attrs":[] + } + ,{ + "Name":"D3D12_WORK_GRAPHS_MAX_NODE_DEPTH" + ,"Type":{"Kind":"Native","Name":"UInt32"} + ,"ValueType":"UInt32" + ,"Value":32 + ,"Attrs":[] + } ,{ "Name":"D3D12_SHADER_COMPONENT_MAPPING_MASK" ,"Type":{"Kind":"Native","Name":"UInt32"} @@ -3074,13 +3123,6 @@ ,"Value":"114863bf-c386-4aee-b39d-8f0bbb062955" ,"Attrs":[] } - ,{ - "Name":"CLSID_D3D12DSRDeviceFactory" - ,"Type":{"Kind":"Native","Name":"Guid"} - ,"ValueType":"String" - ,"Value":"7f9bdcac-f629-455e-ab13-a807fbe9aba4" - ,"Attrs":[] - } ,{ "Name":"D3D12_SHADING_RATE_X_AXIS_SHIFT" ,"Type":{"Kind":"Native","Name":"UInt32"} @@ -3257,19 +3299,26 @@ ,"Attrs":[] } ,{ - "Name":"D3D_SHADER_FEATURE_ADVANCED_TEXTURE_OPS" + "Name":"D3D_SHADER_REQUIRES_ADVANCED_TEXTURE_OPS" ,"Type":{"Kind":"Native","Name":"UInt32"} ,"ValueType":"UInt32" ,"Value":536870912 ,"Attrs":[] } ,{ - "Name":"D3D_SHADER_FEATURE_WRITEABLE_MSAA_TEXTURES" + "Name":"D3D_SHADER_REQUIRES_WRITEABLE_MSAA_TEXTURES" ,"Type":{"Kind":"Native","Name":"UInt32"} ,"ValueType":"UInt32" ,"Value":1073741824 ,"Attrs":[] } + ,{ + "Name":"D3D_SHADER_REQUIRES_SAMPLE_CMP_GRADIENT_OR_BIAS" + ,"Type":{"Kind":"Native","Name":"UInt32"} + ,"ValueType":"UInt32" + ,"Value":2147483648 + ,"Attrs":[] + } ,{ "Name":"D3D12ExperimentalShaderModels" ,"Type":{"Kind":"Native","Name":"Guid"} @@ -4019,6 +4068,19 @@ ] ,"IntegerBase":"Int32" } + ,{ + "Name":"D3D12_STANDARD_MULTISAMPLE_QUALITY_LEVELS" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":false + ,"Scoped":false + ,"Values":[ + {"Name":"D3D12_STANDARD_MULTISAMPLE_PATTERN","Value":-1} + ,{"Name":"D3D12_CENTER_MULTISAMPLE_PATTERN","Value":-2} + ] + ,"IntegerBase":"Int32" + } ,{ "Name":"D3D12_CACHED_PIPELINE_STATE" ,"Architectures":[] @@ -4218,6 +4280,11 @@ ,{"Name":"D3D12_FEATURE_D3D12_OPTIONS17","Value":46} ,{"Name":"D3D12_FEATURE_D3D12_OPTIONS18","Value":47} ,{"Name":"D3D12_FEATURE_D3D12_OPTIONS19","Value":48} + ,{"Name":"D3D12_FEATURE_D3D12_OPTIONS20","Value":49} + ,{"Name":"D3D12_FEATURE_PREDICATION","Value":50} + ,{"Name":"D3D12_FEATURE_PLACED_RESOURCE_SUPPORT_INFO","Value":51} + ,{"Name":"D3D12_FEATURE_HARDWARE_COPY","Value":52} + ,{"Name":"D3D12_FEATURE_D3D12_OPTIONS21","Value":53} ] ,"IntegerBase":"Int32" } @@ -4416,6 +4483,19 @@ ] ,"IntegerBase":"Int32" } + ,{ + "Name":"D3D12_WORK_GRAPHS_TIER" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":false + ,"Scoped":false + ,"Values":[ + {"Name":"D3D12_WORK_GRAPHS_TIER_NOT_SUPPORTED","Value":0} + ,{"Name":"D3D12_WORK_GRAPHS_TIER_1_0","Value":10} + ] + ,"IntegerBase":"Int32" + } ,{ "Name":"D3D12_FEATURE_DATA_D3D12_OPTIONS" ,"Architectures":[] @@ -4566,7 +4646,8 @@ ,"Flags":false ,"Scoped":false ,"Values":[ - {"Name":"D3D_SHADER_MODEL_5_1","Value":81} + {"Name":"D3D_SHADER_MODEL_NONE","Value":0} + ,{"Name":"D3D_SHADER_MODEL_5_1","Value":81} ,{"Name":"D3D_SHADER_MODEL_6_0","Value":96} ,{"Name":"D3D_SHADER_MODEL_6_1","Value":97} ,{"Name":"D3D_SHADER_MODEL_6_2","Value":98} @@ -4576,7 +4657,8 @@ ,{"Name":"D3D_SHADER_MODEL_6_6","Value":102} ,{"Name":"D3D_SHADER_MODEL_6_7","Value":103} ,{"Name":"D3D_SHADER_MODEL_6_8","Value":104} - ,{"Name":"D3D_HIGHEST_SHADER_MODEL","Value":104} + ,{"Name":"D3D_SHADER_MODEL_6_9","Value":105} + ,{"Name":"D3D_HIGHEST_SHADER_MODEL","Value":105} ] ,"IntegerBase":"Int32" } @@ -5204,6 +5286,92 @@ ,"NestedTypes":[ ] } + ,{ + "Name":"D3D12_RECREATE_AT_TIER" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":false + ,"Scoped":false + ,"Values":[ + {"Name":"D3D12_RECREATE_AT_TIER_NOT_SUPPORTED","Value":0} + ,{"Name":"D3D12_RECREATE_AT_TIER_1","Value":1} + ] + ,"IntegerBase":"Int32" + } + ,{ + "Name":"D3D12_FEATURE_DATA_D3D12_OPTIONS20" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"ComputeOnlyWriteWatchSupported","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} + ,{"Name":"RecreateAtTier","Type":{"Kind":"ApiRef","Name":"D3D12_RECREATE_AT_TIER","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_EXECUTE_INDIRECT_TIER" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":false + ,"Scoped":false + ,"Values":[ + {"Name":"D3D12_EXECUTE_INDIRECT_TIER_1_0","Value":10} + ,{"Name":"D3D12_EXECUTE_INDIRECT_TIER_1_1","Value":11} + ] + ,"IntegerBase":"Int32" + } + ,{ + "Name":"D3D12_FEATURE_DATA_D3D12_OPTIONS21" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"WorkGraphsTier","Type":{"Kind":"ApiRef","Name":"D3D12_WORK_GRAPHS_TIER","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"ExecuteIndirectTier","Type":{"Kind":"ApiRef","Name":"D3D12_EXECUTE_INDIRECT_TIER","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"SampleCmpGradientAndBiasSupported","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} + ,{"Name":"ExtendedCommandInfoSupported","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_FEATURE_DATA_PREDICATION" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"Supported","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_FEATURE_DATA_HARDWARE_COPY" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"Supported","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } ,{ "Name":"D3D12_RESOURCE_ALLOCATION_INFO" ,"Architectures":[] @@ -5359,6 +5527,23 @@ ] ,"IntegerBase":"Int32" } + ,{ + "Name":"D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"Format","Type":{"Kind":"ApiRef","Name":"DXGI_FORMAT","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]},"Attrs":[]} + ,{"Name":"Dimension","Type":{"Kind":"ApiRef","Name":"D3D12_RESOURCE_DIMENSION","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"DestHeapProperties","Type":{"Kind":"ApiRef","Name":"D3D12_HEAP_PROPERTIES","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"Supported","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } ,{ "Name":"D3D12_TEXTURE_LAYOUT" ,"Architectures":[] @@ -5717,6 +5902,11 @@ ,{"Name":"D3D12_RESOURCE_STATE_RESOLVE_SOURCE","Value":8192} ,{"Name":"D3D12_RESOURCE_STATE_RAYTRACING_ACCELERATION_STRUCTURE","Value":4194304} ,{"Name":"D3D12_RESOURCE_STATE_SHADING_RATE_SOURCE","Value":16777216} + ,{"Name":"D3D12_RESOURCE_STATE_RESERVED_INTERNAL_8000","Value":32768} + ,{"Name":"D3D12_RESOURCE_STATE_RESERVED_INTERNAL_4000","Value":16384} + ,{"Name":"D3D12_RESOURCE_STATE_RESERVED_INTERNAL_100000","Value":1048576} + ,{"Name":"D3D12_RESOURCE_STATE_RESERVED_INTERNAL_40000000","Value":1073741824} + ,{"Name":"D3D12_RESOURCE_STATE_RESERVED_INTERNAL_80000000","Value":-2147483648} ,{"Name":"D3D12_RESOURCE_STATE_GENERIC_READ","Value":2755} ,{"Name":"D3D12_RESOURCE_STATE_ALL_SHADER_RESOURCE","Value":192} ,{"Name":"D3D12_RESOURCE_STATE_PRESENT","Value":0} @@ -7907,6 +8097,7 @@ ,{"Name":"D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW","Value":8} ,{"Name":"D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS","Value":9} ,{"Name":"D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH","Value":10} + ,{"Name":"D3D12_INDIRECT_ARGUMENT_TYPE_INCREMENTING_CONSTANT","Value":11} ] ,"IntegerBase":"Int32" } @@ -7937,10 +8128,26 @@ ,{"Name":"ConstantBufferView","Type":{"Kind":"ApiRef","Name":"_ConstantBufferView_e__Struct","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":["_Anonymous_e__Union"]},"Attrs":[]} ,{"Name":"ShaderResourceView","Type":{"Kind":"ApiRef","Name":"_ShaderResourceView_e__Struct","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":["_Anonymous_e__Union"]},"Attrs":[]} ,{"Name":"UnorderedAccessView","Type":{"Kind":"ApiRef","Name":"_UnorderedAccessView_e__Struct","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":["_Anonymous_e__Union"]},"Attrs":[]} + ,{"Name":"IncrementingConstant","Type":{"Kind":"ApiRef","Name":"_IncrementingConstant_e__Struct","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":["_Anonymous_e__Union"]},"Attrs":[]} ] ,"NestedTypes":[ { - "Name":"_UnorderedAccessView_e__Struct" + "Name":"_IncrementingConstant_e__Struct" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"RootParameterIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"DestOffsetIn32BitValues","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"_ShaderResourceView_e__Struct" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" @@ -7954,7 +8161,23 @@ ] } ,{ - "Name":"_ConstantBufferView_e__Struct" + "Name":"_Constant_e__Struct" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"RootParameterIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"DestOffsetIn32BitValues","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"Num32BitValuesToSet","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"_UnorderedAccessView_e__Struct" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" @@ -7982,23 +8205,7 @@ ] } ,{ - "Name":"_Constant_e__Struct" - ,"Architectures":[] - ,"Platform":null - ,"Kind":"Struct" - ,"Size":0 - ,"PackingSize":0 - ,"SizeField":"" - ,"Fields":[ - {"Name":"RootParameterIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} - ,{"Name":"DestOffsetIn32BitValues","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} - ,{"Name":"Num32BitValuesToSet","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} - ] - ,"NestedTypes":[ - ] - } - ,{ - "Name":"_ShaderResourceView_e__Struct" + "Name":"_ConstantBufferView_e__Struct" ,"Architectures":[] ,"Platform":null ,"Kind":"Struct" @@ -10776,6 +10983,246 @@ } ] } + ,{ + "Name":"D3D12_PROGRAM_IDENTIFIER" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"OpaqueData","Type":{"Kind":"Array","Shape":{"Size":4},"Child":{"Kind":"Native","Name":"UInt64"}},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"ID3D12StateObjectProperties1" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"460caac7-1d24-446a-a184-ca67db494138" + ,"Interface":{"Kind":"ApiRef","Name":"ID3D12StateObjectProperties","TargetKind":"Com","Api":"Graphics.Direct3D12","Parents":[]} + ,"Methods":[ + { + "Name":"GetProgramIdentifier" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"D3D12_PROGRAM_IDENTIFIER","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"pProgramName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]} + ] + } + ] + } + ,{ + "Name":"D3D12_NODE_ID" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"Name","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["Const"]} + ,{"Name":"ArrayIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"MinSizeInBytes","Type":{"Kind":"Native","Name":"UInt64"},"Attrs":[]} + ,{"Name":"MaxSizeInBytes","Type":{"Kind":"Native","Name":"UInt64"},"Attrs":[]} + ,{"Name":"SizeGranularityInBytes","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"ID3D12WorkGraphProperties" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"065acf71-f863-4b89-82f4-02e4d5886757" + ,"Interface":{"Kind":"ApiRef","Name":"IUnknown","TargetKind":"Com","Api":"System.Com","Parents":[]} + ,"Methods":[ + { + "Name":"GetNumWorkGraphs" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"UInt32"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + ] + } + ,{ + "Name":"GetProgramName" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"WorkGraphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ,{ + "Name":"GetWorkGraphIndex" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"UInt32"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"pProgramName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]} + ] + } + ,{ + "Name":"GetNumNodes" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"UInt32"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"WorkGraphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ,{ + "Name":"GetNodeID" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"WorkGraphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"NodeIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ,{ + "Name":"GetNodeIndex" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"UInt32"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"WorkGraphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"NodeID","Type":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":["In"]} + ] + } + ,{ + "Name":"GetNodeLocalRootArgumentsTableIndex" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"UInt32"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"WorkGraphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"NodeIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ,{ + "Name":"GetNumEntrypoints" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"UInt32"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"WorkGraphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ,{ + "Name":"GetEntrypointID" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"WorkGraphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"EntrypointIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ,{ + "Name":"GetEntrypointIndex" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"UInt32"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"WorkGraphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"NodeID","Type":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":["In"]} + ] + } + ,{ + "Name":"GetEntrypointRecordSizeInBytes" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"UInt32"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"WorkGraphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"EntrypointIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ,{ + "Name":"GetWorkGraphMemoryRequirements" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"Void"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"WorkGraphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"pWorkGraphMemoryRequirements","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Out"]} + ] + } + ,{ + "Name":"GetEntrypointRecordAlignmentInBytes" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"UInt32"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"WorkGraphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"EntrypointIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ] + } ,{ "Name":"D3D12_STATE_SUBOBJECT_TYPE" ,"Architectures":[] @@ -10796,7 +11243,24 @@ ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG","Value":10} ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_HIT_GROUP","Value":11} ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG1","Value":12} - ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_MAX_VALID","Value":13} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_WORK_GRAPH","Value":13} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT","Value":14} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_BLEND","Value":15} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_SAMPLE_MASK","Value":16} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_RASTERIZER","Value":17} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL","Value":18} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT","Value":19} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE","Value":20} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY","Value":21} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS","Value":22} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT","Value":23} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_SAMPLE_DESC","Value":24} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_FLAGS","Value":26} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1","Value":27} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING","Value":28} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_GENERIC_PROGRAM","Value":29} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2","Value":30} + ,{"Name":"D3D12_STATE_SUBOBJECT_TYPE_MAX_VALID","Value":31} ] ,"IntegerBase":"Int32" } @@ -10886,6 +11350,62 @@ ,"NestedTypes":[ ] } + ,{ + "Name":"D3D12_SAMPLE_MASK" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"SampleMask","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_IB_STRIP_CUT_VALUE" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"IndexBufferStripCutValue","Type":{"Kind":"ApiRef","Name":"D3D12_INDEX_BUFFER_STRIP_CUT_VALUE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_PRIMITIVE_TOPOLOGY_DESC" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"PrimitiveTopology","Type":{"Kind":"ApiRef","Name":"D3D12_PRIMITIVE_TOPOLOGY_TYPE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_DEPTH_STENCIL_FORMAT" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"DepthStencilFormat","Type":{"Kind":"ApiRef","Name":"DXGI_FORMAT","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } ,{ "Name":"D3D12_EXPORT_FLAGS" ,"Architectures":[] @@ -10925,7 +11445,7 @@ ,"Fields":[ {"Name":"DXILLibrary","Type":{"Kind":"ApiRef","Name":"D3D12_SHADER_BYTECODE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} ,{"Name":"NumExports","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} - ,{"Name":"pExports","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_EXPORT_DESC","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":[]} + ,{"Name":"pExports","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_EXPORT_DESC","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} ] ,"NestedTypes":[ ] @@ -10941,7 +11461,7 @@ ,"Fields":[ {"Name":"pExistingCollection","Type":{"Kind":"ApiRef","Name":"ID3D12StateObject","TargetKind":"Com","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} ,{"Name":"NumExports","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} - ,{"Name":"pExports","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_EXPORT_DESC","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":[]} + ,{"Name":"pExports","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_EXPORT_DESC","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} ] ,"NestedTypes":[ ] @@ -11067,6 +11587,242 @@ ,"NestedTypes":[ ] } + ,{ + "Name":"D3D12_NODE_OUTPUT_OVERRIDES" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"OutputIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"pNewName","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pAllowSparseNodes","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pMaxRecords","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Const"]} + ,{"Name":"pMaxRecordsSharedWithOutputIndex","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Const"]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_BROADCASTING_LAUNCH_OVERRIDES" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"pLocalRootArgumentsTableIndex","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Const"]} + ,{"Name":"pProgramEntry","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pNewName","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pShareInputOf","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pDispatchGrid","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Const"]} + ,{"Name":"pMaxDispatchGrid","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Const"]} + ,{"Name":"NumOutputOverrides","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"pOutputOverrides","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_OUTPUT_OVERRIDES","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_COALESCING_LAUNCH_OVERRIDES" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"pLocalRootArgumentsTableIndex","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Const"]} + ,{"Name":"pProgramEntry","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pNewName","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pShareInputOf","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"NumOutputOverrides","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"pOutputOverrides","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_OUTPUT_OVERRIDES","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_THREAD_LAUNCH_OVERRIDES" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"pLocalRootArgumentsTableIndex","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Const"]} + ,{"Name":"pProgramEntry","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pNewName","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pShareInputOf","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"NumOutputOverrides","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"pOutputOverrides","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_OUTPUT_OVERRIDES","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_COMMON_COMPUTE_NODE_OVERRIDES" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"pLocalRootArgumentsTableIndex","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Const"]} + ,{"Name":"pProgramEntry","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pNewName","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pShareInputOf","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"NumOutputOverrides","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"pOutputOverrides","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_OUTPUT_OVERRIDES","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_NODE_OVERRIDES_TYPE" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":false + ,"Scoped":false + ,"Values":[ + {"Name":"D3D12_NODE_OVERRIDES_TYPE_NONE","Value":0} + ,{"Name":"D3D12_NODE_OVERRIDES_TYPE_BROADCASTING_LAUNCH","Value":1} + ,{"Name":"D3D12_NODE_OVERRIDES_TYPE_COALESCING_LAUNCH","Value":2} + ,{"Name":"D3D12_NODE_OVERRIDES_TYPE_THREAD_LAUNCH","Value":3} + ,{"Name":"D3D12_NODE_OVERRIDES_TYPE_COMMON_COMPUTE","Value":4} + ] + ,"IntegerBase":"Int32" + } + ,{ + "Name":"D3D12_SHADER_NODE" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"Shader","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["Const"]} + ,{"Name":"OverridesType","Type":{"Kind":"ApiRef","Name":"D3D12_NODE_OVERRIDES_TYPE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"Anonymous","Type":{"Kind":"ApiRef","Name":"_Anonymous_e__Union","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + { + "Name":"_Anonymous_e__Union" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Union" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"pBroadcastingLaunchOverrides","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_BROADCASTING_LAUNCH_OVERRIDES","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pCoalescingLaunchOverrides","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_COALESCING_LAUNCH_OVERRIDES","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pThreadLaunchOverrides","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_THREAD_LAUNCH_OVERRIDES","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"pCommonComputeNodeOverrides","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_COMMON_COMPUTE_NODE_OVERRIDES","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ] + ,"NestedTypes":[ + ] + } + ] + } + ,{ + "Name":"D3D12_NODE_TYPE" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":false + ,"Scoped":false + ,"Values":[ + {"Name":"D3D12_NODE_TYPE_SHADER","Value":0} + ] + ,"IntegerBase":"Int32" + } + ,{ + "Name":"D3D12_NODE" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"NodeType","Type":{"Kind":"ApiRef","Name":"D3D12_NODE_TYPE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"Anonymous","Type":{"Kind":"ApiRef","Name":"_Anonymous_e__Union","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + { + "Name":"_Anonymous_e__Union" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Union" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"Shader","Type":{"Kind":"ApiRef","Name":"D3D12_SHADER_NODE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ] + } + ,{ + "Name":"D3D12_WORK_GRAPH_FLAGS" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":true + ,"Scoped":false + ,"Values":[ + {"Name":"D3D12_WORK_GRAPH_FLAG_NONE","Value":0} + ,{"Name":"D3D12_WORK_GRAPH_FLAG_INCLUDE_ALL_AVAILABLE_NODES","Value":1} + ] + ,"IntegerBase":"Int32" + } + ,{ + "Name":"D3D12_WORK_GRAPH_DESC" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"ProgramName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["Const"]} + ,{"Name":"Flags","Type":{"Kind":"ApiRef","Name":"D3D12_WORK_GRAPH_FLAGS","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"NumEntrypoints","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"pEntrypoints","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_ID","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"NumExplicitlyDefinedNodes","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"pExplicitlyDefinedNodes","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_GENERIC_PROGRAM_DESC" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"ProgramName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["Const"]} + ,{"Name":"NumExports","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"pExports","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"NumSubobjects","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"ppSubobjects","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_STATE_SUBOBJECT","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}}},"Attrs":["Const"]} + ] + ,"NestedTypes":[ + ] + } ,{ "Name":"D3D12_STATE_OBJECT_TYPE" ,"Architectures":[] @@ -11077,6 +11833,7 @@ ,"Values":[ {"Name":"D3D12_STATE_OBJECT_TYPE_COLLECTION","Value":0} ,{"Name":"D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE","Value":3} + ,{"Name":"D3D12_STATE_OBJECT_TYPE_EXECUTABLE","Value":4} ] ,"IntegerBase":"Int32" } @@ -11786,6 +12543,9 @@ ,{"Name":"D3D12_AUTO_BREADCRUMB_OP_ENCODEFRAME","Value":43} ,{"Name":"D3D12_AUTO_BREADCRUMB_OP_RESOLVEENCODEROUTPUTMETADATA","Value":44} ,{"Name":"D3D12_AUTO_BREADCRUMB_OP_BARRIER","Value":45} + ,{"Name":"D3D12_AUTO_BREADCRUMB_OP_BEGIN_COMMAND_LIST","Value":46} + ,{"Name":"D3D12_AUTO_BREADCRUMB_OP_DISPATCHGRAPH","Value":47} + ,{"Name":"D3D12_AUTO_BREADCRUMB_OP_SETPROGRAM","Value":48} ] ,"IntegerBase":"Int32" } @@ -12979,6 +13739,220 @@ ,"NestedTypes":[ ] } + ,{ + "Name":"D3D12_SET_WORK_GRAPH_FLAGS" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":true + ,"Scoped":false + ,"Values":[ + {"Name":"D3D12_SET_WORK_GRAPH_FLAG_NONE","Value":0} + ,{"Name":"D3D12_SET_WORK_GRAPH_FLAG_INITIALIZE","Value":1} + ] + ,"IntegerBase":"Int32" + } + ,{ + "Name":"D3D12_SET_WORK_GRAPH_DESC" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"ProgramIdentifier","Type":{"Kind":"ApiRef","Name":"D3D12_PROGRAM_IDENTIFIER","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"Flags","Type":{"Kind":"ApiRef","Name":"D3D12_SET_WORK_GRAPH_FLAGS","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"BackingMemory","Type":{"Kind":"ApiRef","Name":"D3D12_GPU_VIRTUAL_ADDRESS_RANGE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"NodeLocalRootArgumentsTable","Type":{"Kind":"ApiRef","Name":"D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_SET_RAYTRACING_PIPELINE_DESC" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"ProgramIdentifier","Type":{"Kind":"ApiRef","Name":"D3D12_PROGRAM_IDENTIFIER","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_SET_GENERIC_PIPELINE_DESC" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"ProgramIdentifier","Type":{"Kind":"ApiRef","Name":"D3D12_PROGRAM_IDENTIFIER","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_PROGRAM_TYPE" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":false + ,"Scoped":false + ,"Values":[ + {"Name":"D3D12_PROGRAM_TYPE_GENERIC_PIPELINE","Value":1} + ,{"Name":"D3D12_PROGRAM_TYPE_RAYTRACING_PIPELINE","Value":4} + ,{"Name":"D3D12_PROGRAM_TYPE_WORK_GRAPH","Value":5} + ] + ,"IntegerBase":"Int32" + } + ,{ + "Name":"D3D12_SET_PROGRAM_DESC" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"Type","Type":{"Kind":"ApiRef","Name":"D3D12_PROGRAM_TYPE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"Anonymous","Type":{"Kind":"ApiRef","Name":"_Anonymous_e__Union","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + { + "Name":"_Anonymous_e__Union" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Union" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"GenericPipeline","Type":{"Kind":"ApiRef","Name":"D3D12_SET_GENERIC_PIPELINE_DESC","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"RaytracingPipeline","Type":{"Kind":"ApiRef","Name":"D3D12_SET_RAYTRACING_PIPELINE_DESC","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"WorkGraph","Type":{"Kind":"ApiRef","Name":"D3D12_SET_WORK_GRAPH_DESC","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ] + } + ,{ + "Name":"D3D12_DISPATCH_MODE" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":false + ,"Scoped":false + ,"Values":[ + {"Name":"D3D12_DISPATCH_MODE_NODE_CPU_INPUT","Value":0} + ,{"Name":"D3D12_DISPATCH_MODE_NODE_GPU_INPUT","Value":1} + ,{"Name":"D3D12_DISPATCH_MODE_MULTI_NODE_CPU_INPUT","Value":2} + ,{"Name":"D3D12_DISPATCH_MODE_MULTI_NODE_GPU_INPUT","Value":3} + ] + ,"IntegerBase":"Int32" + } + ,{ + "Name":"D3D12_NODE_CPU_INPUT" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"EntrypointIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"NumRecords","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"pRecords","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["Const"]} + ,{"Name":"RecordStrideInBytes","Type":{"Kind":"Native","Name":"UInt64"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_NODE_GPU_INPUT" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"EntrypointIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"NumRecords","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"Records","Type":{"Kind":"ApiRef","Name":"D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_MULTI_NODE_CPU_INPUT" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"NumNodeInputs","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"pNodeInputs","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_NODE_CPU_INPUT","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["Const"]} + ,{"Name":"NodeInputStrideInBytes","Type":{"Kind":"Native","Name":"UInt64"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_MULTI_NODE_GPU_INPUT" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"NumNodeInputs","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"NodeInputs","Type":{"Kind":"ApiRef","Name":"D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"D3D12_DISPATCH_GRAPH_DESC" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"Mode","Type":{"Kind":"ApiRef","Name":"D3D12_DISPATCH_MODE","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"Anonymous","Type":{"Kind":"ApiRef","Name":"_Anonymous_e__Union","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + { + "Name":"_Anonymous_e__Union" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Union" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"NodeCPUInput","Type":{"Kind":"ApiRef","Name":"D3D12_NODE_CPU_INPUT","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"NodeGPUInput","Type":{"Kind":"Native","Name":"UInt64"},"Attrs":[]} + ,{"Name":"MultiNodeCPUInput","Type":{"Kind":"ApiRef","Name":"D3D12_MULTI_NODE_CPU_INPUT","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":[]} + ,{"Name":"MultiNodeGPUInput","Type":{"Kind":"Native","Name":"UInt64"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ] + } ,{ "Name":"ID3D12GraphicsCommandList4" ,"Architectures":[] @@ -13672,6 +14646,58 @@ } ] } + ,{ + "Name":"ID3D12Device13" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"14eecffc-4df8-40f7-a118-5c816f45695e" + ,"Interface":{"Kind":"ApiRef","Name":"ID3D12Device12","TargetKind":"Com","Api":"Graphics.Direct3D12","Parents":[]} + ,"Methods":[ + { + "Name":"OpenExistingHeapFromAddress1" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"pAddress","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In","Const"]} + ,{"Name":"size","Type":{"Kind":"Native","Name":"UIntPtr"},"Attrs":["In"]} + ,{"Name":"riid","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Guid"}},"Attrs":["In","Const"]} + ,{"Name":"ppvHeap","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}}},"Attrs":["Out","ComOutPtr"]} + ] + } + ] + } + ,{ + "Name":"ID3D12Device14" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"5f6e592d-d895-44c2-8e4a-88ad4926d323" + ,"Interface":{"Kind":"ApiRef","Name":"ID3D12Device13","TargetKind":"Com","Api":"Graphics.Direct3D12","Parents":[]} + ,"Methods":[ + { + "Name":"CreateRootSignatureFromSubobjectInLibrary" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"nodeMask","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"pLibraryBlob","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":2,"Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In","Const"]} + ,{"Name":"blobLengthInBytes","Type":{"Kind":"Native","Name":"UIntPtr"},"Attrs":["In"]} + ,{"Name":"subobjectName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Optional","Const"]} + ,{"Name":"riid","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Guid"}},"Attrs":["In","Const"]} + ,{"Name":"ppvRootSignature","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}}},"Attrs":["Out","ComOutPtr"]} + ] + } + ] + } ,{ "Name":"ID3D12VirtualizationGuestDevice" ,"Architectures":[] @@ -14725,6 +15751,9 @@ ,{"Name":"D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA","Value":115} ,{"Name":"D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA","Value":116} ,{"Name":"D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK","Value":117} + ,{"Name":"D3D12_MESSAGE_ID_GET_PROGRAM_IDENTIFIER_ERROR","Value":118} + ,{"Name":"D3D12_MESSAGE_ID_GET_WORK_GRAPH_PROPERTIES_ERROR","Value":119} + ,{"Name":"D3D12_MESSAGE_ID_SET_PROGRAM_ERROR","Value":120} ,{"Name":"D3D12_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID","Value":135} ,{"Name":"D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_ROOT_SIGNATURE_NOT_SET","Value":200} ,{"Name":"D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_ROOT_SIGNATURE_MISMATCH","Value":201} @@ -15561,7 +16590,47 @@ ,{"Name":"D3D12_MESSAGE_ID_DRAW_POTENTIALLY_OUTSIDE_OF_VALID_RENDER_AREA","Value":1378} ,{"Name":"D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALID_LINERASTERIZATIONMODE","Value":1379} ,{"Name":"D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDALIGNMENT_SMALLRESOURCE","Value":1380} - ,{"Name":"D3D12_MESSAGE_ID_D3D12_MESSAGES_END","Value":1381} + ,{"Name":"D3D12_MESSAGE_ID_GENERIC_DEVICE_OPERATION_UNSUPPORTED","Value":1381} + ,{"Name":"D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RENDER_TARGET_WRONG_WRITE_MASK","Value":1382} + ,{"Name":"D3D12_MESSAGE_ID_PROBABLE_PIX_EVENT_LEAK","Value":1383} + ,{"Name":"D3D12_MESSAGE_ID_PIX_EVENT_UNDERFLOW","Value":1384} + ,{"Name":"D3D12_MESSAGE_ID_RECREATEAT_INVALID_TARGET","Value":1385} + ,{"Name":"D3D12_MESSAGE_ID_RECREATEAT_INSUFFICIENT_SUPPORT","Value":1386} + ,{"Name":"D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_STRUCTURED_BUFFER_STRIDE_MISMATCH","Value":1387} + ,{"Name":"D3D12_MESSAGE_ID_DISPATCH_GRAPH_INVALID","Value":1388} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_TARGET_FORMAT_INVALID","Value":1389} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_TARGET_DIMENSION_INVALID","Value":1390} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_SOURCE_COLOR_FORMAT_INVALID","Value":1391} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_SOURCE_DEPTH_FORMAT_INVALID","Value":1392} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXPOSURE_SCALE_FORMAT_INVALID","Value":1393} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_ENGINE_CREATE_FLAGS_INVALID","Value":1394} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_LOAD_FAILURE","Value":1395} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_ENGINE_CREATION_ERROR","Value":1396} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_UPSCALER_CREATION_ERROR","Value":1397} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_UPSCALER_EXECUTION_ERROR","Value":1398} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_REGION_INVALID","Value":1399} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_TIME_DELTA_INVALID","Value":1400} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_REQUIRED_TEXTURE_IS_NULL","Value":1401} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_MOTION_VECTORS_FORMAT_INVALID","Value":1402} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_FLAGS_INVALID","Value":1403} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_FORMAT_INVALID","Value":1404} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_EXPOSURE_SCALE_TEXTURE_SIZE_INVALID","Value":1405} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_VARIANT_INDEX_OUT_OF_BOUNDS","Value":1406} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_VARIANT_ID_NOT_FOUND","Value":1407} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_DUPLICATE_VARIANT_ID","Value":1408} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_OUT_OF_MEMORY","Value":1409} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_UNEXPECTED_TEXTURE_IS_IGNORED","Value":1410} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EVICT_UNDERFLOW","Value":1411} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_OPTIONAL_TEXTURE_IS_NULL","Value":1412} + ,{"Name":"D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_INVALID_CAMERA_JITTER","Value":1413} + ,{"Name":"D3D12_MESSAGE_ID_CREATE_STATE_OBJECT_WARNING","Value":1414} + ,{"Name":"D3D12_MESSAGE_ID_GUID_TEXTURE_LAYOUT_UNSUPPORTED","Value":1415} + ,{"Name":"D3D12_MESSAGE_ID_RESOLVE_ENCODER_INPUT_PARAM_LAYOUT_INVALID_PARAMETERS","Value":1416} + ,{"Name":"D3D12_MESSAGE_ID_INVALID_BARRIER_ACCESS","Value":1417} + ,{"Name":"D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INSTANCE_COUNT_ZERO","Value":1418} + ,{"Name":"D3D12_MESSAGE_ID_DESCRIPTOR_HEAP_NOT_SET_BEFORE_ROOT_SIGNATURE_WITH_DIRECTLY_INDEXED_FLAG","Value":1419} + ,{"Name":"D3D12_MESSAGE_ID_DIFFERENT_DESCRIPTOR_HEAP_SET_AFTER_ROOT_SIGNATURE_WITH_DIRECTLY_INDEXED_FLAG","Value":1420} + ,{"Name":"D3D12_MESSAGE_ID_D3D12_MESSAGES_END","Value":1421} ] ,"IntegerBase":"Int32" } @@ -16089,7 +17158,7 @@ ,"Params":[ {"Name":"CallbackFunc","Type":{"Kind":"ApiRef","Name":"D3D12MessageFunc","TargetKind":"FunctionPointer","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":["In"]} ,{"Name":"CallbackFilterFlags","Type":{"Kind":"ApiRef","Name":"D3D12_MESSAGE_CALLBACK_FLAGS","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":["In"]} - ,{"Name":"pContext","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In"]} + ,{"Name":"pContext","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In","Out"]} ,{"Name":"pCallbackCookie","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["In","Out"]} ] } @@ -16428,6 +17497,32 @@ } ] } + ,{ + "Name":"ID3D12DeviceConfiguration1" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"ed342442-6343-4e16-bb82-a3a577874e56" + ,"Interface":{"Kind":"ApiRef","Name":"ID3D12DeviceConfiguration","TargetKind":"Com","Api":"Graphics.Direct3D12","Parents":[]} + ,"Methods":[ + { + "Name":"CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"pLibraryBlob","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}},"Attrs":["In",{"Kind":"MemorySize","BytesParamIndex":1},"Const"]} + ,{"Name":"Size","Type":{"Kind":"Native","Name":"UIntPtr"},"Attrs":["In"]} + ,{"Name":"RootSignatureSubobjectName","Type":{"Kind":"ApiRef","Name":"PWSTR","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In","Const"]} + ,{"Name":"riid","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Guid"}},"Attrs":["In","Const"]} + ,{"Name":"ppvDeserializer","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}}},"Attrs":["Out","ComOutPtr"]} + ] + } + ] + } ,{ "Name":"D3D12_AXIS_SHADING_RATE" ,"Architectures":[] @@ -16634,15 +17729,49 @@ ] } ,{ - "Name":"ID3D12DSRDeviceFactory" + "Name":"ID3D12GraphicsCommandList10" ,"Architectures":[] ,"Platform":null ,"Kind":"Com" - ,"Guid":"51ee7783-6426-4428-b182-42f3541fca71" + ,"Guid":"7013c015-d161-4b63-a08c-238552dd8acc" + ,"Interface":{"Kind":"ApiRef","Name":"ID3D12GraphicsCommandList9","TargetKind":"Com","Api":"Graphics.Direct3D12","Parents":[]} + ,"Methods":[ + { + "Name":"SetProgram" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"Void"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_SET_PROGRAM_DESC","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["In","Const"]} + ] + } + ,{ + "Name":"DispatchGraph" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"Void"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_DISPATCH_GRAPH_DESC","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["In","Const"]} + ] + } + ] + } + ,{ + "Name":"ID3D12GBVDiagnostics" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"597985ab-9b75-4dbb-be23-0761195bebee" ,"Interface":{"Kind":"ApiRef","Name":"IUnknown","TargetKind":"Com","Api":"System.Com","Parents":[]} ,"Methods":[ { - "Name":"CreateDSRDevice" + "Name":"GetGBVEntireSubresourceStatesData" ,"SetLastError":false ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} ,"ReturnAttrs":[] @@ -16650,10 +17779,73 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pD3D12Device","Type":{"Kind":"ApiRef","Name":"ID3D12Device","TargetKind":"Com","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":["In"]} - ,{"Name":"NodeMask","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} - ,{"Name":"riid","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Guid"}},"Attrs":["In","Const"]} - ,{"Name":"ppvDSRDevice","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}}},"Attrs":["Out","ComOutPtr"]} + {"Name":"pResource","Type":{"Kind":"ApiRef","Name":"ID3D12Resource","TargetKind":"Com","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":["In"]} + ,{"Name":"pData","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Int32"}},"Attrs":["Out",{"Kind":"MemorySize","BytesParamIndex":2}]} + ,{"Name":"DataSize","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ,{ + "Name":"GetGBVSubresourceState" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"pResource","Type":{"Kind":"ApiRef","Name":"ID3D12Resource","TargetKind":"Com","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":["In"]} + ,{"Name":"Subresource","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"pData","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Int32"}},"Attrs":["Out"]} + ] + } + ,{ + "Name":"GetGBVResourceUniformState" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"pResource","Type":{"Kind":"ApiRef","Name":"ID3D12Resource","TargetKind":"Com","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":["In"]} + ,{"Name":"pData","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Int32"}},"Attrs":["Out"]} + ] + } + ,{ + "Name":"GetGBVResourceInfo" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"pResource","Type":{"Kind":"ApiRef","Name":"ID3D12Resource","TargetKind":"Com","Api":"Graphics.Direct3D12","Parents":[]},"Attrs":["In"]} + ,{"Name":"pResourceDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D3D12_RESOURCE_DESC","TargetKind":"Default","Api":"Graphics.Direct3D12","Parents":[]}},"Attrs":["In","Optional"]} + ,{"Name":"pResourceHash","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["In","Optional"]} + ,{"Name":"pSubresourceStatesByteOffset","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["In","Optional"]} + ] + } + ,{ + "Name":"GBVReserved0" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"Void"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + ] + } + ,{ + "Name":"GBVReserved1" + ,"SetLastError":false + ,"ReturnType":{"Kind":"Native","Name":"Void"} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ ] } ] @@ -16681,6 +17873,7 @@ ,{"Name":"D3D12_SHVER_CALLABLE_SHADER","Value":12} ,{"Name":"D3D12_SHVER_MESH_SHADER","Value":13} ,{"Name":"D3D12_SHVER_AMPLIFICATION_SHADER","Value":14} + ,{"Name":"D3D12_SHVER_NODE_SHADER","Value":15} ,{"Name":"D3D12_SHVER_RESERVED0","Value":65520} ] ,"IntegerBase":"Int32" diff --git a/src/Generator/win32json/api/Graphics.Direct3D9.json b/src/Generator/win32json/api/Graphics.Direct3D9.json index 46ac27d..02dc987 100644 --- a/src/Generator/win32json/api/Graphics.Direct3D9.json +++ b/src/Generator/win32json/api/Graphics.Direct3D9.json @@ -10715,21 +10715,6 @@ ,"NestedTypes":[ ] } - ,{ - "Name":"_Anonymous3_e__Union" - ,"Architectures":[] - ,"Platform":null - ,"Kind":"Union" - ,"Size":0 - ,"PackingSize":0 - ,"SizeField":"" - ,"Fields":[ - {"Name":"hz","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ,{"Name":"dvHZ","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ] - ,"NestedTypes":[ - ] - } ,{ "Name":"_Anonymous1_e__Union" ,"Architectures":[] @@ -10745,6 +10730,21 @@ ,"NestedTypes":[ ] } + ,{ + "Name":"_Anonymous3_e__Union" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Union" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"hz","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"dvHZ","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } ] } ,{ @@ -10827,7 +10827,7 @@ ] } ,{ - "Name":"_Anonymous8_e__Union" + "Name":"_Anonymous6_e__Union" ,"Architectures":[] ,"Platform":null ,"Kind":"Union" @@ -10835,23 +10835,8 @@ ,"PackingSize":0 ,"SizeField":"" ,"Fields":[ - {"Name":"tv","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ,{"Name":"dvTV","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ] - ,"NestedTypes":[ - ] - } - ,{ - "Name":"_Anonymous4_e__Union" - ,"Architectures":[] - ,"Platform":null - ,"Kind":"Union" - ,"Size":0 - ,"PackingSize":0 - ,"SizeField":"" - ,"Fields":[ - {"Name":"rhw","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ,{"Name":"dvRHW","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + {"Name":"specular","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"dcSpecular","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} ] ,"NestedTypes":[ ] @@ -10872,7 +10857,7 @@ ] } ,{ - "Name":"_Anonymous6_e__Union" + "Name":"_Anonymous4_e__Union" ,"Architectures":[] ,"Platform":null ,"Kind":"Union" @@ -10880,8 +10865,23 @@ ,"PackingSize":0 ,"SizeField":"" ,"Fields":[ - {"Name":"specular","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} - ,{"Name":"dcSpecular","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + {"Name":"rhw","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"dvRHW","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"_Anonymous8_e__Union" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Union" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"tv","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"dvTV","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} ] ,"NestedTypes":[ ] @@ -10968,7 +10968,7 @@ ] } ,{ - "Name":"_Anonymous4_e__Union" + "Name":"_Anonymous6_e__Union" ,"Architectures":[] ,"Platform":null ,"Kind":"Union" @@ -10976,8 +10976,8 @@ ,"PackingSize":0 ,"SizeField":"" ,"Fields":[ - {"Name":"color","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} - ,{"Name":"dcColor","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + {"Name":"tu","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"dvTU","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} ] ,"NestedTypes":[ ] @@ -10998,7 +10998,7 @@ ] } ,{ - "Name":"_Anonymous6_e__Union" + "Name":"_Anonymous4_e__Union" ,"Architectures":[] ,"Platform":null ,"Kind":"Union" @@ -11006,8 +11006,8 @@ ,"PackingSize":0 ,"SizeField":"" ,"Fields":[ - {"Name":"tu","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ,{"Name":"dvTU","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + {"Name":"color","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"dcColor","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} ] ,"NestedTypes":[ ] @@ -11093,6 +11093,36 @@ ,"NestedTypes":[ ] } + ,{ + "Name":"_Anonymous7_e__Union" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Union" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"tu","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"dvTU","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"_Anonymous3_e__Union" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Union" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"z","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"dvZ","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } ,{ "Name":"_Anonymous5_e__Union" ,"Architectures":[] @@ -11123,36 +11153,6 @@ ,"NestedTypes":[ ] } - ,{ - "Name":"_Anonymous3_e__Union" - ,"Architectures":[] - ,"Platform":null - ,"Kind":"Union" - ,"Size":0 - ,"PackingSize":0 - ,"SizeField":"" - ,"Fields":[ - {"Name":"z","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ,{"Name":"dvZ","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ] - ,"NestedTypes":[ - ] - } - ,{ - "Name":"_Anonymous7_e__Union" - ,"Architectures":[] - ,"Platform":null - ,"Kind":"Union" - ,"Size":0 - ,"PackingSize":0 - ,"SizeField":"" - ,"Fields":[ - {"Name":"tu","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ,{"Name":"dvTU","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} - ] - ,"NestedTypes":[ - ] - } ] } ,{ @@ -11309,6 +11309,21 @@ ,"NestedTypes":[ ] } + ,{ + "Name":"_Anonymous3_e__Union" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Union" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"specular","Type":{"Kind":"ApiRef","Name":"D3DCOLORVALUE","TargetKind":"Default","Api":"Graphics.Direct3D9","Parents":[]},"Attrs":[]} + ,{"Name":"dcvSpecular","Type":{"Kind":"ApiRef","Name":"D3DCOLORVALUE","TargetKind":"Default","Api":"Graphics.Direct3D9","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } ,{ "Name":"_Anonymous5_e__Union" ,"Architectures":[] @@ -11339,21 +11354,6 @@ ,"NestedTypes":[ ] } - ,{ - "Name":"_Anonymous3_e__Union" - ,"Architectures":[] - ,"Platform":null - ,"Kind":"Union" - ,"Size":0 - ,"PackingSize":0 - ,"SizeField":"" - ,"Fields":[ - {"Name":"specular","Type":{"Kind":"ApiRef","Name":"D3DCOLORVALUE","TargetKind":"Default","Api":"Graphics.Direct3D9","Parents":[]},"Attrs":[]} - ,{"Name":"dcvSpecular","Type":{"Kind":"ApiRef","Name":"D3DCOLORVALUE","TargetKind":"Default","Api":"Graphics.Direct3D9","Parents":[]},"Attrs":[]} - ] - ,"NestedTypes":[ - ] - } ] } ,{ @@ -11417,21 +11417,6 @@ ,"NestedTypes":[ ] } - ,{ - "Name":"_Anonymous4_e__Union" - ,"Architectures":[] - ,"Platform":null - ,"Kind":"Union" - ,"Size":0 - ,"PackingSize":0 - ,"SizeField":"" - ,"Fields":[ - {"Name":"emissive","Type":{"Kind":"ApiRef","Name":"D3DCOLORVALUE","TargetKind":"Default","Api":"Graphics.Direct3D9","Parents":[]},"Attrs":[]} - ,{"Name":"dcvEmissive","Type":{"Kind":"ApiRef","Name":"D3DCOLORVALUE","TargetKind":"Default","Api":"Graphics.Direct3D9","Parents":[]},"Attrs":[]} - ] - ,"NestedTypes":[ - ] - } ,{ "Name":"_Anonymous2_e__Union" ,"Architectures":[] @@ -11447,6 +11432,21 @@ ,"NestedTypes":[ ] } + ,{ + "Name":"_Anonymous4_e__Union" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Union" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"emissive","Type":{"Kind":"ApiRef","Name":"D3DCOLORVALUE","TargetKind":"Default","Api":"Graphics.Direct3D9","Parents":[]},"Attrs":[]} + ,{"Name":"dcvEmissive","Type":{"Kind":"ApiRef","Name":"D3DCOLORVALUE","TargetKind":"Default","Api":"Graphics.Direct3D9","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } ] } ,{ @@ -11868,21 +11868,6 @@ ,"NestedTypes":[ ] } - ,{ - "Name":"_Anonymous1_e__Union" - ,"Architectures":[] - ,"Platform":null - ,"Kind":"Union" - ,"Size":0 - ,"PackingSize":0 - ,"SizeField":"" - ,"Fields":[ - {"Name":"v1","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]} - ,{"Name":"wV1","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]} - ] - ,"NestedTypes":[ - ] - } ,{ "Name":"_Anonymous3_e__Union" ,"Architectures":[] @@ -11898,6 +11883,21 @@ ,"NestedTypes":[ ] } + ,{ + "Name":"_Anonymous1_e__Union" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Union" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"v1","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]} + ,{"Name":"wV1","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } ] } ,{ diff --git a/src/Generator/win32json/api/Graphics.DirectComposition.json b/src/Generator/win32json/api/Graphics.DirectComposition.json index 2412a70..f265d03 100644 --- a/src/Generator/win32json/api/Graphics.DirectComposition.json +++ b/src/Generator/win32json/api/Graphics.DirectComposition.json @@ -4429,6 +4429,102 @@ } ] } + ,{ + "Name":"IDCompositionTexture" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"929bb1aa-725f-433b-abd7-273075a835f2" + ,"Interface":{"Kind":"ApiRef","Name":"IUnknown","TargetKind":"Com","Api":"System.Com","Parents":[]} + ,"Methods":[ + { + "Name":"SetSourceRect" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"sourceRect","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D2D_RECT_U","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]}},"Attrs":["In","Const"]} + ] + } + ,{ + "Name":"SetColorSpace" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"colorSpace","Type":{"Kind":"ApiRef","Name":"DXGI_COLOR_SPACE_TYPE","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]},"Attrs":["In"]} + ] + } + ,{ + "Name":"SetAlphaMode" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"alphaMode","Type":{"Kind":"ApiRef","Name":"DXGI_ALPHA_MODE","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]},"Attrs":["In"]} + ] + } + ,{ + "Name":"GetAvailableFence" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"fenceValue","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt64"}},"Attrs":["Out"]} + ,{"Name":"iid","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Guid"}},"Attrs":["In","Const"]} + ,{"Name":"availableFence","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}}},"Attrs":["Out"]} + ] + } + ] + } + ,{ + "Name":"IDCompositionDevice4" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"85fc5cca-2da6-494c-86b6-4a775c049b8a" + ,"Interface":{"Kind":"ApiRef","Name":"IDCompositionDevice3","TargetKind":"Com","Api":"Graphics.DirectComposition","Parents":[]} + ,"Methods":[ + { + "Name":"CheckCompositionTextureSupport" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"renderingDevice","Type":{"Kind":"ApiRef","Name":"IUnknown","TargetKind":"Com","Api":"System.Com","Parents":[]},"Attrs":["In"]} + ,{"Name":"supportsCompositionTextures","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Out"]} + ] + } + ,{ + "Name":"CreateCompositionTexture" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"d3dTexture","Type":{"Kind":"ApiRef","Name":"IUnknown","TargetKind":"Com","Api":"System.Com","Parents":[]},"Attrs":["In"]} + ,{"Name":"compositionTexture","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"IDCompositionTexture","TargetKind":"Com","Api":"Graphics.DirectComposition","Parents":[]}},"Attrs":["Out"]} + ] + } + ] + } ] ,"Functions":[ diff --git a/src/Generator/win32json/api/Graphics.DirectWrite.json b/src/Generator/win32json/api/Graphics.DirectWrite.json index a0d9cc3..b39460d 100644 --- a/src/Generator/win32json/api/Graphics.DirectWrite.json +++ b/src/Generator/win32json/api/Graphics.DirectWrite.json @@ -57,6 +57,13 @@ ,"Value":5 ,"Attrs":[] } + ,{ + "Name":"DWRITE_NO_PALETTE_INDEX" + ,"Type":{"Kind":"Native","Name":"UInt32"} + ,"ValueType":"UInt32" + ,"Value":65535 + ,"Attrs":[] + } ] ,"Types":[ @@ -124,6 +131,7 @@ ,{"Name":"DWRITE_GLYPH_IMAGE_FORMATS_JPEG","Value":32} ,{"Name":"DWRITE_GLYPH_IMAGE_FORMATS_TIFF","Value":64} ,{"Name":"DWRITE_GLYPH_IMAGE_FORMATS_PREMULTIPLIED_B8G8R8A8","Value":128} + ,{"Name":"DWRITE_GLYPH_IMAGE_FORMATS_COLR_PAINT_TREE","Value":256} ] ,"IntegerBase":"Int32" } @@ -9168,6 +9176,574 @@ } ] } + ,{ + "Name":"DWRITE_BITMAP_DATA_BGRA32" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"width","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"height","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"pixels","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"IDWriteBitmapRenderTarget2" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"c553a742-fc01-44da-a66e-b8b9ed6c3995" + ,"Interface":{"Kind":"ApiRef","Name":"IDWriteBitmapRenderTarget1","TargetKind":"Com","Api":"Graphics.DirectWrite","Parents":[]} + ,"Methods":[ + { + "Name":"GetBitmapData" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"bitmapData","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_BITMAP_DATA_BGRA32","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["Out"]} + ] + } + ] + } + ,{ + "Name":"DWRITE_PAINT_FEATURE_LEVEL" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":false + ,"Scoped":false + ,"Values":[ + {"Name":"DWRITE_PAINT_FEATURE_LEVEL_NONE","Value":0} + ,{"Name":"DWRITE_PAINT_FEATURE_LEVEL_COLR_V0","Value":1} + ,{"Name":"DWRITE_PAINT_FEATURE_LEVEL_COLR_V1","Value":2} + ] + ,"IntegerBase":"Int32" + } + ,{ + "Name":"DWRITE_PAINT_ATTRIBUTES" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":true + ,"Scoped":false + ,"Values":[ + {"Name":"DWRITE_PAINT_ATTRIBUTES_NONE","Value":0} + ,{"Name":"DWRITE_PAINT_ATTRIBUTES_USES_PALETTE","Value":1} + ,{"Name":"DWRITE_PAINT_ATTRIBUTES_USES_TEXT_COLOR","Value":2} + ] + ,"IntegerBase":"Int32" + } + ,{ + "Name":"DWRITE_PAINT_COLOR" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"value","Type":{"Kind":"ApiRef","Name":"DWRITE_COLOR_F","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":[]} + ,{"Name":"paletteEntryIndex","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]} + ,{"Name":"alphaMultiplier","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"colorAttributes","Type":{"Kind":"ApiRef","Name":"DWRITE_PAINT_ATTRIBUTES","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"DWRITE_COLOR_COMPOSITE_MODE" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":false + ,"Scoped":false + ,"Values":[ + {"Name":"DWRITE_COLOR_COMPOSITE_CLEAR","Value":0} + ,{"Name":"DWRITE_COLOR_COMPOSITE_SRC","Value":1} + ,{"Name":"DWRITE_COLOR_COMPOSITE_DEST","Value":2} + ,{"Name":"DWRITE_COLOR_COMPOSITE_SRC_OVER","Value":3} + ,{"Name":"DWRITE_COLOR_COMPOSITE_DEST_OVER","Value":4} + ,{"Name":"DWRITE_COLOR_COMPOSITE_SRC_IN","Value":5} + ,{"Name":"DWRITE_COLOR_COMPOSITE_DEST_IN","Value":6} + ,{"Name":"DWRITE_COLOR_COMPOSITE_SRC_OUT","Value":7} + ,{"Name":"DWRITE_COLOR_COMPOSITE_DEST_OUT","Value":8} + ,{"Name":"DWRITE_COLOR_COMPOSITE_SRC_ATOP","Value":9} + ,{"Name":"DWRITE_COLOR_COMPOSITE_DEST_ATOP","Value":10} + ,{"Name":"DWRITE_COLOR_COMPOSITE_XOR","Value":11} + ,{"Name":"DWRITE_COLOR_COMPOSITE_PLUS","Value":12} + ,{"Name":"DWRITE_COLOR_COMPOSITE_SCREEN","Value":13} + ,{"Name":"DWRITE_COLOR_COMPOSITE_OVERLAY","Value":14} + ,{"Name":"DWRITE_COLOR_COMPOSITE_DARKEN","Value":15} + ,{"Name":"DWRITE_COLOR_COMPOSITE_LIGHTEN","Value":16} + ,{"Name":"DWRITE_COLOR_COMPOSITE_COLOR_DODGE","Value":17} + ,{"Name":"DWRITE_COLOR_COMPOSITE_COLOR_BURN","Value":18} + ,{"Name":"DWRITE_COLOR_COMPOSITE_HARD_LIGHT","Value":19} + ,{"Name":"DWRITE_COLOR_COMPOSITE_SOFT_LIGHT","Value":20} + ,{"Name":"DWRITE_COLOR_COMPOSITE_DIFFERENCE","Value":21} + ,{"Name":"DWRITE_COLOR_COMPOSITE_EXCLUSION","Value":22} + ,{"Name":"DWRITE_COLOR_COMPOSITE_MULTIPLY","Value":23} + ,{"Name":"DWRITE_COLOR_COMPOSITE_HSL_HUE","Value":24} + ,{"Name":"DWRITE_COLOR_COMPOSITE_HSL_SATURATION","Value":25} + ,{"Name":"DWRITE_COLOR_COMPOSITE_HSL_COLOR","Value":26} + ,{"Name":"DWRITE_COLOR_COMPOSITE_HSL_LUMINOSITY","Value":27} + ] + ,"IntegerBase":"Int32" + } + ,{ + "Name":"DWRITE_PAINT_TYPE" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":false + ,"Scoped":false + ,"Values":[ + {"Name":"DWRITE_PAINT_TYPE_NONE","Value":0} + ,{"Name":"DWRITE_PAINT_TYPE_LAYERS","Value":1} + ,{"Name":"DWRITE_PAINT_TYPE_SOLID_GLYPH","Value":2} + ,{"Name":"DWRITE_PAINT_TYPE_SOLID","Value":3} + ,{"Name":"DWRITE_PAINT_TYPE_LINEAR_GRADIENT","Value":4} + ,{"Name":"DWRITE_PAINT_TYPE_RADIAL_GRADIENT","Value":5} + ,{"Name":"DWRITE_PAINT_TYPE_SWEEP_GRADIENT","Value":6} + ,{"Name":"DWRITE_PAINT_TYPE_GLYPH","Value":7} + ,{"Name":"DWRITE_PAINT_TYPE_COLOR_GLYPH","Value":8} + ,{"Name":"DWRITE_PAINT_TYPE_TRANSFORM","Value":9} + ,{"Name":"DWRITE_PAINT_TYPE_COMPOSITE","Value":10} + ] + ,"IntegerBase":"Int32" + } + ,{ + "Name":"DWRITE_PAINT_ELEMENT" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"paintType","Type":{"Kind":"ApiRef","Name":"DWRITE_PAINT_TYPE","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":[]} + ,{"Name":"paint","Type":{"Kind":"ApiRef","Name":"PAINT_UNION","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + { + "Name":"PAINT_UNION" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Union" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"layers","Type":{"Kind":"ApiRef","Name":"PAINT_LAYERS","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":["PAINT_UNION"]},"Attrs":[]} + ,{"Name":"solidGlyph","Type":{"Kind":"ApiRef","Name":"PAINT_SOLID_GLYPH","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":["PAINT_UNION"]},"Attrs":[]} + ,{"Name":"solid","Type":{"Kind":"ApiRef","Name":"DWRITE_PAINT_COLOR","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":[]} + ,{"Name":"linearGradient","Type":{"Kind":"ApiRef","Name":"PAINT_LINEAR_GRADIENT","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":["PAINT_UNION"]},"Attrs":[]} + ,{"Name":"radialGradient","Type":{"Kind":"ApiRef","Name":"PAINT_RADIAL_GRADIENT","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":["PAINT_UNION"]},"Attrs":[]} + ,{"Name":"sweepGradient","Type":{"Kind":"ApiRef","Name":"PAINT_SWEEP_GRADIENT","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":["PAINT_UNION"]},"Attrs":[]} + ,{"Name":"glyph","Type":{"Kind":"ApiRef","Name":"PAINT_GLYPH","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":["PAINT_UNION"]},"Attrs":[]} + ,{"Name":"colorGlyph","Type":{"Kind":"ApiRef","Name":"PAINT_COLOR_GLYPH","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":["PAINT_UNION"]},"Attrs":[]} + ,{"Name":"transform","Type":{"Kind":"ApiRef","Name":"DWRITE_MATRIX","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":[]} + ,{"Name":"composite","Type":{"Kind":"ApiRef","Name":"PAINT_COMPOSITE","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":["PAINT_UNION"]},"Attrs":[]} + ] + ,"NestedTypes":[ + { + "Name":"PAINT_COMPOSITE" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"mode","Type":{"Kind":"ApiRef","Name":"DWRITE_COLOR_COMPOSITE_MODE","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"PAINT_GLYPH" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"glyphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"PAINT_RADIAL_GRADIENT" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"extendMode","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"gradientStopCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"x0","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"y0","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"radius0","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"x1","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"y1","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"radius1","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"PAINT_SOLID_GLYPH" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"glyphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"color","Type":{"Kind":"ApiRef","Name":"DWRITE_PAINT_COLOR","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"PAINT_COLOR_GLYPH" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"glyphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"clipBox","Type":{"Kind":"ApiRef","Name":"D2D_RECT_F","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"PAINT_LINEAR_GRADIENT" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"extendMode","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"gradientStopCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"x0","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"y0","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"x1","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"y1","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"x2","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"y2","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"PAINT_LAYERS" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"childCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"PAINT_SWEEP_GRADIENT" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + {"Name":"extendMode","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"gradientStopCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"centerX","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"centerY","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"startAngle","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ,{"Name":"endAngle","Type":{"Kind":"Native","Name":"Single"},"Attrs":[]} + ] + ,"NestedTypes":[ + ] + } + ] + } + ] + } + ,{ + "Name":"IDWritePaintReader" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"8128e912-3b97-42a5-ab6c-24aad3a86e54" + ,"Interface":{"Kind":"ApiRef","Name":"IUnknown","TargetKind":"Com","Api":"System.Com","Parents":[]} + ,"Methods":[ + { + "Name":"SetCurrentGlyph" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"glyphIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"paintElement","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_PAINT_ELEMENT","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["Out",{"Kind":"MemorySize","BytesParamIndex":2}]} + ,{"Name":"structSize","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"clipBox","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"D2D_RECT_F","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]}},"Attrs":["Out"]} + ,{"Name":"glyphAttributes","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_PAINT_ATTRIBUTES","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["Out","Optional"]} + ] + } + ,{ + "Name":"SetTextColor" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"textColor","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_COLOR_F","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["In","Const"]} + ] + } + ,{ + "Name":"SetColorPaletteIndex" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"colorPaletteIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ,{ + "Name":"SetCustomColorPalette" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"paletteEntries","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":1,"Child":{"Kind":"ApiRef","Name":"DWRITE_COLOR_F","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["In","Const"]} + ,{"Name":"paletteEntryCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ,{ + "Name":"MoveToFirstChild" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"paintElement","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_PAINT_ELEMENT","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["Out",{"Kind":"MemorySize","BytesParamIndex":1}]} + ,{"Name":"structSize","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ,{ + "Name":"MoveToNextSibling" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"paintElement","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_PAINT_ELEMENT","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["Out",{"Kind":"MemorySize","BytesParamIndex":1}]} + ,{"Name":"structSize","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ] + } + ,{ + "Name":"MoveToParent" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + ] + } + ,{ + "Name":"GetGradientStops" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"firstGradientStopIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"gradientStopCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"gradientStops","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":1,"Child":{"Kind":"ApiRef","Name":"D2D1_GRADIENT_STOP","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]}},"Attrs":["Out"]} + ] + } + ,{ + "Name":"GetGradientStopColors" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"firstGradientStopIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"gradientStopCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"gradientStopColors","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":1,"Child":{"Kind":"ApiRef","Name":"DWRITE_PAINT_COLOR","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["Out"]} + ] + } + ] + } + ,{ + "Name":"IDWriteFontFace7" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"3945b85b-bc95-40f7-b72c-8b73bfc7e13b" + ,"Interface":{"Kind":"ApiRef","Name":"IDWriteFontFace6","TargetKind":"Com","Api":"Graphics.DirectWrite","Parents":[]} + ,"Methods":[ + { + "Name":"GetPaintFeatureLevel" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"DWRITE_PAINT_FEATURE_LEVEL","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"glyphImageFormat","Type":{"Kind":"ApiRef","Name":"DWRITE_GLYPH_IMAGE_FORMATS","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":["In"]} + ] + } + ,{ + "Name":"CreatePaintReader" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"glyphImageFormat","Type":{"Kind":"ApiRef","Name":"DWRITE_GLYPH_IMAGE_FORMATS","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":["In"]} + ,{"Name":"paintFeatureLevel","Type":{"Kind":"ApiRef","Name":"DWRITE_PAINT_FEATURE_LEVEL","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":["In"]} + ,{"Name":"paintReader","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"IDWritePaintReader","TargetKind":"Com","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["Out","ComOutPtr"]} + ] + } + ] + } + ,{ + "Name":"IDWriteFactory8" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"ee0a7fb5-def4-4c23-a454-c9c7dc878398" + ,"Interface":{"Kind":"ApiRef","Name":"IDWriteFactory7","TargetKind":"Com","Api":"Graphics.DirectWrite","Parents":[]} + ,"Methods":[ + { + "Name":"TranslateColorGlyphRun" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"baselineOrigin","Type":{"Kind":"ApiRef","Name":"D2D_POINT_2F","TargetKind":"Default","Api":"Graphics.Direct2D.Common","Parents":[]},"Attrs":["In"]} + ,{"Name":"glyphRun","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_GLYPH_RUN","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["In","Const"]} + ,{"Name":"glyphRunDescription","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_GLYPH_RUN_DESCRIPTION","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["In","Optional","Const"]} + ,{"Name":"desiredGlyphImageFormats","Type":{"Kind":"ApiRef","Name":"DWRITE_GLYPH_IMAGE_FORMATS","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":["In"]} + ,{"Name":"paintFeatureLevel","Type":{"Kind":"ApiRef","Name":"DWRITE_PAINT_FEATURE_LEVEL","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":["In"]} + ,{"Name":"measuringMode","Type":{"Kind":"ApiRef","Name":"DWRITE_MEASURING_MODE","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":["In"]} + ,{"Name":"worldAndDpiTransform","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_MATRIX","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["In","Optional","Const"]} + ,{"Name":"colorPaletteIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"colorEnumerator","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"IDWriteColorGlyphRunEnumerator1","TargetKind":"Com","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["Out","ComOutPtr"]} + ] + } + ] + } + ,{ + "Name":"IDWriteBitmapRenderTarget3" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Com" + ,"Guid":"aeec37db-c337-40f1-8e2a-9a41b167b238" + ,"Interface":{"Kind":"ApiRef","Name":"IDWriteBitmapRenderTarget2","TargetKind":"Com","Api":"Graphics.DirectWrite","Parents":[]} + ,"Methods":[ + { + "Name":"GetPaintFeatureLevel" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"DWRITE_PAINT_FEATURE_LEVEL","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + ] + } + ,{ + "Name":"DrawPaintGlyphRun" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"baselineOriginX","Type":{"Kind":"Native","Name":"Single"},"Attrs":["In"]} + ,{"Name":"baselineOriginY","Type":{"Kind":"Native","Name":"Single"},"Attrs":["In"]} + ,{"Name":"measuringMode","Type":{"Kind":"ApiRef","Name":"DWRITE_MEASURING_MODE","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":["In"]} + ,{"Name":"glyphRun","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_GLYPH_RUN","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["In","Const"]} + ,{"Name":"glyphImageFormat","Type":{"Kind":"ApiRef","Name":"DWRITE_GLYPH_IMAGE_FORMATS","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":["In"]} + ,{"Name":"textColor","Type":{"Kind":"ApiRef","Name":"COLORREF","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In"]} + ,{"Name":"colorPaletteIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"blackBoxRect","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"RECT","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Out","Optional"]} + ] + } + ,{ + "Name":"DrawGlyphRunWithColorSupport" + ,"SetLastError":false + ,"ReturnType":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} + ,"ReturnAttrs":[] + ,"Architectures":[] + ,"Platform":null + ,"Attrs":[] + ,"Params":[ + {"Name":"baselineOriginX","Type":{"Kind":"Native","Name":"Single"},"Attrs":["In"]} + ,{"Name":"baselineOriginY","Type":{"Kind":"Native","Name":"Single"},"Attrs":["In"]} + ,{"Name":"measuringMode","Type":{"Kind":"ApiRef","Name":"DWRITE_MEASURING_MODE","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":["In"]} + ,{"Name":"glyphRun","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DWRITE_GLYPH_RUN","TargetKind":"Default","Api":"Graphics.DirectWrite","Parents":[]}},"Attrs":["In","Const"]} + ,{"Name":"renderingParams","Type":{"Kind":"ApiRef","Name":"IDWriteRenderingParams","TargetKind":"Com","Api":"Graphics.DirectWrite","Parents":[]},"Attrs":["In"]} + ,{"Name":"textColor","Type":{"Kind":"ApiRef","Name":"COLORREF","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In"]} + ,{"Name":"colorPaletteIndex","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"blackBoxRect","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"RECT","TargetKind":"Default","Api":"Foundation","Parents":[]}},"Attrs":["Out","Optional"]} + ] + } + ] + } ] ,"Functions":[ diff --git a/src/Generator/win32json/api/Graphics.Dxgi.json b/src/Generator/win32json/api/Graphics.Dxgi.json index 51a6f59..6645c87 100644 --- a/src/Generator/win32json/api/Graphics.Dxgi.json +++ b/src/Generator/win32json/api/Graphics.Dxgi.json @@ -2,201 +2,12 @@ "Constants":[ { - "Name":"DXGI_RESOURCE_PRIORITY_MINIMUM" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":671088640 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_RESOURCE_PRIORITY_LOW" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":1342177280 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_RESOURCE_PRIORITY_NORMAL" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":2013265920 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_RESOURCE_PRIORITY_HIGH" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":2684354560 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_RESOURCE_PRIORITY_MAXIMUM" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":3355443200 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_MAP_READ" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":1 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_MAP_WRITE" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":2 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_MAP_DISCARD" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":4 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_ENUM_MODES_INTERLACED" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":1 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_ENUM_MODES_SCALING" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":2 - ,"Attrs":[] - } - ,{ "Name":"DXGI_MAX_SWAP_CHAIN_BUFFERS" ,"Type":{"Kind":"Native","Name":"UInt32"} ,"ValueType":"UInt32" ,"Value":16 ,"Attrs":[] } - ,{ - "Name":"DXGI_PRESENT_TEST" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":1 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_PRESENT_DO_NOT_SEQUENCE" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":2 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_PRESENT_RESTART" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":4 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_PRESENT_DO_NOT_WAIT" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":8 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_PRESENT_STEREO_PREFER_RIGHT" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":16 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_PRESENT_STEREO_TEMPORARY_MONO" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":32 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_PRESENT_RESTRICT_TO_OUTPUT" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":64 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_PRESENT_USE_DURATION" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":256 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_PRESENT_ALLOW_TEARING" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":512 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_MWA_NO_WINDOW_CHANGES" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":1 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_MWA_NO_ALT_ENTER" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":2 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_MWA_NO_PRINT_SCREEN" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":4 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_MWA_VALID" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":7 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_ENUM_MODES_STEREO" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":4 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_ENUM_MODES_DISABLED_STEREO" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":8 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_SHARED_RESOURCE_READ" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":2147483648 - ,"Attrs":[] - } - ,{ - "Name":"DXGI_SHARED_RESOURCE_WRITE" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":1 - ,"Attrs":[] - } ,{ "Name":"DXGI_DEBUG_BINARY_VERSION" ,"Type":{"Kind":"Native","Name":"UInt32"} @@ -246,13 +57,6 @@ ,"Value":1024 ,"Attrs":[] } - ,{ - "Name":"DXGI_CREATE_FACTORY_DEBUG" - ,"Type":{"Kind":"Native","Name":"UInt32"} - ,"ValueType":"UInt32" - ,"Value":1 - ,"Attrs":[] - } ,{ "Name":"DXGI_ERROR_INVALID_CALL" ,"Type":{"Kind":"ApiRef","Name":"HRESULT","TargetKind":"Default","Api":"Foundation","Parents":[]} @@ -522,6 +326,111 @@ ] ,"IntegerBase":"UInt32" } + ,{ + "Name":"DXGI_PRESENT" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":true + ,"Scoped":false + ,"Values":[ + {"Name":"DXGI_PRESENT_TEST","Value":1} + ,{"Name":"DXGI_PRESENT_DO_NOT_SEQUENCE","Value":2} + ,{"Name":"DXGI_PRESENT_RESTART","Value":4} + ,{"Name":"DXGI_PRESENT_DO_NOT_WAIT","Value":8} + ,{"Name":"DXGI_PRESENT_STEREO_PREFER_RIGHT","Value":16} + ,{"Name":"DXGI_PRESENT_STEREO_TEMPORARY_MONO","Value":32} + ,{"Name":"DXGI_PRESENT_RESTRICT_TO_OUTPUT","Value":64} + ,{"Name":"DXGI_PRESENT_USE_DURATION","Value":256} + ,{"Name":"DXGI_PRESENT_ALLOW_TEARING","Value":512} + ] + ,"IntegerBase":"UInt32" + } + ,{ + "Name":"DXGI_ENUM_MODES" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":true + ,"Scoped":false + ,"Values":[ + {"Name":"DXGI_ENUM_MODES_INTERLACED","Value":1} + ,{"Name":"DXGI_ENUM_MODES_SCALING","Value":2} + ,{"Name":"DXGI_ENUM_MODES_STEREO","Value":4} + ,{"Name":"DXGI_ENUM_MODES_DISABLED_STEREO","Value":8} + ] + ,"IntegerBase":"UInt32" + } + ,{ + "Name":"DXGI_MWA_FLAGS" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":true + ,"Scoped":false + ,"Values":[ + {"Name":"DXGI_MWA_NO_WINDOW_CHANGES","Value":1} + ,{"Name":"DXGI_MWA_NO_ALT_ENTER","Value":2} + ,{"Name":"DXGI_MWA_NO_PRINT_SCREEN","Value":4} + ,{"Name":"DXGI_MWA_VALID","Value":7} + ] + ,"IntegerBase":"UInt32" + } + ,{ + "Name":"DXGI_MAP_FLAGS" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":true + ,"Scoped":false + ,"Values":[ + {"Name":"DXGI_MAP_READ","Value":1} + ,{"Name":"DXGI_MAP_WRITE","Value":2} + ,{"Name":"DXGI_MAP_DISCARD","Value":4} + ] + ,"IntegerBase":"UInt32" + } + ,{ + "Name":"DXGI_RESOURCE_PRIORITY" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":false + ,"Scoped":false + ,"Values":[ + {"Name":"DXGI_RESOURCE_PRIORITY_MINIMUM","Value":671088640} + ,{"Name":"DXGI_RESOURCE_PRIORITY_LOW","Value":1342177280} + ,{"Name":"DXGI_RESOURCE_PRIORITY_NORMAL","Value":2013265920} + ,{"Name":"DXGI_RESOURCE_PRIORITY_HIGH","Value":2684354560} + ,{"Name":"DXGI_RESOURCE_PRIORITY_MAXIMUM","Value":3355443200} + ] + ,"IntegerBase":"UInt32" + } + ,{ + "Name":"DXGI_SHARED_RESOURCE_RW" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":true + ,"Scoped":false + ,"Values":[ + {"Name":"DXGI_SHARED_RESOURCE_READ","Value":2147483648} + ,{"Name":"DXGI_SHARED_RESOURCE_WRITE","Value":1} + ] + ,"IntegerBase":"UInt32" + } + ,{ + "Name":"DXGI_CREATE_FACTORY_FLAGS" + ,"Architectures":[] + ,"Platform":null + ,"Kind":"Enum" + ,"Flags":true + ,"Scoped":false + ,"Values":[ + {"Name":"DXGI_CREATE_FACTORY_DEBUG","Value":1} + ] + ,"IntegerBase":"UInt32" + } ,{ "Name":"DXGI_FRAME_STATISTICS" ,"Architectures":[] @@ -660,7 +569,7 @@ ,"Architectures":[] ,"Platform":null ,"Kind":"Enum" - ,"Flags":false + ,"Flags":true ,"Scoped":false ,"Values":[ {"Name":"DXGI_SWAP_CHAIN_FLAG_NONPREROTATED","Value":1} @@ -695,7 +604,7 @@ ,{"Name":"OutputWindow","Type":{"Kind":"ApiRef","Name":"HWND","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} ,{"Name":"Windowed","Type":{"Kind":"ApiRef","Name":"BOOL","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} ,{"Name":"SwapEffect","Type":{"Kind":"ApiRef","Name":"DXGI_SWAP_EFFECT","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":[]} - ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[{"Kind":"AssociatedEnum","Value":"DXGI_SWAP_CHAIN_FLAG"}]} ] ,"NestedTypes":[ ] @@ -828,7 +737,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"EvictionPriority","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + {"Name":"EvictionPriority","Type":{"Kind":"ApiRef","Name":"DXGI_RESOURCE_PRIORITY","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":["In"]} ] } ,{ @@ -840,7 +749,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pEvictionPriority","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]} + {"Name":"pEvictionPriority","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_RESOURCE_PRIORITY","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} ] } ] @@ -897,7 +806,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_SURFACE_DESC","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_SURFACE_DESC","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out","RetVal"]} ] } ,{ @@ -910,7 +819,7 @@ ,"Attrs":[] ,"Params":[ {"Name":"pLockedRect","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_MAPPED_RECT","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} - ,{"Name":"MapFlags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"MapFlags","Type":{"Kind":"ApiRef","Name":"DXGI_MAP_FLAGS","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":["In"]} ] } ,{ @@ -991,7 +900,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_ADAPTER_DESC","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_ADAPTER_DESC","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out","RetVal"]} ] } ,{ @@ -1026,7 +935,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_OUTPUT_DESC","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_OUTPUT_DESC","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out","RetVal"]} ] } ,{ @@ -1039,7 +948,7 @@ ,"Attrs":[] ,"Params":[ {"Name":"EnumFormat","Type":{"Kind":"ApiRef","Name":"DXGI_FORMAT","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]},"Attrs":["In"]} - ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"Flags","Type":{"Kind":"ApiRef","Name":"DXGI_ENUM_MODES","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":["In"]} ,{"Name":"pNumModes","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["In","Out"]} ,{"Name":"pDesc","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":2,"Child":{"Kind":"ApiRef","Name":"DXGI_MODE_DESC","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]}},"Attrs":["Out","Optional"]} ] @@ -1185,7 +1094,7 @@ ,"Attrs":[] ,"Params":[ {"Name":"SyncInterval","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} - ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"Flags","Type":{"Kind":"ApiRef","Name":"DXGI_PRESENT","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":["In"]} ] } ,{ @@ -1237,7 +1146,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_SWAP_CHAIN_DESC","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_SWAP_CHAIN_DESC","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out","RetVal"]} ] } ,{ @@ -1253,7 +1162,7 @@ ,{"Name":"Width","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ,{"Name":"Height","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ,{"Name":"NewFormat","Type":{"Kind":"ApiRef","Name":"DXGI_FORMAT","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]},"Attrs":["In"]} - ,{"Name":"SwapChainFlags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"SwapChainFlags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In",{"Kind":"AssociatedEnum","Enum":"DXGI_SWAP_CHAIN_FLAG"}]} ] } ,{ @@ -1337,7 +1246,7 @@ ,"Attrs":[] ,"Params":[ {"Name":"WindowHandle","Type":{"Kind":"ApiRef","Name":"HWND","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":["In"]} - ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"Flags","Type":{"Kind":"ApiRef","Name":"DXGI_MWA_FLAGS","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":["In"]} ] } ,{ @@ -1489,7 +1398,7 @@ ,{"Name":"DedicatedSystemMemory","Type":{"Kind":"Native","Name":"UIntPtr"},"Attrs":[]} ,{"Name":"SharedSystemMemory","Type":{"Kind":"Native","Name":"UIntPtr"},"Attrs":[]} ,{"Name":"AdapterLuid","Type":{"Kind":"ApiRef","Name":"LUID","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} - ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[{"Kind":"AssociatedEnum","Value":"DXGI_ADAPTER_FLAG"}]} ] ,"NestedTypes":[ ] @@ -1560,7 +1469,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_ADAPTER_DESC1","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_ADAPTER_DESC1","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out","RetVal"]} ] } ] @@ -1748,7 +1657,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_OUTDUPL_DESC","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_OUTDUPL_DESC","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out","RetVal"]} ] } ,{ @@ -2079,7 +1988,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_SWAP_CHAIN_DESC1","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_SWAP_CHAIN_DESC1","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out","RetVal"]} ] } ,{ @@ -2091,7 +2000,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_SWAP_CHAIN_FULLSCREEN_DESC","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_SWAP_CHAIN_FULLSCREEN_DESC","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out","RetVal"]} ] } ,{ @@ -2129,7 +2038,7 @@ ,"Attrs":[] ,"Params":[ {"Name":"SyncInterval","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} - ,{"Name":"PresentFlags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"PresentFlags","Type":{"Kind":"ApiRef","Name":"DXGI_PRESENT","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":["In"]} ,{"Name":"pPresentParameters","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_PRESENT_PARAMETERS","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["In","Const"]} ] } @@ -2416,7 +2325,7 @@ ,{"Name":"DedicatedSystemMemory","Type":{"Kind":"Native","Name":"UIntPtr"},"Attrs":[]} ,{"Name":"SharedSystemMemory","Type":{"Kind":"Native","Name":"UIntPtr"},"Attrs":[]} ,{"Name":"AdapterLuid","Type":{"Kind":"ApiRef","Name":"LUID","TargetKind":"Default","Api":"Foundation","Parents":[]},"Attrs":[]} - ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[{"Kind":"AssociatedEnum","Value":"DXGI_ADAPTER_FLAG"}]} ,{"Name":"GraphicsPreemptionGranularity","Type":{"Kind":"ApiRef","Name":"DXGI_GRAPHICS_PREEMPTION_GRANULARITY","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":[]} ,{"Name":"ComputePreemptionGranularity","Type":{"Kind":"ApiRef","Name":"DXGI_COMPUTE_PREEMPTION_GRANULARITY","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":[]} ] @@ -2440,7 +2349,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_ADAPTER_DESC2","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_ADAPTER_DESC2","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out","RetVal"]} ] } ] @@ -2463,7 +2372,7 @@ ,"Attrs":[] ,"Params":[ {"Name":"EnumFormat","Type":{"Kind":"ApiRef","Name":"DXGI_FORMAT","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]},"Attrs":["In"]} - ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"Flags","Type":{"Kind":"ApiRef","Name":"DXGI_ENUM_MODES","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":["In"]} ,{"Name":"pNumModes","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["In","Out"]} ,{"Name":"pDesc","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":2,"Child":{"Kind":"ApiRef","Name":"DXGI_MODE_DESC1","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out","Optional"]} ] @@ -2676,7 +2585,7 @@ { "Name":"GetCreationFlags" ,"SetLastError":false - ,"ReturnType":{"Kind":"Native","Name":"UInt32"} + ,"ReturnType":{"Kind":"ApiRef","Name":"DXGI_CREATE_FACTORY_FLAGS","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]} ,"ReturnAttrs":[] ,"Architectures":[] ,"Platform":null @@ -2695,7 +2604,7 @@ ,"PackingSize":0 ,"SizeField":"" ,"Fields":[ - {"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]} + {"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[{"Kind":"AssociatedEnum","Value":"DXGI_SWAP_CHAIN_FLAG"}]} ] ,"NestedTypes":[ ] @@ -2705,7 +2614,7 @@ ,"Architectures":[] ,"Platform":null ,"Kind":"Enum" - ,"Flags":false + ,"Flags":true ,"Scoped":false ,"Values":[ {"Name":"DXGI_MULTIPLANE_OVERLAY_YCbCr_FLAG_NOMINAL_RANGE","Value":1} @@ -2733,7 +2642,7 @@ ,"Params":[ {"Name":"BufferToPresent","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ,{"Name":"SyncInterval","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} - ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"Flags","Type":{"Kind":"ApiRef","Name":"DXGI_PRESENT","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":["In"]} ] } ,{ @@ -2966,7 +2875,7 @@ ,"Architectures":[] ,"Platform":null ,"Kind":"Enum" - ,"Flags":false + ,"Flags":true ,"Scoped":false ,"Values":[ {"Name":"DXGI_OVERLAY_SUPPORT_FLAG_DIRECT","Value":1} @@ -2993,7 +2902,7 @@ ,"Params":[ {"Name":"EnumFormat","Type":{"Kind":"ApiRef","Name":"DXGI_FORMAT","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]},"Attrs":["In"]} ,{"Name":"pConcernedDevice","Type":{"Kind":"ApiRef","Name":"IUnknown","TargetKind":"Com","Api":"System.Com","Parents":[]},"Attrs":["In"]} - ,{"Name":"pFlags","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]} + ,{"Name":"pFlags","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out",{"Kind":"AssociatedEnum","Enum":"DXGI_OVERLAY_SUPPORT_FLAG"}]} ] } ] @@ -3003,7 +2912,7 @@ ,"Architectures":[] ,"Platform":null ,"Kind":"Enum" - ,"Flags":false + ,"Flags":true ,"Scoped":false ,"Values":[ {"Name":"DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG_PRESENT","Value":1} @@ -3040,7 +2949,7 @@ ,"Attrs":[] ,"Params":[ {"Name":"ColorSpace","Type":{"Kind":"ApiRef","Name":"DXGI_COLOR_SPACE_TYPE","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]},"Attrs":["In"]} - ,{"Name":"pColorSpaceSupport","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]} + ,{"Name":"pColorSpaceSupport","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out",{"Kind":"AssociatedEnum","Enum":"DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG"}]} ] } ,{ @@ -3068,7 +2977,7 @@ ,{"Name":"Width","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ,{"Name":"Height","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ,{"Name":"Format","Type":{"Kind":"ApiRef","Name":"DXGI_FORMAT","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]},"Attrs":["In"]} - ,{"Name":"SwapChainFlags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"SwapChainFlags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In",{"Kind":"AssociatedEnum","Enum":"DXGI_SWAP_CHAIN_FLAG"}]} ,{"Name":"pCreationNodeMask","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":0,"Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["In","Const"]} ,{"Name":"ppPresentQueue","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":0,"Child":{"Kind":"ApiRef","Name":"IUnknown","TargetKind":"Com","Api":"System.Com","Parents":[]}},"Attrs":["In"]} ] @@ -3080,7 +2989,7 @@ ,"Architectures":[] ,"Platform":null ,"Kind":"Enum" - ,"Flags":false + ,"Flags":true ,"Scoped":false ,"Values":[ {"Name":"DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG_PRESENT","Value":1} @@ -3107,7 +3016,7 @@ {"Name":"Format","Type":{"Kind":"ApiRef","Name":"DXGI_FORMAT","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]},"Attrs":["In"]} ,{"Name":"ColorSpace","Type":{"Kind":"ApiRef","Name":"DXGI_COLOR_SPACE_TYPE","TargetKind":"Default","Api":"Graphics.Dxgi.Common","Parents":[]},"Attrs":["In"]} ,{"Name":"pConcernedDevice","Type":{"Kind":"ApiRef","Name":"IUnknown","TargetKind":"Com","Api":"System.Com","Parents":[]},"Attrs":["In"]} - ,{"Name":"pFlags","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]} + ,{"Name":"pFlags","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out",{"Kind":"AssociatedEnum","Enum":"DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG"}]} ] } ] @@ -3272,7 +3181,7 @@ ,"Architectures":[] ,"Platform":null ,"Kind":"Enum" - ,"Flags":false + ,"Flags":true ,"Scoped":false ,"Values":[ {"Name":"DXGI_OUTDUPL_COMPOSITED_UI_CAPTURE_ONLY","Value":1} @@ -3383,7 +3292,7 @@ ,"Architectures":[] ,"Platform":null ,"Kind":"Enum" - ,"Flags":false + ,"Flags":true ,"Scoped":false ,"Values":[ {"Name":"DXGI_OFFER_RESOURCE_FLAG_ALLOW_DECOMMIT","Value":1} @@ -3424,7 +3333,7 @@ {"Name":"NumResources","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} ,{"Name":"ppResources","Type":{"Kind":"LPArray","NullNullTerm":false,"CountConst":-1,"CountParamIndex":0,"Child":{"Kind":"ApiRef","Name":"IDXGIResource","TargetKind":"Com","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["In"]} ,{"Name":"Priority","Type":{"Kind":"ApiRef","Name":"DXGI_OFFER_RESOURCE_PRIORITY","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":["In"]} - ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + ,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In",{"Kind":"AssociatedEnum","Enum":"DXGI_OFFER_RESOURCE_FLAGS"}]} ] } ,{ @@ -3539,7 +3448,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_ADAPTER_DESC3","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_ADAPTER_DESC3","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out","RetVal"]} ] } ] @@ -3602,7 +3511,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_OUTPUT_DESC1","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out"]} + {"Name":"pDesc","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"DXGI_OUTPUT_DESC1","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]}},"Attrs":["Out","RetVal"]} ] } ,{ @@ -3614,7 +3523,7 @@ ,"Platform":null ,"Attrs":[] ,"Params":[ - {"Name":"pFlags","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out"]} + {"Name":"pFlags","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"UInt32"}},"Attrs":["Out",{"Kind":"AssociatedEnum","Enum":"DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS"}]} ] } ] @@ -4761,7 +4670,7 @@ ,"Platform":"windows8.1" ,"Attrs":[] ,"Params":[ - {"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]} + {"Name":"Flags","Type":{"Kind":"ApiRef","Name":"DXGI_CREATE_FACTORY_FLAGS","TargetKind":"Default","Api":"Graphics.Dxgi","Parents":[]},"Attrs":["In"]} ,{"Name":"riid","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Guid"}},"Attrs":["In","Const"]} ,{"Name":"ppFactory","Type":{"Kind":"PointerTo","Child":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}}},"Attrs":["Out","ComOutPtr"]} ] diff --git a/src/Generator/win32json/api/Graphics.Gdi.json b/src/Generator/win32json/api/Graphics.Gdi.json index 70ad61d..7ff0a1b 100644 --- a/src/Generator/win32json/api/Graphics.Gdi.json +++ b/src/Generator/win32json/api/Graphics.Gdi.json @@ -1331,13 +1331,6 @@ ,"Value":0 ,"Attrs":[] } - ,{ - "Name":"LCS_CALIBRATED_RGB" - ,"Type":{"Kind":"Native","Name":"Int32"} - ,"ValueType":"Int32" - ,"Value":0 - ,"Attrs":[] - } ,{ "Name":"LCS_GM_BUSINESS" ,"Type":{"Kind":"Native","Name":"Int32"} @@ -7598,7 +7591,7 @@ ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":"HGDIOBJ" - ,"Def":{"Kind":"Native","Name":"IntPtr"} + ,"Def":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}} ,"FreeFunc":"DeleteObject" } ,{ @@ -7607,7 +7600,7 @@ ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":"HGDIOBJ" - ,"Def":{"Kind":"Native","Name":"IntPtr"} + ,"Def":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}} ,"FreeFunc":"DeleteObject" } ,{ @@ -7616,7 +7609,7 @@ ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":"HGDIOBJ" - ,"Def":{"Kind":"Native","Name":"IntPtr"} + ,"Def":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}} ,"FreeFunc":"DeleteObject" } ,{ @@ -7625,7 +7618,7 @@ ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":"HGDIOBJ" - ,"Def":{"Kind":"Native","Name":"IntPtr"} + ,"Def":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}} ,"FreeFunc":"DeleteObject" } ,{ @@ -7634,7 +7627,7 @@ ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":"HGDIOBJ" - ,"Def":{"Kind":"Native","Name":"IntPtr"} + ,"Def":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}} ,"FreeFunc":"DeleteObject" } ,{ @@ -7643,7 +7636,7 @@ ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} + ,"Def":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}} ,"FreeFunc":"DeleteMetaFile" } ,{ @@ -7652,7 +7645,7 @@ ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} + ,"Def":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}} ,"FreeFunc":"DeleteEnhMetaFile" } ,{ @@ -7661,7 +7654,7 @@ ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":"HGDIOBJ" - ,"Def":{"Kind":"Native","Name":"IntPtr"} + ,"Def":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}} ,"FreeFunc":"DeleteObject" } ,{ @@ -7670,7 +7663,7 @@ ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} + ,"Def":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}} ,"FreeFunc":null } ,{ @@ -7679,8 +7672,8 @@ ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Def":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}} + ,"FreeFunc":"DeleteObject" } ,{ "Name":"HMONITOR" @@ -7688,7 +7681,7 @@ ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} + ,"Def":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}} ,"FreeFunc":null } ,{ diff --git a/src/Generator/win32json/api/Graphics.GdiPlus.json b/src/Generator/win32json/api/Graphics.GdiPlus.json index ce78aee..a3c8d78 100644 --- a/src/Generator/win32json/api/Graphics.GdiPlus.json +++ b/src/Generator/win32json/api/Graphics.GdiPlus.json @@ -2126,225 +2126,321 @@ ,"Types":[ { - "Name":"PathData" - ,"Architectures":[] - ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null - } - ,{ "Name":"GpGraphics" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpBrush" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpTexture" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpSolidFill" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpLineGradient" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpPathGradient" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpHatch" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpPen" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpCustomLineCap" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpAdjustableArrowCap" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpImage" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpBitmap" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpMetafile" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpImageAttributes" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpPath" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpRegion" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpPathIterator" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpFontFamily" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpFont" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpStringFormat" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpFontCollection" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpInstalledFontCollection" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpPrivateFontCollection" ,"Architectures":[] ,"Platform":null - ,"Kind":"NativeTypedef" - ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} - ,"FreeFunc":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] } ,{ "Name":"GpCachedBitmap" ,"Architectures":[] ,"Platform":null + ,"Kind":"Struct" + ,"Size":0 + ,"PackingSize":0 + ,"SizeField":"" + ,"Fields":[ + ] + ,"NestedTypes":[ + ] + } + ,{ + "Name":"PathData" + ,"Architectures":[] + ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":null ,"Def":{"Kind":"Native","Name":"IntPtr"} diff --git a/src/Generator/win32json/api/Graphics.OpenGL.json b/src/Generator/win32json/api/Graphics.OpenGL.json index e3b741e..e4e9bea 100644 --- a/src/Generator/win32json/api/Graphics.OpenGL.json +++ b/src/Generator/win32json/api/Graphics.OpenGL.json @@ -4988,7 +4988,7 @@ ,"Platform":null ,"Kind":"NativeTypedef" ,"AlsoUsableFor":null - ,"Def":{"Kind":"Native","Name":"IntPtr"} + ,"Def":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Void"}} ,"FreeFunc":"wglDeleteContext" } ,{ diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/Graphics.Direct2D.Structs.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/Graphics.Direct2D.Structs.cs index bd95042..404258d 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/Graphics.Direct2D.Structs.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/Graphics.Direct2D.Structs.cs @@ -23,17 +23,6 @@ public partial struct BitmapProperties public float dpiY; } -/// -/// D2D1_GRADIENT_STOP -public partial struct GradientStop -{ - /// - public float position; - - /// - public Color4 color; -} - /// /// D2D1_BRUSH_PROPERTIES public partial struct BrushProperties diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1BitmapRenderTarget.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1BitmapRenderTarget.cs index dc7f095..8a95905 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1BitmapRenderTarget.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1BitmapRenderTarget.cs @@ -121,9 +121,9 @@ public unsafe partial struct ID2D1BitmapRenderTarget : ID2D1BitmapRenderTarget.I /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + public HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); } /// @@ -265,9 +265,9 @@ public unsafe partial struct ID2D1BitmapRenderTarget : ID2D1BitmapRenderTarget.I /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1BitmapRenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); } /// diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DCRenderTarget.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DCRenderTarget.cs index 6320116..1bf9545 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DCRenderTarget.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DCRenderTarget.cs @@ -121,9 +121,9 @@ public unsafe partial struct ID2D1DCRenderTarget : ID2D1DCRenderTarget.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + public HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); } /// @@ -265,9 +265,9 @@ public unsafe partial struct ID2D1DCRenderTarget : ID2D1DCRenderTarget.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DCRenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); } /// diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Device7.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Device7.cs new file mode 100644 index 0000000..f01e66c --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Device7.cs @@ -0,0 +1,223 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Device7 +[Guid("f07c8968-dd4e-4ba6-9cbd-eb6d3752dcbb")] +[NativeTypeName("struct ID2D1Device7 : ID2D1Device6")] +[NativeInheritance("ID2D1Device6")] +public unsafe partial struct ID2D1Device7 : ID2D1Device7.Interface, INativeGuid +{ + public static ref readonly Guid IID_ID2D1Device7 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x68, 0x89, 0x7C, 0xF0, + 0x4E, 0xDD, + 0xA6, 0x4B, + 0x9C, + 0xBD, + 0xEB, + 0x6D, + 0x37, + 0x52, + 0xDC, + 0xBB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Device7)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((ID2D1Device7*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((ID2D1Device7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((ID2D1Device7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((ID2D1Device7*)Unsafe.AsPointer(ref this), factory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext** deviceContext) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID2D1Device7*)Unsafe.AsPointer(ref this), options, deviceContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetMaximumTextureMemory(ulong maximumInBytes) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID2D1Device7*)Unsafe.AsPointer(ref this), maximumInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public ulong GetMaximumTextureMemory() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((ID2D1Device7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void ClearResources(uint millisecondsSinceUse) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((ID2D1Device7*)Unsafe.AsPointer(ref this), millisecondsSinceUse); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public RenderingPriority GetRenderingPriority() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((ID2D1Device7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public void SetRenderingPriority(RenderingPriority renderingPriority) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1Device7*)Unsafe.AsPointer(ref this), renderingPriority); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext1** deviceContext1) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((ID2D1Device7*)Unsafe.AsPointer(ref this), options, deviceContext1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext2** deviceContext2) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((ID2D1Device7*)Unsafe.AsPointer(ref this), options, deviceContext2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void FlushDeviceContexts(ID2D1Bitmap* bitmap) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[12]))((ID2D1Device7*)Unsafe.AsPointer(ref this), bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetDxgiDevice(Graphics.Dxgi.IDXGIDevice** dxgiDevice) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((ID2D1Device7*)Unsafe.AsPointer(ref this), dxgiDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext3** deviceContext3) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((ID2D1Device7*)Unsafe.AsPointer(ref this), options, deviceContext3); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext4** deviceContext4) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((ID2D1Device7*)Unsafe.AsPointer(ref this), options, deviceContext4); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void SetMaximumColorGlyphCacheMemory(ulong maximumInBytes) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((ID2D1Device7*)Unsafe.AsPointer(ref this), maximumInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public ulong GetMaximumColorGlyphCacheMemory() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((ID2D1Device7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext5** deviceContext5) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((ID2D1Device7*)Unsafe.AsPointer(ref this), options, deviceContext5); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext6** deviceContext6) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((ID2D1Device7*)Unsafe.AsPointer(ref this), options, deviceContext6); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext7** deviceContext) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[20]))((ID2D1Device7*)Unsafe.AsPointer(ref this), options, deviceContext); + } + + public interface Interface : ID2D1Device6.Interface + { + [VtblIndex(20)] + HResult CreateDeviceContext(DeviceContextOptions options, ID2D1DeviceContext7** deviceContext); + } +} + diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext.cs index e0687d4..ec9db4b 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext.cs @@ -121,9 +121,9 @@ public unsafe partial struct ID2D1DeviceContext : ID2D1DeviceContext.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + public HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); } /// @@ -265,9 +265,9 @@ public unsafe partial struct ID2D1DeviceContext : ID2D1DeviceContext.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); } /// @@ -564,9 +564,9 @@ public unsafe partial struct ID2D1DeviceContext : ID2D1DeviceContext.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(64)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + public HResult CreateGradientStopCollection(Common.GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); } /// @@ -809,7 +809,7 @@ public unsafe partial struct ID2D1DeviceContext : ID2D1DeviceContext.Interface, HResult CreateEffect(Guid* effectId, ID2D1Effect** effect); [VtblIndex(64)] - HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1); + HResult CreateGradientStopCollection(Common.GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1); [VtblIndex(65)] HResult CreateImageBrush(ID2D1Image* image, ImageBrushProperties* imageBrushProperties, BrushProperties* brushProperties, ID2D1ImageBrush** imageBrush); diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext1.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext1.cs index c41f491..0570b13 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext1.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext1.cs @@ -121,9 +121,9 @@ public unsafe partial struct ID2D1DeviceContext1 : ID2D1DeviceContext1.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + public HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); } /// @@ -265,9 +265,9 @@ public unsafe partial struct ID2D1DeviceContext1 : ID2D1DeviceContext1.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); } /// @@ -564,9 +564,9 @@ public unsafe partial struct ID2D1DeviceContext1 : ID2D1DeviceContext1.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(64)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + public HResult CreateGradientStopCollection(Common.GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext1*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); } /// diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext2.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext2.cs index a289806..f001046 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext2.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext2.cs @@ -121,9 +121,9 @@ public unsafe partial struct ID2D1DeviceContext2 : ID2D1DeviceContext2.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + public HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); } /// @@ -265,9 +265,9 @@ public unsafe partial struct ID2D1DeviceContext2 : ID2D1DeviceContext2.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); } /// @@ -564,9 +564,9 @@ public unsafe partial struct ID2D1DeviceContext2 : ID2D1DeviceContext2.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(64)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + public HResult CreateGradientStopCollection(Common.GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext2*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); } /// diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext3.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext3.cs index 95c7eca..76cab15 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext3.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext3.cs @@ -121,9 +121,9 @@ public unsafe partial struct ID2D1DeviceContext3 : ID2D1DeviceContext3.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + public HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); } /// @@ -265,9 +265,9 @@ public unsafe partial struct ID2D1DeviceContext3 : ID2D1DeviceContext3.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); } /// @@ -564,9 +564,9 @@ public unsafe partial struct ID2D1DeviceContext3 : ID2D1DeviceContext3.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(64)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + public HResult CreateGradientStopCollection(Common.GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext3*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); } /// diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext4.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext4.cs index 712ae6d..f329203 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext4.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext4.cs @@ -121,9 +121,9 @@ public unsafe partial struct ID2D1DeviceContext4 : ID2D1DeviceContext4.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + public HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); } /// @@ -265,9 +265,9 @@ public unsafe partial struct ID2D1DeviceContext4 : ID2D1DeviceContext4.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); } /// @@ -564,9 +564,9 @@ public unsafe partial struct ID2D1DeviceContext4 : ID2D1DeviceContext4.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(64)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + public HResult CreateGradientStopCollection(Common.GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); } /// @@ -924,9 +924,9 @@ public unsafe partial struct ID2D1DeviceContext4 : ID2D1DeviceContext4.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(109)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[109]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[109]))((ID2D1DeviceContext4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); } /// @@ -975,7 +975,7 @@ public unsafe partial struct ID2D1DeviceContext4 : ID2D1DeviceContext4.Interface HResult CreateSvgGlyphStyle(ID2D1SvgGlyphStyle** svgGlyphStyle); [VtblIndex(109)] - void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode); + void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode); [VtblIndex(110)] void DrawTextLayout(Vector2 origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options); diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext5.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext5.cs index c4d4fc1..65d5055 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext5.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext5.cs @@ -121,9 +121,9 @@ public unsafe partial struct ID2D1DeviceContext5 : ID2D1DeviceContext5.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + public HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); } /// @@ -265,9 +265,9 @@ public unsafe partial struct ID2D1DeviceContext5 : ID2D1DeviceContext5.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); } /// @@ -564,9 +564,9 @@ public unsafe partial struct ID2D1DeviceContext5 : ID2D1DeviceContext5.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(64)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + public HResult CreateGradientStopCollection(Common.GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); } /// @@ -924,9 +924,9 @@ public unsafe partial struct ID2D1DeviceContext5 : ID2D1DeviceContext5.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(109)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[109]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[109]))((ID2D1DeviceContext5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); } /// diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext6.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext6.cs index fd19760..291e59d 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext6.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext6.cs @@ -121,9 +121,9 @@ public unsafe partial struct ID2D1DeviceContext6 : ID2D1DeviceContext6.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + public HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); } /// @@ -265,9 +265,9 @@ public unsafe partial struct ID2D1DeviceContext6 : ID2D1DeviceContext6.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); } /// @@ -564,9 +564,9 @@ public unsafe partial struct ID2D1DeviceContext6 : ID2D1DeviceContext6.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(64)] - public HResult CreateGradientStopCollection(GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + public HResult CreateGradientStopCollection(Common.GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, gradientStopCollection1); } /// @@ -924,9 +924,9 @@ public unsafe partial struct ID2D1DeviceContext6 : ID2D1DeviceContext6.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(109)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[109]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[109]))((ID2D1DeviceContext6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); } /// diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext7.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext7.cs new file mode 100644 index 0000000..2b8d74c --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1DeviceContext7.cs @@ -0,0 +1,1048 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1DeviceContext7 +[Guid("ec891cf7-9b69-4851-9def-4e0915771e62")] +[NativeTypeName("struct ID2D1DeviceContext7 : ID2D1DeviceContext6")] +[NativeInheritance("ID2D1DeviceContext6")] +public unsafe partial struct ID2D1DeviceContext7 : ID2D1DeviceContext7.Interface, INativeGuid +{ + public static ref readonly Guid IID_ID2D1DeviceContext7 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF7, 0x1C, 0x89, 0xEC, + 0x69, 0x9B, + 0x51, 0x48, + 0x9D, + 0xEF, + 0x4E, + 0x09, + 0x15, + 0x77, + 0x1E, + 0x62 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1DeviceContext7)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void GetFactory(ID2D1Factory** factory) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[4]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[5]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[6]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[7]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSolidColorBrush(Color4* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[10]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[11]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[12]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[13]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), size, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMesh(ID2D1Mesh** mesh) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), mesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public void DrawLine(Vector2 point0, Vector2 point1, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public void DrawRectangle(Win32.Numerics.RectF* rect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void FillRectangle(Win32.Numerics.RectF* rect, ID2D1Brush* brush) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), rect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void DrawRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), roundedRect, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public void FillRoundedRectangle(RoundedRect* roundedRect, ID2D1Brush* brush) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), roundedRect, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void DrawEllipse(Ellipse* ellipse, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[20]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), ellipse, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void FillEllipse(Ellipse* ellipse, ID2D1Brush* brush) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), ellipse, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void DrawGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, float strokeWidth, ID2D1StrokeStyle* strokeStyle) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), geometry, brush, strokeWidth, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void FillGeometry(ID2D1Geometry* geometry, ID2D1Brush* brush, ID2D1Brush* opacityBrush) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[23]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), geometry, brush, opacityBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void FillMesh(ID2D1Mesh* mesh, ID2D1Brush* brush) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[24]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), mesh, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, OpacityMaskContent content, Win32.Numerics.RectF* destinationRectangle, Win32.Numerics.RectF* sourceRectangle) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Win32.Numerics.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Win32.Numerics.RectF* sourceRectangle) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[26]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void DrawTextLayout(Vector2 origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[28]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void DrawGlyphRun(Vector2 baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[29]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[30]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void GetTransform(Matrix3x2* transform) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[31]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetAntialiasMode(AntialiasMode antialiasMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[32]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public AntialiasMode GetAntialiasMode() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[33]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetTextAntialiasMode(TextAntialiasMode textAntialiasMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[34]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), textAntialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[35]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void SetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[36]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void GetTextRenderingParams(Graphics.DirectWrite.IDWriteRenderingParams** textRenderingParams) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[37]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), textRenderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetTags(ulong tag1, ulong tag2) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[38]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void GetTags(ulong* tag1, ulong* tag2) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[39]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void PushLayer(LayerParameters* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[40]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void PopLayer() + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[41]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult Flush(ulong* tag1, ulong* tag2) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[42]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void SaveDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[43]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void RestoreDrawingState(ID2D1DrawingStateBlock* drawingStateBlock) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[44]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void PushAxisAlignedClip(Win32.Numerics.RectF* clipRect, AntialiasMode antialiasMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[45]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), clipRect, antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public void PopAxisAlignedClip() + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public void Clear(Color4* clearColor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), clearColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void BeginDraw() + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[48]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult EndDraw(ulong* tag1 = null, ulong* tag2 = null) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[49]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), tag1, tag2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public Common.PixelFormat GetPixelFormat() + { + Common.PixelFormat result; + return *((delegate* unmanaged[MemberFunction])(lpVtbl[50]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void SetDpi(float dpiX, float dpiY) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[51]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void GetDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[52]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public System.Drawing.SizeF GetSize() + { + System.Drawing.SizeF result; + return *((delegate* unmanaged[MemberFunction])(lpVtbl[53]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public System.Drawing.Size GetPixelSize() + { + System.Drawing.Size result; + return *((delegate* unmanaged[MemberFunction])(lpVtbl[54]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public uint GetMaximumBitmapSize() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[55]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public Bool32 IsSupported(RenderTargetProperties* renderTargetProperties) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[56]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[57]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[58]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[59]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), space, profile, profileSize, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public HResult CreateColorContextFromFilename(ushort* filename, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[60]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), filename, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreateColorContextFromWicColorContext(Graphics.Imaging.IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[61]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[62]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), surface, bitmapProperties, bitmap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public HResult CreateEffect(Guid* effectId, ID2D1Effect** effect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[63]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), effectId, effect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public HResult CreateGradientStopCollection(Common.GradientStop* straightAlphaGradientStops, uint straightAlphaGradientStopsCount, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[65]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[66]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), bitmap, bitmapBrushProperties, brushProperties, bitmapBrush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public HResult CreateCommandList(ID2D1CommandList** commandList) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[67]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), commandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public Bool32 IsDxgiFormatSupported(Graphics.Dxgi.Common.Format format) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[68]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public Bool32 IsBufferPrecisionSupported(BufferPrecision bufferPrecision) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[69]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), bufferPrecision); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public HResult GetImageLocalBounds(ID2D1Image* image, Win32.Numerics.RectF** localBounds) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[70]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), image, localBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public HResult GetImageWorldBounds(ID2D1Image* image, Win32.Numerics.RectF** worldBounds) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[71]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), image, worldBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public HResult GetGlyphRunWorldBounds(Vector2 baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, Win32.Numerics.RectF** bounds) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[72]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, measuringMode, bounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void GetDevice(ID2D1Device** device) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[73]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), device); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void SetTarget(ID2D1Image* image) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[74]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void GetTarget(ID2D1Image** image) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[75]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), image); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void SetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[76]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void GetRenderingControls(RenderingControls* renderingControls) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[77]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), renderingControls); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void SetPrimitiveBlend(PrimitiveBlend primitiveBlend) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[78]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), primitiveBlend); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public PrimitiveBlend GetPrimitiveBlend() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[79]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void SetUnitMode(UnitMode unitMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[80]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), unitMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public UnitMode GetUnitMode() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[81]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void DrawGlyphRun(Vector2 baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[82]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void DrawImage(ID2D1Image* image, Vector2* targetOffset, Win32.Numerics.RectF* imageRectangle, InterpolationMode interpolationMode, Common.CompositeMode compositeMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[83]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Vector2* targetOffset) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[84]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), gdiMetafile, targetOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void DrawBitmap(ID2D1Bitmap* bitmap, Win32.Numerics.RectF* destinationRectangle, float opacity, InterpolationMode interpolationMode, Win32.Numerics.RectF* sourceRectangle, Matrix4x4* perspectiveTransform) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[85]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(86)] + public void PushLayer(LayerParameters1* layerParameters, ID2D1Layer* layer) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[86]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), layerParameters, layer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(87)] + public HResult InvalidateEffectInputRectangle(ID2D1Effect* effect, uint input, Win32.Numerics.RectF* inputRectangle) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[87]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), effect, input, inputRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(88)] + public HResult GetEffectInvalidRectangleCount(ID2D1Effect* effect, uint* rectangleCount) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[88]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), effect, rectangleCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(89)] + public HResult GetEffectInvalidRectangles(ID2D1Effect* effect, Win32.Numerics.RectF** rectangles, uint rectanglesCount) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[89]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), effect, rectangles, rectanglesCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(90)] + public HResult GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, Win32.Numerics.RectF* renderImageRectangle, EffectInputDescription* inputDescriptions, Win32.Numerics.RectF** requiredInputRects, uint inputCount) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[90]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), renderEffect, renderImageRectangle, inputDescriptions, requiredInputRects, inputCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(91)] + public void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, Win32.Numerics.RectF* destinationRectangle, Win32.Numerics.RectF* sourceRectangle) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[91]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[92]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[93]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), geometry, flatteningTolerance, strokeWidth, strokeStyle, geometryRealization); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(94)] + public void DrawGeometryRealization(ID2D1GeometryRealization* geometryRealization, ID2D1Brush* brush) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[94]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), geometryRealization, brush); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(95)] + public HResult CreateInk(InkPoint* startPoint, ID2D1Ink** ink) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[95]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), startPoint, ink); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(96)] + public HResult CreateInkStyle(InkStyleProperties* inkStyleProperties, ID2D1InkStyle** inkStyle) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[96]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), inkStyleProperties, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(97)] + public HResult CreateGradientMesh(GradientMeshPatch* patches, uint patchesCount, ID2D1GradientMesh** gradientMesh) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[97]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[98]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[99]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[100]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), surfaces, surfaceCount, colorSpace, options, imageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(101)] + public HResult GetGradientMeshWorldBounds(ID2D1GradientMesh* gradientMesh, Win32.Numerics.RectF** pBounds) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[101]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), gradientMesh, pBounds); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(102)] + public void DrawInk(ID2D1Ink* ink, ID2D1Brush* brush, ID2D1InkStyle* inkStyle) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[102]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), ink, brush, inkStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(103)] + public void DrawGradientMesh(ID2D1GradientMesh* gradientMesh) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[103]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), gradientMesh); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(104)] + public void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, Win32.Numerics.RectF* destinationRectangle, Win32.Numerics.RectF* sourceRectangle) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[104]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(105)] + public HResult CreateTransformedImageSource(ID2D1ImageSource* imageSource, TransformedImageSourceProperties* properties, ID2D1TransformedImageSource** transformedImageSource) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[105]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), imageSource, properties, transformedImageSource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(106)] + public HResult CreateSpriteBatch(ID2D1SpriteBatch** spriteBatch) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[106]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[107]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(108)] + public HResult CreateSvgGlyphStyle(ID2D1SvgGlyphStyle** svgGlyphStyle) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[108]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), svgGlyphStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(109)] + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[109]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(110)] + public void DrawTextLayout(Vector2 origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, DrawTextOptions options) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[110]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(111)] + public void DrawColorBitmapGlyphRun(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, Vector2 baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.MeasuringMode measuringMode, ColorBitmapGlyphSnapOption bitmapSnapOption) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[111]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), glyphImageFormat, baselineOrigin, glyphRun, measuringMode, bitmapSnapOption); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(112)] + public void DrawSvgGlyphRun(Vector2 baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* defaultFillBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[112]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(113)] + public HResult GetColorBitmapGlyphImage(Graphics.DirectWrite.GlyphImageFormats glyphImageFormat, Vector2 glyphOrigin, Graphics.DirectWrite.IDWriteFontFace* fontFace, float fontEmSize, ushort glyphIndex, Bool32 isSideways, Matrix3x2* worldTransform, float dpiX, float dpiY, Matrix3x2* glyphTransform, ID2D1Image** glyphImage) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[113]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), glyphImageFormat, glyphOrigin, fontFace, fontEmSize, glyphIndex, isSideways, worldTransform, dpiX, dpiY, glyphTransform, glyphImage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(114)] + public HResult GetSvgGlyphImage(Vector2 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[MemberFunction])(lpVtbl[114]))((ID2D1DeviceContext7*)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[MemberFunction])(lpVtbl[115]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), inputXmlStream, viewportSize, svgDocument); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(116)] + public void DrawSvgDocument(ID2D1SvgDocument* svgDocument) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[116]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), svgDocument); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(117)] + public HResult CreateColorContextFromDxgiColorSpace(Graphics.Dxgi.Common.ColorSpaceType colorSpace, ID2D1ColorContext1** colorContext) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[117]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), colorSpace, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(118)] + public HResult CreateColorContextFromSimpleColorProfile(SimpleColorProfile* simpleProfile, ID2D1ColorContext1** colorContext) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[118]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), simpleProfile, colorContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(119)] + public void BlendImage(ID2D1Image* image, Common.BlendMode blendMode, Vector2* targetOffset, Win32.Numerics.RectF* imageRectangle, InterpolationMode interpolationMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[119]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), image, blendMode, targetOffset, imageRectangle, interpolationMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(120)] + public Graphics.DirectWrite.PaintFeatureLevel GetPaintFeatureLevel() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[120]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(121)] + public void DrawPaintGlyphRun(Vector2 baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* defaultFillBrush, uint colorPaletteIndex, Graphics.DirectWrite.MeasuringMode measuringMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[121]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, defaultFillBrush, colorPaletteIndex, measuringMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(122)] + public void DrawGlyphRunWithColorSupport(Vector2 baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Graphics.DirectWrite.MeasuringMode measuringMode, ColorBitmapGlyphSnapOption bitmapSnapOption) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[122]))((ID2D1DeviceContext7*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, svgGlyphStyle, colorPaletteIndex, measuringMode, bitmapSnapOption); + } + + public interface Interface : ID2D1DeviceContext6.Interface + { + [VtblIndex(120)] + Graphics.DirectWrite.PaintFeatureLevel GetPaintFeatureLevel(); + + [VtblIndex(121)] + void DrawPaintGlyphRun(Vector2 baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, ID2D1Brush* defaultFillBrush, uint colorPaletteIndex, Graphics.DirectWrite.MeasuringMode measuringMode); + + [VtblIndex(122)] + void DrawGlyphRunWithColorSupport(Vector2 baselineOrigin, Graphics.DirectWrite.GlyphRun* glyphRun, Graphics.DirectWrite.GlyphRunDescription* glyphRunDescription, ID2D1Brush* foregroundBrush, ID2D1SvgGlyphStyle* svgGlyphStyle, uint colorPaletteIndex, Graphics.DirectWrite.MeasuringMode measuringMode, ColorBitmapGlyphSnapOption bitmapSnapOption); + } +} + diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Effect.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Effect.cs index 0e245f4..e9a297c 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Effect.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Effect.cs @@ -81,9 +81,9 @@ public unsafe partial struct ID2D1Effect : ID2D1Effect.Interface, INativeGuid /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] - public HResult GetPropertyName(uint index, ushort* name, uint nameCount) + public HResult GetPropertyName(uint index, char** name, uint nameCount) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, name, nameCount); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID2D1Effect*)Unsafe.AsPointer(ref this), index, name, nameCount); } /// diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Factory8.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Factory8.cs new file mode 100644 index 0000000..a2b4b44 --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Factory8.cs @@ -0,0 +1,327 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct2D; + +/// +/// ID2D1Factory8 +[Guid("677c9311-f36d-4b1f-ae86-86d1223ffd3a")] +[NativeTypeName("struct ID2D1Factory8 : ID2D1Factory7")] +[NativeInheritance("ID2D1Factory7")] +public unsafe partial struct ID2D1Factory8 : ID2D1Factory8.Interface, INativeGuid +{ + public static ref readonly Guid IID_ID2D1Factory8 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x11, 0x93, 0x7C, 0x67, + 0x6D, 0xF3, + 0x1F, 0x4B, + 0xAE, + 0x86, + 0x86, + 0xD1, + 0x22, + 0x3F, + 0xFD, + 0x3A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Factory8)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((ID2D1Factory8*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((ID2D1Factory8*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult ReloadSystemMetrics() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((ID2D1Factory8*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void GetDesktopDpi(float* dpiX, float* dpiY) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), dpiX, dpiY); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult CreateRectangleGeometry(Win32.Numerics.RectF* rectangle, ID2D1RectangleGeometry** rectangleGeometry) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateRoundedRectangleGeometry(RoundedRect* roundedRectangle, ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), roundedRectangle, roundedRectangleGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateEllipseGeometry(Ellipse* ellipse, ID2D1EllipseGeometry** ellipseGeometry) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((ID2D1Factory8*)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[MemberFunction])(lpVtbl[8]))((ID2D1Factory8*)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[MemberFunction])(lpVtbl[9]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), sourceGeometry, transform, transformedGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreatePathGeometry(ID2D1PathGeometry** pathGeometry) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateStrokeStyle(StrokeStyleProperties* strokeStyleProperties, float* dashes, uint dashesCount, ID2D1StrokeStyle** strokeStyle) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((ID2D1Factory8*)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[MemberFunction])(lpVtbl[12]))((ID2D1Factory8*)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[MemberFunction])(lpVtbl[13]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), target, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateHwndRenderTarget(RenderTargetProperties* renderTargetProperties, HwndRenderTargetProperties* hwndRenderTargetProperties, ID2D1HwndRenderTarget** hwndRenderTarget) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((ID2D1Factory8*)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[MemberFunction])(lpVtbl[15]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), dxgiSurface, renderTargetProperties, renderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateDCRenderTarget(RenderTargetProperties* renderTargetProperties, ID2D1DCRenderTarget** dcRenderTarget) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), renderTargetProperties, dcRenderTarget); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device** d2dDevice) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((ID2D1Factory8*)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[MemberFunction])(lpVtbl[18]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreatePathGeometry(ID2D1PathGeometry1** pathGeometry) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), pathGeometry); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateDrawingStateBlock(DrawingStateDescription1* drawingStateDescription, Graphics.DirectWrite.IDWriteRenderingParams* textRenderingParams, ID2D1DrawingStateBlock1** drawingStateBlock) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[20]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), drawingStateDescription, textRenderingParams, drawingStateBlock); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateGdiMetafile(Com.IStream* metafileStream, ID2D1GdiMetafile** metafile) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((ID2D1Factory8*)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[MemberFunction], int>)(lpVtbl[22]))((ID2D1Factory8*)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[MemberFunction], int>)(lpVtbl[23]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult UnregisterEffect(Guid* classId) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[24]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), classId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult GetRegisteredEffects(Guid* effects, uint effectsCount, uint* effectsReturned, uint* effectsRegistered) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), effects, effectsCount, effectsReturned, effectsRegistered); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetEffectProperties(Guid* effectId, ID2D1Properties** properties) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[26]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), effectId, properties); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device1** d2dDevice1) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device2** d2dDevice2) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[28]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice2); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device3** d2dDevice3) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[29]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice3); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device4** d2dDevice4) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[30]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice4); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device5** d2dDevice5) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[31]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice5); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device6** d2dDevice6) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[32]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice6); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device7** d2dDevice6) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[33]))((ID2D1Factory8*)Unsafe.AsPointer(ref this), dxgiDevice, d2dDevice6); + } + + public interface Interface : ID2D1Factory7.Interface + { + [VtblIndex(33)] + HResult CreateDevice(Graphics.Dxgi.IDXGIDevice* dxgiDevice, ID2D1Device7** d2dDevice6); + } +} + diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1GradientStopCollection.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1GradientStopCollection.cs index dc06c11..eff7a3f 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1GradientStopCollection.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1GradientStopCollection.cs @@ -89,9 +89,9 @@ public unsafe partial struct ID2D1GradientStopCollection : ID2D1GradientStopColl /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] - public void GetGradientStops(GradientStop* gradientStops, uint gradientStopsCount) + public void GetGradientStops(Common.GradientStop* gradientStops, uint gradientStopsCount) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID2D1GradientStopCollection*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount); + ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID2D1GradientStopCollection*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount); } /// @@ -116,7 +116,7 @@ public unsafe partial struct ID2D1GradientStopCollection : ID2D1GradientStopColl uint GetGradientStopCount(); [VtblIndex(5)] - void GetGradientStops(GradientStop* gradientStops, uint gradientStopsCount); + void GetGradientStops(Common.GradientStop* gradientStops, uint gradientStopsCount); [VtblIndex(6)] Gamma GetColorInterpolationGamma(); diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1GradientStopCollection1.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1GradientStopCollection1.cs index 5866d2b..917b20b 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1GradientStopCollection1.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1GradientStopCollection1.cs @@ -89,9 +89,9 @@ public unsafe partial struct ID2D1GradientStopCollection1 : ID2D1GradientStopCol /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] - public void GetGradientStops(GradientStop* gradientStops, uint gradientStopsCount) + public void GetGradientStops(Common.GradientStop* gradientStops, uint gradientStopsCount) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount); + ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount); } /// @@ -113,9 +113,9 @@ public unsafe partial struct ID2D1GradientStopCollection1 : ID2D1GradientStopCol /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] - public void GetGradientStops1(GradientStop* gradientStops, uint gradientStopsCount) + public void GetGradientStops1(Common.GradientStop* gradientStops, uint gradientStopsCount) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount); + ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((ID2D1GradientStopCollection1*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount); } /// @@ -153,7 +153,7 @@ public unsafe partial struct ID2D1GradientStopCollection1 : ID2D1GradientStopCol public interface Interface : ID2D1GradientStopCollection.Interface { [VtblIndex(8)] - void GetGradientStops1(GradientStop* gradientStops, uint gradientStopsCount); + void GetGradientStops1(Common.GradientStop* gradientStops, uint gradientStopsCount); [VtblIndex(9)] ColorSpace GetPreInterpolationSpace(); diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1HwndRenderTarget.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1HwndRenderTarget.cs index e3e6a53..a074c77 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1HwndRenderTarget.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1HwndRenderTarget.cs @@ -121,9 +121,9 @@ public unsafe partial struct ID2D1HwndRenderTarget : ID2D1HwndRenderTarget.Inter /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + public HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); } /// @@ -265,9 +265,9 @@ public unsafe partial struct ID2D1HwndRenderTarget : ID2D1HwndRenderTarget.Inter /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1HwndRenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); } /// diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Properties.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Properties.cs index 67d2afe..97f023b 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Properties.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Properties.cs @@ -81,9 +81,9 @@ public unsafe partial struct ID2D1Properties : ID2D1Properties.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] - public HResult GetPropertyName(uint index, ushort* name, uint nameCount) + public HResult GetPropertyName(uint index, char** name, uint nameCount) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index, name, nameCount); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID2D1Properties*)Unsafe.AsPointer(ref this), index, name, nameCount); } /// @@ -164,7 +164,7 @@ public unsafe partial struct ID2D1Properties : ID2D1Properties.Interface, INativ uint GetPropertyCount(); [VtblIndex(4)] - HResult GetPropertyName(uint index, ushort* name, uint nameCount); + HResult GetPropertyName(uint index, char** name, uint nameCount); [VtblIndex(5)] uint GetPropertyNameLength(uint index); diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1RenderTarget.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1RenderTarget.cs index 01a8a11..42cb0a0 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1RenderTarget.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1RenderTarget.cs @@ -121,9 +121,9 @@ public unsafe partial struct ID2D1RenderTarget : ID2D1RenderTarget.Interface, IN /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) + public HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), gradientStops, gradientStopsCount, colorInterpolationGamma, extendMode, gradientStopCollection); } /// @@ -265,9 +265,9 @@ public unsafe partial struct ID2D1RenderTarget : ID2D1RenderTarget.Interface, IN /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) + public void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode) { - ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID2D1RenderTarget*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); } /// @@ -523,7 +523,7 @@ public unsafe partial struct ID2D1RenderTarget : ID2D1RenderTarget.Interface, IN HResult CreateSolidColorBrush(Color4* color, BrushProperties* brushProperties, ID2D1SolidColorBrush** solidColorBrush); [VtblIndex(9)] - HResult CreateGradientStopCollection(GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection); + HResult CreateGradientStopCollection(Common.GradientStop* gradientStops, uint gradientStopsCount, Gamma colorInterpolationGamma, ExtendMode extendMode, ID2D1GradientStopCollection** gradientStopCollection); [VtblIndex(10)] HResult CreateLinearGradientBrush(LinearGradientBrushProperties* linearGradientBrushProperties, BrushProperties* brushProperties, ID2D1GradientStopCollection* gradientStopCollection, ID2D1LinearGradientBrush** linearGradientBrush); @@ -577,7 +577,7 @@ public unsafe partial struct ID2D1RenderTarget : ID2D1RenderTarget.Interface, IN void DrawBitmap(ID2D1Bitmap* bitmap, Win32.Numerics.RectF* destinationRectangle, float opacity, BitmapInterpolationMode interpolationMode, Win32.Numerics.RectF* sourceRectangle); [VtblIndex(27)] - void DrawText(ushort* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode); + void DrawText(char* @string, uint stringLength, Graphics.DirectWrite.IDWriteTextFormat* textFormat, Win32.Numerics.RectF* layoutRect, ID2D1Brush* defaultFillBrush, DrawTextOptions options, Graphics.DirectWrite.MeasuringMode measuringMode); [VtblIndex(28)] void DrawTextLayout(Vector2 origin, Graphics.DirectWrite.IDWriteTextLayout* textLayout, ID2D1Brush* defaultFillBrush, DrawTextOptions options); diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1SvgElement.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1SvgElement.cs index a267446..821e1d5 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1SvgElement.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1SvgElement.cs @@ -89,9 +89,9 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] - public HResult GetTagName(ushort* name, uint nameCount) + public HResult GetTagName(char** name, uint nameCount) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount); } /// @@ -217,9 +217,9 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(21)] - public HResult GetSpecifiedAttributeName(uint index, ushort* name, uint nameCount, Bool32* inherited) + public HResult GetSpecifiedAttributeName(uint index, char** name, uint nameCount, Bool32* inherited) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), index, name, nameCount, inherited); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), index, name, nameCount, inherited); } /// @@ -241,17 +241,17 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(24)] - public HResult SetTextValue(ushort* name, uint nameCount) + public HResult SetTextValue(char* name, uint nameCount) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[24]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[24]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(25)] - public HResult GetTextValue(ushort* name, uint nameCount) + public HResult GetTextValue(char** name, uint nameCount) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, nameCount); } /// @@ -305,9 +305,9 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(32)] - public HResult GetAttributeValue(ushort* name, SvgAttributeStringType type, ushort* value, uint valueCount) + public HResult GetAttributeValue(ushort* name, SvgAttributeStringType type, char** value, uint valueCount) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[32]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueCount); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[32]))((ID2D1SvgElement*)Unsafe.AsPointer(ref this), name, type, value, valueCount); } /// @@ -324,7 +324,7 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ void GetDocument(ID2D1SvgDocument** document); [VtblIndex(5)] - HResult GetTagName(ushort* name, uint nameCount); + HResult GetTagName(char** name, uint nameCount); [VtblIndex(6)] uint GetTagNameLength(); @@ -372,7 +372,7 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ uint GetSpecifiedAttributeCount(); [VtblIndex(21)] - HResult GetSpecifiedAttributeName(uint index, ushort* name, uint nameCount, Bool32* inherited); + HResult GetSpecifiedAttributeName(uint index, char** name, uint nameCount, Bool32* inherited); [VtblIndex(22)] HResult GetSpecifiedAttributeNameLength(uint index, uint* nameLength, Bool32* inherited); @@ -381,10 +381,10 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ HResult RemoveAttribute(ushort* name); [VtblIndex(24)] - HResult SetTextValue(ushort* name, uint nameCount); + HResult SetTextValue(char* name, uint nameCount); [VtblIndex(25)] - HResult GetTextValue(ushort* name, uint nameCount); + HResult GetTextValue(char** name, uint nameCount); [VtblIndex(26)] uint GetTextValueLength(); @@ -405,7 +405,7 @@ public unsafe partial struct ID2D1SvgElement : ID2D1SvgElement.Interface, INativ HResult GetAttributeValue(ushort* name, SvgAttributePodType type, void* value, uint valueSizeInBytes); [VtblIndex(32)] - HResult GetAttributeValue(ushort* name, SvgAttributeStringType type, ushort* value, uint valueCount); + HResult GetAttributeValue(ushort* name, SvgAttributeStringType type, char** value, uint valueCount); [VtblIndex(33)] HResult GetAttributeValueLength(ushort* name, SvgAttributeStringType type, uint* valueLength); diff --git a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1SvgPaint.cs b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1SvgPaint.cs index 7f337e7..66898bc 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1SvgPaint.cs +++ b/src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1SvgPaint.cs @@ -137,9 +137,9 @@ public unsafe partial struct ID2D1SvgPaint : ID2D1SvgPaint.Interface, INativeGui /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(11)] - public HResult GetId(ushort* id, uint idCount) + public HResult GetId(char** id, uint idCount) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), id, idCount); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((ID2D1SvgPaint*)Unsafe.AsPointer(ref this), id, idCount); } /// @@ -168,7 +168,7 @@ public unsafe partial struct ID2D1SvgPaint : ID2D1SvgPaint.Interface, INativeGui HResult SetId(ushort* id); [VtblIndex(11)] - HResult GetId(ushort* id, uint idCount); + HResult GetId(char** id, uint idCount); [VtblIndex(12)] uint GetIdLength(); diff --git a/src/Vortice.Win32.Graphics.Direct2D/Vortice.Win32.Graphics.Direct2D.csproj b/src/Vortice.Win32.Graphics.Direct2D/Vortice.Win32.Graphics.Direct2D.csproj index 845fd0e..74ab3d5 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/Vortice.Win32.Graphics.Direct2D.csproj +++ b/src/Vortice.Win32.Graphics.Direct2D/Vortice.Win32.Graphics.Direct2D.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 Direct2D1 bindings. $(NoWarn);CS0419;IDE0017 diff --git a/src/Vortice.Win32.Graphics.Direct3D.Dxc/Apis.cs b/src/Vortice.Win32.Graphics.Direct3D.Dxc/Apis.cs index 80afea5..f351ca5 100644 --- a/src/Vortice.Win32.Graphics.Direct3D.Dxc/Apis.cs +++ b/src/Vortice.Win32.Graphics.Direct3D.Dxc/Apis.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Reflection; @@ -7,8 +7,6 @@ namespace Win32.Graphics.Direct3D.Dxc; public static unsafe partial class Apis { - public static ref readonly Guid CLSID_DxcUtils => ref CLSID_DxcLibrary; - static Apis() { NativeLibrary.SetDllImportResolver(Assembly.GetExecutingAssembly(), OnDllImport); diff --git a/src/Vortice.Win32.Graphics.Direct3D.Dxc/Generated/Graphics.Direct3D.Dxc.Apis.cs b/src/Vortice.Win32.Graphics.Direct3D.Dxc/Generated/Graphics.Direct3D.Dxc.Apis.cs index 2dc1af1..bc9abf3 100644 --- a/src/Vortice.Win32.Graphics.Direct3D.Dxc/Generated/Graphics.Direct3D.Dxc.Apis.cs +++ b/src/Vortice.Win32.Graphics.Direct3D.Dxc/Generated/Graphics.Direct3D.Dxc.Apis.cs @@ -11,6 +11,30 @@ namespace Win32.Graphics.Direct3D.Dxc; public static partial class Apis { + public static ref readonly Guid CLSID_DxcUtils + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAF, 0xD6, 0x45, 0x62, + 0xE0, 0x66, + 0xFD, 0x48, + 0x80, + 0xB4, + 0x4D, + 0x27, + 0x17, + 0x96, + 0x74, + 0x8C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + public const string DXC_ARG_DEBUG = "-Zi"; public const string DXC_ARG_SKIP_VALIDATION = "-Vd"; diff --git a/src/Vortice.Win32.Graphics.Direct3D.Dxc/Vortice.Win32.Graphics.Direct3D.Dxc.csproj b/src/Vortice.Win32.Graphics.Direct3D.Dxc/Vortice.Win32.Graphics.Direct3D.Dxc.csproj index 141fbd0..f77b91b 100644 --- a/src/Vortice.Win32.Graphics.Direct3D.Dxc/Vortice.Win32.Graphics.Direct3D.Dxc.csproj +++ b/src/Vortice.Win32.Graphics.Direct3D.Dxc/Vortice.Win32.Graphics.Direct3D.Dxc.csproj @@ -1,14 +1,13 @@ - net7.0;net8.0 - DXC bindings. - + net8.0 + DXC (DirectXShaderCompiler) bindings. + $(NoWarn);CS0419;IDE0017 - diff --git a/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/linux-x64/native/libdxcompiler.so b/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/linux-x64/native/libdxcompiler.so index 92b31f5..1a16b8c 100644 Binary files a/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/linux-x64/native/libdxcompiler.so and b/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/linux-x64/native/libdxcompiler.so differ diff --git a/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/linux-x64/native/libdxil.so b/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/linux-x64/native/libdxil.so index 3757b68..8e48df8 100644 Binary files a/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/linux-x64/native/libdxil.so and b/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/linux-x64/native/libdxil.so differ diff --git a/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-arm64/native/dxcompiler.dll b/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-arm64/native/dxcompiler.dll index 8a7928a..c58a542 100644 Binary files a/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-arm64/native/dxcompiler.dll and b/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-arm64/native/dxcompiler.dll differ diff --git a/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-arm64/native/dxil.dll b/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-arm64/native/dxil.dll index da8829e..fc141cd 100644 Binary files a/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-arm64/native/dxil.dll and b/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-arm64/native/dxil.dll differ diff --git a/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-x64/native/dxcompiler.dll b/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-x64/native/dxcompiler.dll index 2f7fef7..bbd0d5f 100644 Binary files a/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-x64/native/dxcompiler.dll and b/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-x64/native/dxcompiler.dll differ diff --git a/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-x64/native/dxil.dll b/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-x64/native/dxil.dll index fcfccc5..3d189e2 100644 Binary files a/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-x64/native/dxil.dll and b/src/Vortice.Win32.Graphics.Direct3D.Dxc/runtimes/win-x64/native/dxil.dll differ diff --git a/src/Vortice.Win32.Graphics.Direct3D.Fxc/Vortice.Win32.Graphics.Direct3D.Fxc.csproj b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Vortice.Win32.Graphics.Direct3D.Fxc.csproj index 487484e..803acdf 100644 --- a/src/Vortice.Win32.Graphics.Direct3D.Fxc/Vortice.Win32.Graphics.Direct3D.Fxc.csproj +++ b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Vortice.Win32.Graphics.Direct3D.Fxc.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 FXC bindings. $(NoWarn);CS0419;IDE0017 diff --git a/src/Vortice.Win32.Graphics.Direct3D11/Generated/Graphics.Direct3D11.Enums.cs b/src/Vortice.Win32.Graphics.Direct3D11/Generated/Graphics.Direct3D11.Enums.cs index 0228029..aedd36e 100644 --- a/src/Vortice.Win32.Graphics.Direct3D11/Generated/Graphics.Direct3D11.Enums.cs +++ b/src/Vortice.Win32.Graphics.Direct3D11/Generated/Graphics.Direct3D11.Enums.cs @@ -895,6 +895,9 @@ public enum FormatSupport2 /// /// D3D11_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY MultiplaneOverlay = 16384, + /// + /// D3D11_FORMAT_SUPPORT2_DISPLAYABLE + Displayable = 65536, } /// diff --git a/src/Vortice.Win32.Graphics.Direct3D11/Vortice.Win32.Graphics.Direct3D11.csproj b/src/Vortice.Win32.Graphics.Direct3D11/Vortice.Win32.Graphics.Direct3D11.csproj index 225463a..08ea01d 100644 --- a/src/Vortice.Win32.Graphics.Direct3D11/Vortice.Win32.Graphics.Direct3D11.csproj +++ b/src/Vortice.Win32.Graphics.Direct3D11/Vortice.Win32.Graphics.Direct3D11.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 Direct3D11 bindings. $(NoWarn);CS0419;IDE0017 diff --git a/src/Vortice.Win32.Graphics.Direct3D11on12/Vortice.Win32.Graphics.Direct3D11on12.csproj b/src/Vortice.Win32.Graphics.Direct3D11on12/Vortice.Win32.Graphics.Direct3D11on12.csproj index 4b47c86..918d972 100644 --- a/src/Vortice.Win32.Graphics.Direct3D11on12/Vortice.Win32.Graphics.Direct3D11on12.csproj +++ b/src/Vortice.Win32.Graphics.Direct3D11on12/Vortice.Win32.Graphics.Direct3D11on12.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 Direct3D11on12 bindings. $(NoWarn);CS0419;IDE0017 diff --git a/src/Vortice.Win32.Graphics.Direct3D12/Generated/Graphics.Direct3D12.Apis.cs b/src/Vortice.Win32.Graphics.Direct3D12/Generated/Graphics.Direct3D12.Apis.cs index 157bcf5..3d80f99 100644 --- a/src/Vortice.Win32.Graphics.Direct3D12/Generated/Graphics.Direct3D12.Apis.cs +++ b/src/Vortice.Win32.Graphics.Direct3D12/Generated/Graphics.Direct3D12.Apis.cs @@ -561,7 +561,7 @@ public static partial class Apis public const uint D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT = 15; - public const uint D3D12_PREVIEW_SDK_VERSION = 710; + public const uint D3D12_PREVIEW_SDK_VERSION = 714; public const uint D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = 16; @@ -697,7 +697,7 @@ public static partial class Apis public const uint D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT = 2; - public const uint D3D12_SDK_VERSION = 610; + public const uint D3D12_SDK_VERSION = 614; public const uint D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES = 32; @@ -823,6 +823,16 @@ public static partial class Apis public const uint D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN = 4294967295; + public const uint D3D12_VIDEO_ENCODER_AV1_INVALID_DPB_RESOURCE_INDEX = 255; + + public const uint D3D12_VIDEO_ENCODER_AV1_MAX_TILE_COLS = 64; + + public const uint D3D12_VIDEO_ENCODER_AV1_MAX_TILE_ROWS = 64; + + public const uint D3D12_VIDEO_ENCODER_AV1_SUPERRES_DENOM_MIN = 9; + + public const uint D3D12_VIDEO_ENCODER_AV1_SUPERRES_NUM = 8; + public const uint D3D12_VIDEO_PROCESS_MAX_FILTERS = 32; public const uint D3D12_VIDEO_PROCESS_STEREO_VIEWS = 2; @@ -857,6 +867,10 @@ public static partial class Apis public const uint D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = 25; + public const uint D3D12_WORK_GRAPHS_BACKING_MEMORY_ALIGNMENT_IN_BYTES = 8; + + public const uint D3D12_WORK_GRAPHS_MAX_NODE_DEPTH = 32; + public const uint D3D12_SHADER_COMPONENT_MAPPING_MASK = 7; public const uint D3D12_SHADER_COMPONENT_MAPPING_SHIFT = 3; @@ -1021,30 +1035,6 @@ public static partial class Apis } } - public static ref readonly Guid CLSID_D3D12DSRDeviceFactory - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAC, 0xDC, 0x9B, 0x7F, - 0x29, 0xF6, - 0x5E, 0x45, - 0xAB, - 0x13, - 0xA8, - 0x07, - 0xFB, - 0xE9, - 0xAB, - 0xA4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - public const uint D3D12_SHADING_RATE_X_AXIS_SHIFT = 2; public const uint D3D12_SHADING_RATE_VALID_MASK = 3; @@ -1139,9 +1129,11 @@ public static partial class Apis public const uint D3D_SHADER_REQUIRES_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE = 268435456; - public const uint D3D_SHADER_FEATURE_ADVANCED_TEXTURE_OPS = 536870912; + public const uint D3D_SHADER_REQUIRES_ADVANCED_TEXTURE_OPS = 536870912; - public const uint D3D_SHADER_FEATURE_WRITEABLE_MSAA_TEXTURES = 1073741824; + public const uint D3D_SHADER_REQUIRES_WRITEABLE_MSAA_TEXTURES = 1073741824; + + public const uint D3D_SHADER_REQUIRES_SAMPLE_CMP_GRADIENT_OR_BIAS = 2147483648; public static ref readonly Guid D3D12ExperimentalShaderModels { diff --git a/src/Vortice.Win32.Graphics.Direct3D12/Generated/Graphics.Direct3D12.Enums.cs b/src/Vortice.Win32.Graphics.Direct3D12/Generated/Graphics.Direct3D12.Enums.cs index f522c5a..903261f 100644 --- a/src/Vortice.Win32.Graphics.Direct3D12/Generated/Graphics.Direct3D12.Enums.cs +++ b/src/Vortice.Win32.Graphics.Direct3D12/Generated/Graphics.Direct3D12.Enums.cs @@ -408,6 +408,18 @@ public enum IndexBufferStripCutValue I32Bits = 2, } +/// +/// D3D12_STANDARD_MULTISAMPLE_QUALITY_LEVELS +public enum StandardMultisampleQualityLevels +{ + /// + /// D3D12_STANDARD_MULTISAMPLE_PATTERN + D3D12_STANDARD_MULTISAMPLE_PATTERN = -1, + /// + /// D3D12_CENTER_MULTISAMPLE_PATTERN + D3D12_CENTER_MULTISAMPLE_PATTERN = -2, +} + /// /// D3D12_PIPELINE_STATE_FLAGS [Flags] @@ -641,6 +653,21 @@ public enum Feature /// /// D3D12_FEATURE_D3D12_OPTIONS19 Options19 = 48, + /// + /// D3D12_FEATURE_D3D12_OPTIONS20 + Options20 = 49, + /// + /// D3D12_FEATURE_PREDICATION + Predication = 50, + /// + /// D3D12_FEATURE_PLACED_RESOURCE_SUPPORT_INFO + PlacedResourceSupportInfo = 51, + /// + /// D3D12_FEATURE_HARDWARE_COPY + HardwareCopy = 52, + /// + /// D3D12_FEATURE_D3D12_OPTIONS21 + Options21 = 53, } /// @@ -935,6 +962,18 @@ public enum ViewInstancingTier Tier3 = 3, } +/// +/// D3D12_WORK_GRAPHS_TIER +public enum WorkGraphsTier +{ + /// + /// D3D12_WORK_GRAPHS_TIER_NOT_SUPPORTED + NotSupported = 0, + /// + /// D3D12_WORK_GRAPHS_TIER_1_0 + Tier1_0 = 10, +} + /// /// D3D_ROOT_SIGNATURE_VERSION public enum RootSignatureVersion @@ -954,6 +993,9 @@ public enum RootSignatureVersion /// D3D_SHADER_MODEL public enum ShaderModel { + /// + /// D3D_SHADER_MODEL_NONE + None = 0, /// /// D3D_SHADER_MODEL_5_1 SM_5_1 = 81, @@ -984,9 +1026,12 @@ public enum ShaderModel /// /// D3D_SHADER_MODEL_6_8 SM_6_8 = 104, + /// + /// D3D_SHADER_MODEL_6_9 + SM_6_9 = 105, /// /// D3D_HIGHEST_SHADER_MODEL - D3D_HIGHEST_SHADER_MODEL = 104, + D3D_HIGHEST_SHADER_MODEL = 105, } /// @@ -1177,6 +1222,30 @@ public enum TriState True = 1, } +/// +/// D3D12_RECREATE_AT_TIER +public enum RecreateAtTier +{ + /// + /// D3D12_RECREATE_AT_TIER_NOT_SUPPORTED + NotSupported = 0, + /// + /// D3D12_RECREATE_AT_TIER_1 + Tier1 = 1, +} + +/// +/// D3D12_EXECUTE_INDIRECT_TIER +public enum ExecuteIndirectTier +{ + /// + /// D3D12_EXECUTE_INDIRECT_TIER_1_0 + Tier1_0 = 10, + /// + /// D3D12_EXECUTE_INDIRECT_TIER_1_1 + Tier1_1 = 11, +} + /// /// D3D12_HEAP_TYPE public enum HeapType @@ -1473,6 +1542,21 @@ public enum ResourceStates /// /// D3D12_RESOURCE_STATE_SHADING_RATE_SOURCE ShadingRateSource = 16777216, + /// + /// D3D12_RESOURCE_STATE_RESERVED_INTERNAL_8000 + ReservedInternal8000 = 32768, + /// + /// D3D12_RESOURCE_STATE_RESERVED_INTERNAL_4000 + ReservedInternal4000 = 16384, + /// + /// D3D12_RESOURCE_STATE_RESERVED_INTERNAL_100000 + ReservedInternal100000 = 1048576, + /// + /// D3D12_RESOURCE_STATE_RESERVED_INTERNAL_40000000 + ReservedInternal40000000 = 1073741824, + /// + /// D3D12_RESOURCE_STATE_RESERVED_INTERNAL_80000000 + ReservedInternal80000000 = -2147483648, /// /// D3D12_RESOURCE_STATE_GENERIC_READ GenericRead = 2755, @@ -2338,6 +2422,9 @@ public enum IndirectArgumentType /// /// D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH DispatchMesh = 10, + /// + /// D3D12_INDIRECT_ARGUMENT_TYPE_INCREMENTING_CONSTANT + IncrementingConstant = 11, } /// @@ -2633,9 +2720,60 @@ public enum StateSubObjectType /// /// D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG1 RaytracingPipelineConfig1 = 12, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_WORK_GRAPH + WorkGraph = 13, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT + StreamOutput = 14, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_BLEND + Blend = 15, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_SAMPLE_MASK + SampleMask = 16, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_RASTERIZER + Rasterizer = 17, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL + DepthStencil = 18, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT + InputLayout = 19, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE + IBStripCutValue = 20, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY + PrimitiveTopology = 21, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS + RenderTargetFormats = 22, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT + DepthStencilFormat = 23, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_SAMPLE_DESC + SampleDesc = 24, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_FLAGS + Flags = 26, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 + DepthStencil1 = 27, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING + ViewInstancing = 28, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_GENERIC_PROGRAM + GenericProgram = 29, + /// + /// D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 + DepthStencil2 = 30, /// /// D3D12_STATE_SUBOBJECT_TYPE_MAX_VALID - MaxValid = 13, + MaxValid = 31, } /// @@ -2695,6 +2833,49 @@ public enum RaytracingPipelineFlags SkipProceduralPrimitives = 512, } +/// +/// D3D12_NODE_OVERRIDES_TYPE +public enum NodeOverridesType +{ + /// + /// D3D12_NODE_OVERRIDES_TYPE_NONE + None = 0, + /// + /// D3D12_NODE_OVERRIDES_TYPE_BROADCASTING_LAUNCH + BroadcastingLaunch = 1, + /// + /// D3D12_NODE_OVERRIDES_TYPE_COALESCING_LAUNCH + CoalescingLaunch = 2, + /// + /// D3D12_NODE_OVERRIDES_TYPE_THREAD_LAUNCH + ThreadLaunch = 3, + /// + /// D3D12_NODE_OVERRIDES_TYPE_COMMON_COMPUTE + CommonCompute = 4, +} + +/// +/// D3D12_NODE_TYPE +public enum NodeType +{ + /// + /// D3D12_NODE_TYPE_SHADER + Shader = 0, +} + +/// +/// D3D12_WORK_GRAPH_FLAGS +[Flags] +public enum WorkGraphFlags +{ + /// + /// D3D12_WORK_GRAPH_FLAG_NONE + None = 0, + /// + /// D3D12_WORK_GRAPH_FLAG_INCLUDE_ALL_AVAILABLE_NODES + IncludeAllAvailableNodes = 1, +} + /// /// D3D12_STATE_OBJECT_TYPE public enum StateObjectType @@ -2705,6 +2886,9 @@ public enum StateObjectType /// /// D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE RaytracingPipeline = 3, + /// + /// D3D12_STATE_OBJECT_TYPE_EXECUTABLE + Executable = 4, } /// @@ -3072,6 +3256,15 @@ public enum AutoBreadcrumbOperation /// /// D3D12_AUTO_BREADCRUMB_OP_BARRIER Barrier = 45, + /// + /// D3D12_AUTO_BREADCRUMB_OP_BEGIN_COMMAND_LIST + BeginCommandList = 46, + /// + /// D3D12_AUTO_BREADCRUMB_OP_DISPATCHGRAPH + Dispatchgraph = 47, + /// + /// D3D12_AUTO_BREADCRUMB_OP_SETPROGRAM + Setprogram = 48, } /// @@ -3359,6 +3552,52 @@ public enum RenderPassFlags BindReadOnlyStencil = 16, } +/// +/// D3D12_SET_WORK_GRAPH_FLAGS +[Flags] +public enum SetWorkGraphFlags +{ + /// + /// D3D12_SET_WORK_GRAPH_FLAG_NONE + None = 0, + /// + /// D3D12_SET_WORK_GRAPH_FLAG_INITIALIZE + Initialize = 1, +} + +/// +/// D3D12_PROGRAM_TYPE +public enum ProgramType +{ + /// + /// D3D12_PROGRAM_TYPE_GENERIC_PIPELINE + GenericPipeline = 1, + /// + /// D3D12_PROGRAM_TYPE_RAYTRACING_PIPELINE + RaytracingPipeline = 4, + /// + /// D3D12_PROGRAM_TYPE_WORK_GRAPH + WorkGraph = 5, +} + +/// +/// D3D12_DISPATCH_MODE +public enum DispatchMode +{ + /// + /// D3D12_DISPATCH_MODE_NODE_CPU_INPUT + NodeCpuInput = 0, + /// + /// D3D12_DISPATCH_MODE_NODE_GPU_INPUT + NodeGpuInput = 1, + /// + /// D3D12_DISPATCH_MODE_MULTI_NODE_CPU_INPUT + MultiNodeCpuInput = 2, + /// + /// D3D12_DISPATCH_MODE_MULTI_NODE_GPU_INPUT + MultiNodeGpuInput = 3, +} + /// /// D3D12_SHADER_CACHE_MODE public enum ShaderCacheMode @@ -4225,6 +4464,15 @@ public enum MessageId /// /// D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK CreateBlendStateInvalidRenderTargetWriteMask = 117, + /// + /// D3D12_MESSAGE_ID_GET_PROGRAM_IDENTIFIER_ERROR + GetProgramIdentifierError = 118, + /// + /// D3D12_MESSAGE_ID_GET_WORK_GRAPH_PROPERTIES_ERROR + GetWorkGraphPropertiesError = 119, + /// + /// D3D12_MESSAGE_ID_SET_PROGRAM_ERROR + SetProgramError = 120, /// /// D3D12_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID ClearDepthStencilViewInvalid = 135, @@ -6733,6 +6981,126 @@ public enum MessageId /// /// D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDALIGNMENT_SMALLRESOURCE CreateResourceInvalidAlignmentSmallresource = 1380, + /// + /// D3D12_MESSAGE_ID_GENERIC_DEVICE_OPERATION_UNSUPPORTED + GenericDeviceOperationUnsupported = 1381, + /// + /// D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RENDER_TARGET_WRONG_WRITE_MASK + CreateGraphicsPipelineStateRenderTargetWrongWriteMask = 1382, + /// + /// D3D12_MESSAGE_ID_PROBABLE_PIX_EVENT_LEAK + ProbablePixEventLeak = 1383, + /// + /// D3D12_MESSAGE_ID_PIX_EVENT_UNDERFLOW + PixEventUnderflow = 1384, + /// + /// D3D12_MESSAGE_ID_RECREATEAT_INVALID_TARGET + RecreateatInvalidTarget = 1385, + /// + /// D3D12_MESSAGE_ID_RECREATEAT_INSUFFICIENT_SUPPORT + RecreateatInsufficientSupport = 1386, + /// + /// D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_STRUCTURED_BUFFER_STRIDE_MISMATCH + GpuBasedValidationStructuredBufferStrideMismatch = 1387, + /// + /// D3D12_MESSAGE_ID_DISPATCH_GRAPH_INVALID + DispatchGraphInvalid = 1388, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_TARGET_FORMAT_INVALID + DirectsrSuperresTargetFormatInvalid = 1389, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_TARGET_DIMENSION_INVALID + DirectsrSuperresTargetDimensionInvalid = 1390, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_SOURCE_COLOR_FORMAT_INVALID + DirectsrSuperresSourceColorFormatInvalid = 1391, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_SOURCE_DEPTH_FORMAT_INVALID + DirectsrSuperresSourceDepthFormatInvalid = 1392, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXPOSURE_SCALE_FORMAT_INVALID + DirectsrSuperresExposureScaleFormatInvalid = 1393, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_ENGINE_CREATE_FLAGS_INVALID + DirectsrSuperresEngineCreateFlagsInvalid = 1394, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_LOAD_FAILURE + DirectsrSuperresExtensionInternalLoadFailure = 1395, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_ENGINE_CREATION_ERROR + DirectsrSuperresExtensionInternalEngineCreationError = 1396, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_UPSCALER_CREATION_ERROR + DirectsrSuperresExtensionInternalUpscalerCreationError = 1397, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_UPSCALER_EXECUTION_ERROR + DirectsrSuperresExtensionInternalUpscalerExecutionError = 1398, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_REGION_INVALID + DirectsrSuperresUpscalerExecuteRegionInvalid = 1399, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_TIME_DELTA_INVALID + DirectsrSuperresUpscalerExecuteTimeDeltaInvalid = 1400, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_REQUIRED_TEXTURE_IS_NULL + DirectsrSuperresUpscalerExecuteRequiredTextureIsNull = 1401, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_MOTION_VECTORS_FORMAT_INVALID + DirectsrSuperresUpscalerExecuteMotionVectorsFormatInvalid = 1402, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_FLAGS_INVALID + DirectsrSuperresUpscalerExecuteFlagsInvalid = 1403, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_FORMAT_INVALID + DirectsrSuperresUpscalerExecuteFormatInvalid = 1404, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_EXPOSURE_SCALE_TEXTURE_SIZE_INVALID + DirectsrSuperresUpscalerExecuteExposureScaleTextureSizeInvalid = 1405, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_VARIANT_INDEX_OUT_OF_BOUNDS + DirectsrSuperresVariantIndexOutOfBounds = 1406, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_VARIANT_ID_NOT_FOUND + DirectsrSuperresVariantIdNotFound = 1407, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_DUPLICATE_VARIANT_ID + DirectsrSuperresDuplicateVariantId = 1408, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_OUT_OF_MEMORY + DirectsrOutOfMemory = 1409, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_UNEXPECTED_TEXTURE_IS_IGNORED + DirectsrSuperresUpscalerExecuteUnexpectedTextureIsIgnored = 1410, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EVICT_UNDERFLOW + DirectsrSuperresUpscalerEvictUnderflow = 1411, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_OPTIONAL_TEXTURE_IS_NULL + DirectsrSuperresUpscalerExecuteOptionalTextureIsNull = 1412, + /// + /// D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_INVALID_CAMERA_JITTER + DirectsrSuperresUpscalerExecuteInvalidCameraJitter = 1413, + /// + /// D3D12_MESSAGE_ID_CREATE_STATE_OBJECT_WARNING + CreateStateObjectWarning = 1414, + /// + /// D3D12_MESSAGE_ID_GUID_TEXTURE_LAYOUT_UNSUPPORTED + GuidTextureLayoutUnsupported = 1415, + /// + /// D3D12_MESSAGE_ID_RESOLVE_ENCODER_INPUT_PARAM_LAYOUT_INVALID_PARAMETERS + ResolveEncoderInputParamLayoutInvalidParameters = 1416, + /// + /// D3D12_MESSAGE_ID_INVALID_BARRIER_ACCESS + InvalidBarrierAccess = 1417, + /// + /// D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INSTANCE_COUNT_ZERO + CommandListDrawInstanceCountZero = 1418, + /// + /// D3D12_MESSAGE_ID_DESCRIPTOR_HEAP_NOT_SET_BEFORE_ROOT_SIGNATURE_WITH_DIRECTLY_INDEXED_FLAG + DescriptorHeapNotSetBeforeRootSignatureWithDirectlyIndexedFlag = 1419, + /// + /// D3D12_MESSAGE_ID_DIFFERENT_DESCRIPTOR_HEAP_SET_AFTER_ROOT_SIGNATURE_WITH_DIRECTLY_INDEXED_FLAG + DifferentDescriptorHeapSetAfterRootSignatureWithDirectlyIndexedFlag = 1420, } /// @@ -6922,6 +7290,9 @@ public enum ShaderVersionType /// /// D3D12_SHVER_AMPLIFICATION_SHADER AmplificationShader = 14, + /// + /// D3D12_SHVER_NODE_SHADER + NodeShader = 15, /// /// D3D12_SHVER_RESERVED0 Reserved0 = 65520, diff --git a/src/Vortice.Win32.Graphics.Direct3D12/Generated/Graphics.Direct3D12.Structs.cs b/src/Vortice.Win32.Graphics.Direct3D12/Generated/Graphics.Direct3D12.Structs.cs index 964cb7b..9914763 100644 --- a/src/Vortice.Win32.Graphics.Direct3D12/Generated/Graphics.Direct3D12.Structs.cs +++ b/src/Vortice.Win32.Graphics.Direct3D12/Generated/Graphics.Direct3D12.Structs.cs @@ -1181,6 +1181,50 @@ public partial struct FeatureDataD3D12Options19 public Bool32 ComputeOnlyCustomHeapSupported; } +/// +/// D3D12_FEATURE_DATA_D3D12_OPTIONS20 +public partial struct FeatureDataD3D12Options20 +{ + /// + public Bool32 ComputeOnlyWriteWatchSupported; + + /// + public RecreateAtTier RecreateAtTier; +} + +/// +/// D3D12_FEATURE_DATA_D3D12_OPTIONS21 +public partial struct FeatureDataD3D12Options21 +{ + /// + public WorkGraphsTier WorkGraphsTier; + + /// + public ExecuteIndirectTier ExecuteIndirectTier; + + /// + public Bool32 SampleCmpGradientAndBiasSupported; + + /// + public Bool32 ExtendedCommandInfoSupported; +} + +/// +/// D3D12_FEATURE_DATA_PREDICATION +public partial struct FeatureDataPredication +{ + /// + public Bool32 Supported; +} + +/// +/// D3D12_FEATURE_DATA_HARDWARE_COPY +public partial struct FeatureDataHardwareCopy +{ + /// + public Bool32 Supported; +} + /// /// D3D12_RESOURCE_ALLOCATION_INFO public partial struct ResourceAllocationInfo @@ -1243,6 +1287,23 @@ public partial struct HeapDescription public HeapFlags Flags; } +/// +/// D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO +public partial struct FeatureDataPlacedResourceSupportInfo +{ + /// + public Graphics.Dxgi.Common.Format Format; + + /// + public ResourceDimension Dimension; + + /// + public HeapProperties DestHeapProperties; + + /// + public Bool32 Supported; +} + /// /// D3D12_MIP_REGION public partial struct MipRegion @@ -3552,6 +3613,16 @@ public partial struct IndirectArgumentDescription } } + [UnscopedRef] + public ref _Anonymous_e__Union._IncrementingConstant_e__Struct IncrementingConstant + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.IncrementingConstant; + } + } + [StructLayout(LayoutKind.Explicit)] public partial struct _Anonymous_e__Union { @@ -3575,21 +3646,23 @@ public partial struct IndirectArgumentDescription [FieldOffset(0)] public _Anonymous_e__Union._UnorderedAccessView_e__Struct UnorderedAccessView; - public partial struct _UnorderedAccessView_e__Struct + /// + [FieldOffset(0)] + public _Anonymous_e__Union._IncrementingConstant_e__Struct IncrementingConstant; + + public partial struct _IncrementingConstant_e__Struct { - /// + /// public uint RootParameterIndex; + + /// + public uint DestOffsetIn32BitValues; } - public partial struct _ConstantBufferView_e__Struct + public partial struct _ShaderResourceView_e__Struct { - /// + /// public uint RootParameterIndex; } - public partial struct _VertexBuffer_e__Struct - { - /// - public uint Slot; - } public partial struct _Constant_e__Struct { /// @@ -3601,9 +3674,19 @@ public partial struct IndirectArgumentDescription /// public uint Num32BitValuesToSet; } - public partial struct _ShaderResourceView_e__Struct + public partial struct _UnorderedAccessView_e__Struct { - /// + /// + public uint RootParameterIndex; + } + public partial struct _VertexBuffer_e__Struct + { + /// + public uint Slot; + } + public partial struct _ConstantBufferView_e__Struct + { + /// public uint RootParameterIndex; } } @@ -3696,6 +3779,39 @@ public partial struct MetaCommandDescription public GraphicsStates ExecutionDirtyState; } +/// +/// D3D12_PROGRAM_IDENTIFIER +public partial struct ProgramIdentifier +{ + /// + public unsafe fixed ulong OpaqueData[4]; +} + +/// +/// D3D12_NODE_ID +public partial struct NodeId +{ + /// + public unsafe ushort* Name; + + /// + public uint ArrayIndex; +} + +/// +/// D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS +public partial struct WorkGraphMemoryRequirements +{ + /// + public ulong MinSizeInBytes; + + /// + public ulong MaxSizeInBytes; + + /// + public uint SizeGranularityInBytes; +} + /// /// D3D12_STATE_SUBOBJECT public partial struct StateSubObject @@ -3739,6 +3855,38 @@ public partial struct NodeMask public uint Mask; } +/// +/// D3D12_SAMPLE_MASK +public partial struct SampleMask +{ + /// + public uint Mask; +} + +/// +/// D3D12_IB_STRIP_CUT_VALUE +public partial struct IBStripCutValue +{ + /// + public IndexBufferStripCutValue IndexBufferStripCutValue; +} + +/// +/// D3D12_PRIMITIVE_TOPOLOGY_DESC +public partial struct PrimitiveTopologyDescription +{ + /// + public PrimitiveTopologyType PrimitiveTopology; +} + +/// +/// D3D12_DEPTH_STENCIL_FORMAT +public partial struct DepthStencilFormat +{ + /// + public Graphics.Dxgi.Common.Format Format; +} + /// /// D3D12_EXPORT_DESC public partial struct ExportDescription @@ -3859,6 +4007,270 @@ public partial struct RaytracingPipelineConfig1 public RaytracingPipelineFlags Flags; } +/// +/// D3D12_NODE_OUTPUT_OVERRIDES +public partial struct NodeOutputOverrides +{ + /// + public uint OutputIndex; + + /// + public unsafe NodeId* pNewName; + + /// + public unsafe Bool32* pAllowSparseNodes; + + /// + public unsafe uint* pMaxRecords; + + /// + public unsafe uint* pMaxRecordsSharedWithOutputIndex; +} + +/// +/// D3D12_BROADCASTING_LAUNCH_OVERRIDES +public partial struct BroadcastingLaunchOverrides +{ + /// + public unsafe uint* pLocalRootArgumentsTableIndex; + + /// + public unsafe Bool32* pProgramEntry; + + /// + public unsafe NodeId* pNewName; + + /// + public unsafe NodeId* pShareInputOf; + + /// + public unsafe uint* pDispatchGrid; + + /// + public unsafe uint* pMaxDispatchGrid; + + /// + public uint NumOutputOverrides; + + /// + public unsafe NodeOutputOverrides* pOutputOverrides; +} + +/// +/// D3D12_COALESCING_LAUNCH_OVERRIDES +public partial struct CoalescingLaunchOverrides +{ + /// + public unsafe uint* pLocalRootArgumentsTableIndex; + + /// + public unsafe Bool32* pProgramEntry; + + /// + public unsafe NodeId* pNewName; + + /// + public unsafe NodeId* pShareInputOf; + + /// + public uint NumOutputOverrides; + + /// + public unsafe NodeOutputOverrides* pOutputOverrides; +} + +/// +/// D3D12_THREAD_LAUNCH_OVERRIDES +public partial struct ThreadLaunchOverrides +{ + /// + public unsafe uint* pLocalRootArgumentsTableIndex; + + /// + public unsafe Bool32* pProgramEntry; + + /// + public unsafe NodeId* pNewName; + + /// + public unsafe NodeId* pShareInputOf; + + /// + public uint NumOutputOverrides; + + /// + public unsafe NodeOutputOverrides* pOutputOverrides; +} + +/// +/// D3D12_COMMON_COMPUTE_NODE_OVERRIDES +public partial struct CommonComputeNodeOverrides +{ + /// + public unsafe uint* pLocalRootArgumentsTableIndex; + + /// + public unsafe Bool32* pProgramEntry; + + /// + public unsafe NodeId* pNewName; + + /// + public unsafe NodeId* pShareInputOf; + + /// + public uint NumOutputOverrides; + + /// + public unsafe NodeOutputOverrides* pOutputOverrides; +} + +/// +/// D3D12_SHADER_NODE +public partial struct ShaderNode +{ + /// + public unsafe ushort* Shader; + + /// + public NodeOverridesType OverridesType; + + /// + public _Anonymous_e__Union Anonymous; + + [UnscopedRef] + public unsafe ref BroadcastingLaunchOverrides* pBroadcastingLaunchOverrides + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.pBroadcastingLaunchOverrides; + } + } + + [UnscopedRef] + public unsafe ref CoalescingLaunchOverrides* pCoalescingLaunchOverrides + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.pCoalescingLaunchOverrides; + } + } + + [UnscopedRef] + public unsafe ref ThreadLaunchOverrides* pThreadLaunchOverrides + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.pThreadLaunchOverrides; + } + } + + [UnscopedRef] + public unsafe ref CommonComputeNodeOverrides* pCommonComputeNodeOverrides + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.pCommonComputeNodeOverrides; + } + } + + [StructLayout(LayoutKind.Explicit)] + public partial struct _Anonymous_e__Union + { + /// + [FieldOffset(0)] + public unsafe BroadcastingLaunchOverrides* pBroadcastingLaunchOverrides; + + /// + [FieldOffset(0)] + public unsafe CoalescingLaunchOverrides* pCoalescingLaunchOverrides; + + /// + [FieldOffset(0)] + public unsafe ThreadLaunchOverrides* pThreadLaunchOverrides; + + /// + [FieldOffset(0)] + public unsafe CommonComputeNodeOverrides* pCommonComputeNodeOverrides; + } +} + +/// +/// D3D12_NODE +public partial struct Node +{ + /// + public NodeType NodeType; + + /// + public _Anonymous_e__Union Anonymous; + + [UnscopedRef] + public ref ShaderNode Shader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.Shader; + } + } + + [StructLayout(LayoutKind.Explicit)] + public partial struct _Anonymous_e__Union + { + /// + [FieldOffset(0)] + public ShaderNode Shader; + } +} + +/// +/// D3D12_WORK_GRAPH_DESC +public partial struct WorkGraphDescription +{ + /// + public unsafe ushort* ProgramName; + + /// + public WorkGraphFlags Flags; + + /// + public uint NumEntrypoints; + + /// + public unsafe NodeId* pEntrypoints; + + /// + public uint NumExplicitlyDefinedNodes; + + /// + public unsafe Node* pExplicitlyDefinedNodes; +} + +/// +/// D3D12_GENERIC_PROGRAM_DESC +public partial struct GenericProgramDescription +{ + /// + public unsafe ushort* ProgramName; + + /// + public uint NumExports; + + /// + public unsafe ushort** pExports; + + /// + public uint NumSubobjects; + + /// + public unsafe StateSubObject** ppSubobjects; +} + /// /// D3D12_STATE_OBJECT_DESC public partial struct StateObjectDescription @@ -4787,6 +5199,223 @@ public partial struct DispatchRaysDescription public uint Depth; } +/// +/// D3D12_SET_WORK_GRAPH_DESC +public partial struct SetWorkGraphDescription +{ + /// + public ProgramIdentifier ProgramIdentifier; + + /// + public SetWorkGraphFlags Flags; + + /// + public GpuVirtualAddressRange BackingMemory; + + /// + public GpuVirtualAddressRangeAndStride NodeLocalRootArgumentsTable; +} + +/// +/// D3D12_SET_RAYTRACING_PIPELINE_DESC +public partial struct SetRaytracingPipelineDescription +{ + /// + public ProgramIdentifier ProgramIdentifier; +} + +/// +/// D3D12_SET_GENERIC_PIPELINE_DESC +public partial struct SetGenericPipelineDescription +{ + /// + public ProgramIdentifier ProgramIdentifier; +} + +/// +/// D3D12_SET_PROGRAM_DESC +public partial struct SetProgramDescription +{ + /// + public ProgramType Type; + + /// + public _Anonymous_e__Union Anonymous; + + [UnscopedRef] + public ref SetGenericPipelineDescription GenericPipeline + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.GenericPipeline; + } + } + + [UnscopedRef] + public ref SetRaytracingPipelineDescription RaytracingPipeline + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.RaytracingPipeline; + } + } + + [UnscopedRef] + public ref SetWorkGraphDescription WorkGraph + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.WorkGraph; + } + } + + [StructLayout(LayoutKind.Explicit)] + public partial struct _Anonymous_e__Union + { + /// + [FieldOffset(0)] + public SetGenericPipelineDescription GenericPipeline; + + /// + [FieldOffset(0)] + public SetRaytracingPipelineDescription RaytracingPipeline; + + /// + [FieldOffset(0)] + public SetWorkGraphDescription WorkGraph; + } +} + +/// +/// D3D12_NODE_CPU_INPUT +public partial struct NodeCpuInput +{ + /// + public uint EntrypointIndex; + + /// + public uint NumRecords; + + /// + public unsafe void* pRecords; + + /// + public ulong RecordStrideInBytes; +} + +/// +/// D3D12_NODE_GPU_INPUT +public partial struct NodeGpuInput +{ + /// + public uint EntrypointIndex; + + /// + public uint NumRecords; + + /// + public GpuVirtualAddressAndStride Records; +} + +/// +/// D3D12_MULTI_NODE_CPU_INPUT +public partial struct MultiNodeCpuInput +{ + /// + public uint NumNodeInputs; + + /// + public unsafe NodeCpuInput* pNodeInputs; + + /// + public ulong NodeInputStrideInBytes; +} + +/// +/// D3D12_MULTI_NODE_GPU_INPUT +public partial struct MultiNodeGpuInput +{ + /// + public uint NumNodeInputs; + + /// + public GpuVirtualAddressAndStride NodeInputs; +} + +/// +/// D3D12_DISPATCH_GRAPH_DESC +public partial struct DispatchGraphDescription +{ + /// + public DispatchMode Mode; + + /// + public _Anonymous_e__Union Anonymous; + + [UnscopedRef] + public ref NodeCpuInput NodeCPUInput + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.NodeCPUInput; + } + } + + [UnscopedRef] + public ref ulong NodeGPUInput + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.NodeGPUInput; + } + } + + [UnscopedRef] + public ref MultiNodeCpuInput MultiNodeCPUInput + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.MultiNodeCPUInput; + } + } + + [UnscopedRef] + public ref ulong MultiNodeGPUInput + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref Anonymous.MultiNodeGPUInput; + } + } + + [StructLayout(LayoutKind.Explicit)] + public partial struct _Anonymous_e__Union + { + /// + [FieldOffset(0)] + public NodeCpuInput NodeCPUInput; + + /// + [FieldOffset(0)] + public ulong NodeGPUInput; + + /// + [FieldOffset(0)] + public MultiNodeCpuInput MultiNodeCPUInput; + + /// + [FieldOffset(0)] + public ulong MultiNodeGPUInput; + } +} + /// /// D3D12_SHADER_CACHE_SESSION_DESC public partial struct ShaderCacheSessionDescription diff --git a/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12DSRDeviceFactory.cs b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12DSRDeviceFactory.cs deleted file mode 100644 index a760acd..0000000 --- a/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12DSRDeviceFactory.cs +++ /dev/null @@ -1,87 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Win32.Graphics.Direct3D12; - -/// -/// ID3D12DSRDeviceFactory -[Guid("51ee7783-6426-4428-b182-42f3541fca71")] -[NativeTypeName("struct ID3D12DSRDeviceFactory : IUnknown")] -[NativeInheritance("IUnknown")] -public unsafe partial struct ID3D12DSRDeviceFactory : ID3D12DSRDeviceFactory.Interface, INativeGuid -{ - public static ref readonly Guid IID_ID3D12DSRDeviceFactory - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x83, 0x77, 0xEE, 0x51, - 0x26, 0x64, - 0x28, 0x44, - 0xB1, - 0x82, - 0x42, - 0xF3, - 0x54, - 0x1F, - 0xCA, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DSRDeviceFactory)); - - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((ID3D12DSRDeviceFactory*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((ID3D12DSRDeviceFactory*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((ID3D12DSRDeviceFactory*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HResult CreateDSRDevice(ID3D12Device* pD3D12Device, uint NodeMask, Guid* riid, void** ppvDSRDevice) - { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((ID3D12DSRDeviceFactory*)Unsafe.AsPointer(ref this), pD3D12Device, NodeMask, riid, ppvDSRDevice); - } - - public interface Interface : IUnknown.Interface - { - [VtblIndex(3)] - HResult CreateDSRDevice(ID3D12Device* pD3D12Device, uint NodeMask, Guid* riid, void** ppvDSRDevice); - } -} - diff --git a/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12Device13.cs b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12Device13.cs new file mode 100644 index 0000000..631f433 --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12Device13.cs @@ -0,0 +1,717 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Device13 +[Guid("14eecffc-4df8-40f7-a118-5c816f45695e")] +[NativeTypeName("struct ID3D12Device13 : ID3D12Device12")] +[NativeInheritance("ID3D12Device12")] +public unsafe partial struct ID3D12Device13 : ID3D12Device13.Interface, INativeGuid +{ + public static ref readonly Guid IID_ID3D12Device13 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFC, 0xCF, 0xEE, 0x14, + 0xF8, 0x4D, + 0xF7, 0x40, + 0xA1, + 0x18, + 0x5C, + 0x81, + 0x6F, + 0x45, + 0x69, + 0x5E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device13)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((ID3D12Device13*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((ID3D12Device13*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((ID3D12Device13*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((ID3D12Device13*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID3D12Device13*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID3D12Device13*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((ID3D12Device13*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNodeCount() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((ID3D12Device13*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID3D12Device13*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[12]))((ID3D12Device13*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, int FeatureSupportDataSize) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((ID3D12Device13*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[16]))((ID3D12Device13*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle DestDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle DestDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[19]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle DestDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[20]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle DestDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle DestDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[23]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[24]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[25]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[26]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[27]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[28]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[29]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[30]))((ID3D12Device13*)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, Handle* pHandle) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[31]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult OpenSharedHandle(Handle NTHandle, Guid* riid, void** ppvObj) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[32]))((ID3D12Device13*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult OpenSharedHandleByName(ushort* Name, uint Access, Handle* pNTHandle) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[33]))((ID3D12Device13*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[34]))((ID3D12Device13*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[35]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[36]))((ID3D12Device13*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[37]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[38]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[39]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetStablePowerState(Bool32 Enable) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[40]))((ID3D12Device13*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[41]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[42]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Luid GetAdapterLuid() + { + Luid result; + return *((delegate* unmanaged[MemberFunction])(lpVtbl[43]))((ID3D12Device13*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[44]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, Handle hEvent) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[45]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[46]))((ID3D12Device13*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[48]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenExistingHeapFromFileMapping(Handle hFileMapping, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[49]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[50]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[51]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[52]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[53]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[54]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[55]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[56]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[57]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void RemoveDevice() + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[58]))((ID3D12Device13*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult EnumerateMetaCommands(uint* pNumMetaCommands, MetaCommandDescription* pDescs) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[59]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[60]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[61]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[62]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void GetRaytracingAccelerationStructurePrebuildInfo(BuildRaytracingAccelerationStructureInputs* pDesc, RaytracingAccelerationStructurePrebuildInfo* pInfo) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[63]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pDesc, pInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public DriverMatchingIdentifierStatus CheckDriverMatchingIdentifier(SerializedDataType SerializedDataType, SerializedDataDriverMatchingIdentifier* pIdentifierToCheck) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID3D12Device13*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult SetBackgroundProcessingMode(BackgroundProcessingMode Mode, MeasurementsAction MeasurementsAction, Handle hEventToSignalUponCompletion, Bool32* pbFurtherMeasurementsDesired) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[65]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[66]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[67]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[68]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[69]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[70]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[71]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[72]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[73]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pDesc, riid, ppvSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public HResult ShaderCacheControl(ShaderCacheKindFlags Kinds, ShaderCacheControlFlags Control) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[74]))((ID3D12Device13*)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[MemberFunction])(lpVtbl[75]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pDesc, CreatorID, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public HResult CreateCommittedResource3(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription1* pDesc, BarrierLayout InitialLayout, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, uint NumCastableFormats, Graphics.Dxgi.Common.Format* pCastableFormats, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[76]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialLayout, pOptimizedClearValue, pProtectedSession, NumCastableFormats, pCastableFormats, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public HResult CreatePlacedResource2(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription1* pDesc, BarrierLayout InitialLayout, ClearValue* pOptimizedClearValue, uint NumCastableFormats, Graphics.Dxgi.Common.Format* pCastableFormats, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[77]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialLayout, pOptimizedClearValue, NumCastableFormats, pCastableFormats, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public HResult CreateReservedResource2(ResourceDescription* pDesc, BarrierLayout InitialLayout, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, uint NumCastableFormats, Graphics.Dxgi.Common.Format* pCastableFormats, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[78]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pDesc, InitialLayout, pOptimizedClearValue, pProtectedSession, NumCastableFormats, pCastableFormats, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public void CreateSampler2(SamplerDescription2* pDesc, CpuDescriptorHandle DestDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[79]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public ResourceAllocationInfo GetResourceAllocationInfo3(uint visibleMask, uint numResourceDescs, ResourceDescription1* pResourceDescs, uint* pNumCastableFormats, Graphics.Dxgi.Common.Format** ppCastableFormats, ResourceAllocationInfo1* pResourceAllocationInfo1) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[MemberFunction])(lpVtbl[80]))((ID3D12Device13*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pNumCastableFormats, ppCastableFormats, pResourceAllocationInfo1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public HResult OpenExistingHeapFromAddress1(void* pAddress, nuint size, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[81]))((ID3D12Device13*)Unsafe.AsPointer(ref this), pAddress, size, riid, ppvHeap); + } + + public interface Interface : ID3D12Device12.Interface + { + [VtblIndex(81)] + HResult OpenExistingHeapFromAddress1(void* pAddress, nuint size, Guid* riid, void** ppvHeap); + } +} + diff --git a/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12Device14.cs b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12Device14.cs new file mode 100644 index 0000000..1e9f0db --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12Device14.cs @@ -0,0 +1,725 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12Device14 +[Guid("5f6e592d-d895-44c2-8e4a-88ad4926d323")] +[NativeTypeName("struct ID3D12Device14 : ID3D12Device13")] +[NativeInheritance("ID3D12Device13")] +public unsafe partial struct ID3D12Device14 : ID3D12Device14.Interface, INativeGuid +{ + public static ref readonly Guid IID_ID3D12Device14 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2D, 0x59, 0x6E, 0x5F, + 0x95, 0xD8, + 0xC2, 0x44, + 0x8E, + 0x4A, + 0x88, + 0xAD, + 0x49, + 0x26, + 0xD3, + 0x23 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Device14)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((ID3D12Device14*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((ID3D12Device14*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((ID3D12Device14*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((ID3D12Device14*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID3D12Device14*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID3D12Device14*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((ID3D12Device14*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public uint GetNodeCount() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((ID3D12Device14*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateCommandQueue(CommandQueueDescription* pDesc, Guid* riid, void** ppCommandQueue) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pDesc, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateCommandAllocator(CommandListType type, Guid* riid, void** ppCommandAllocator) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID3D12Device14*)Unsafe.AsPointer(ref this), type, riid, ppCommandAllocator); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateGraphicsPipelineState(GraphicsPipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateComputePipelineState(ComputePipelineStateDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[12]))((ID3D12Device14*)Unsafe.AsPointer(ref this), nodeMask, type, pCommandAllocator, pInitialState, riid, ppCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, int FeatureSupportDataSize) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((ID3D12Device14*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateDescriptorHeap(DescriptorHeapDescription* pDescriptorHeapDesc, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pDescriptorHeapDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetDescriptorHandleIncrementSize(DescriptorHeapType DescriptorHeapType) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[16]))((ID3D12Device14*)Unsafe.AsPointer(ref this), nodeMask, pBlobWithRootSignature, blobLengthInBytes, riid, ppvRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CreateConstantBufferView(ConstantBufferViewDescription* pDesc, CpuDescriptorHandle DestDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void CreateShaderResourceView(ID3D12Resource* pResource, ShaderResourceViewDescription* pDesc, CpuDescriptorHandle DestDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[19]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pResource, pCounterResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void CreateRenderTargetView(ID3D12Resource* pResource, RenderTargetViewDescription* pDesc, CpuDescriptorHandle DestDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[20]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void CreateDepthStencilView(ID3D12Resource* pResource, DepthStencilViewDescription* pDesc, CpuDescriptorHandle DestDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pResource, pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void CreateSampler(SamplerDescription* pDesc, CpuDescriptorHandle DestDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[23]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[24]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[25]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[26]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[27]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[28]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[29]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[30]))((ID3D12Device14*)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, Handle* pHandle) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[31]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult OpenSharedHandle(Handle NTHandle, Guid* riid, void** ppvObj) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[32]))((ID3D12Device14*)Unsafe.AsPointer(ref this), NTHandle, riid, ppvObj); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult OpenSharedHandleByName(ushort* Name, uint Access, Handle* pNTHandle) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[33]))((ID3D12Device14*)Unsafe.AsPointer(ref this), Name, Access, pNTHandle); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult MakeResident(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[34]))((ID3D12Device14*)Unsafe.AsPointer(ref this), NumObjects, ppObjects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult Evict(uint NumObjects, ID3D12Pageable** ppObjects) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[35]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[36]))((ID3D12Device14*)Unsafe.AsPointer(ref this), InitialValue, Flags, riid, ppFence); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult GetDeviceRemovedReason() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[37]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[38]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[39]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pDesc, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult SetStablePowerState(Bool32 Enable) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[40]))((ID3D12Device14*)Unsafe.AsPointer(ref this), Enable); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult CreateCommandSignature(CommandSignatureDescription* pDesc, ID3D12RootSignature* pRootSignature, Guid* riid, void** ppvCommandSignature) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[41]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[42]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pTiledResource, pNumTilesForEntireResource, pPackedMipDesc, pStandardTileShapeForNonPackedMips, pNumSubresourceTilings, FirstSubresourceTilingToGet, pSubresourceTilingsForNonPackedMips); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Luid GetAdapterLuid() + { + Luid result; + return *((delegate* unmanaged[MemberFunction])(lpVtbl[43]))((ID3D12Device14*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreatePipelineLibrary(void* pLibraryBlob, nuint BlobLength, Guid* riid, void** ppPipelineLibrary) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[44]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pLibraryBlob, BlobLength, riid, ppPipelineLibrary); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult SetEventOnMultipleFenceCompletion(ID3D12Fence** ppFences, ulong* pFenceValues, uint NumFences, MultipleFenceWaitFlags Flags, Handle hEvent) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[45]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[46]))((ID3D12Device14*)Unsafe.AsPointer(ref this), NumObjects, ppObjects, pPriorities); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult CreatePipelineState(PipelineStateStreamDescription* pDesc, Guid* riid, void** ppPipelineState) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pDesc, riid, ppPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public HResult OpenExistingHeapFromAddress(void* pAddress, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[48]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pAddress, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(49)] + public HResult OpenExistingHeapFromFileMapping(Handle hFileMapping, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[49]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[50]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[51]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[52]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[53]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[54]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[55]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[56]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[57]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pOwner, riid, ppvTracker); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void RemoveDevice() + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[58]))((ID3D12Device14*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult EnumerateMetaCommands(uint* pNumMetaCommands, MetaCommandDescription* pDescs) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[59]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[60]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[61]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[62]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pDesc, riid, ppStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void GetRaytracingAccelerationStructurePrebuildInfo(BuildRaytracingAccelerationStructureInputs* pDesc, RaytracingAccelerationStructurePrebuildInfo* pInfo) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[63]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pDesc, pInfo); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(64)] + public DriverMatchingIdentifierStatus CheckDriverMatchingIdentifier(SerializedDataType SerializedDataType, SerializedDataDriverMatchingIdentifier* pIdentifierToCheck) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID3D12Device14*)Unsafe.AsPointer(ref this), SerializedDataType, pIdentifierToCheck); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(65)] + public HResult SetBackgroundProcessingMode(BackgroundProcessingMode Mode, MeasurementsAction MeasurementsAction, Handle hEventToSignalUponCompletion, Bool32* pbFurtherMeasurementsDesired) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[65]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[66]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[67]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[68]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[69]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[70]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[71]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[72]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[73]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pDesc, riid, ppvSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public HResult ShaderCacheControl(ShaderCacheKindFlags Kinds, ShaderCacheControlFlags Control) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[74]))((ID3D12Device14*)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[MemberFunction])(lpVtbl[75]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pDesc, CreatorID, riid, ppCommandQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public HResult CreateCommittedResource3(HeapProperties* pHeapProperties, HeapFlags HeapFlags, ResourceDescription1* pDesc, BarrierLayout InitialLayout, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, uint NumCastableFormats, Graphics.Dxgi.Common.Format* pCastableFormats, Guid* riidResource, void** ppvResource) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[76]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pHeapProperties, HeapFlags, pDesc, InitialLayout, pOptimizedClearValue, pProtectedSession, NumCastableFormats, pCastableFormats, riidResource, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public HResult CreatePlacedResource2(ID3D12Heap* pHeap, ulong HeapOffset, ResourceDescription1* pDesc, BarrierLayout InitialLayout, ClearValue* pOptimizedClearValue, uint NumCastableFormats, Graphics.Dxgi.Common.Format* pCastableFormats, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[77]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pHeap, HeapOffset, pDesc, InitialLayout, pOptimizedClearValue, NumCastableFormats, pCastableFormats, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public HResult CreateReservedResource2(ResourceDescription* pDesc, BarrierLayout InitialLayout, ClearValue* pOptimizedClearValue, ID3D12ProtectedResourceSession* pProtectedSession, uint NumCastableFormats, Graphics.Dxgi.Common.Format* pCastableFormats, Guid* riid, void** ppvResource) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[78]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pDesc, InitialLayout, pOptimizedClearValue, pProtectedSession, NumCastableFormats, pCastableFormats, riid, ppvResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public void CreateSampler2(SamplerDescription2* pDesc, CpuDescriptorHandle DestDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[79]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pDesc, DestDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public ResourceAllocationInfo GetResourceAllocationInfo3(uint visibleMask, uint numResourceDescs, ResourceDescription1* pResourceDescs, uint* pNumCastableFormats, Graphics.Dxgi.Common.Format** ppCastableFormats, ResourceAllocationInfo1* pResourceAllocationInfo1) + { + ResourceAllocationInfo result; + return *((delegate* unmanaged[MemberFunction])(lpVtbl[80]))((ID3D12Device14*)Unsafe.AsPointer(ref this), &result, visibleMask, numResourceDescs, pResourceDescs, pNumCastableFormats, ppCastableFormats, pResourceAllocationInfo1); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public HResult OpenExistingHeapFromAddress1(void* pAddress, nuint size, Guid* riid, void** ppvHeap) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[81]))((ID3D12Device14*)Unsafe.AsPointer(ref this), pAddress, size, riid, ppvHeap); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public HResult CreateRootSignatureFromSubobjectInLibrary(uint nodeMask, void* pLibraryBlob, nuint blobLengthInBytes, ushort* subobjectName, Guid* riid, void** ppvRootSignature) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[82]))((ID3D12Device14*)Unsafe.AsPointer(ref this), nodeMask, pLibraryBlob, blobLengthInBytes, subobjectName, riid, ppvRootSignature); + } + + public interface Interface : ID3D12Device13.Interface + { + [VtblIndex(82)] + HResult CreateRootSignatureFromSubobjectInLibrary(uint nodeMask, void* pLibraryBlob, nuint blobLengthInBytes, ushort* subobjectName, Guid* riid, void** ppvRootSignature); + } +} + diff --git a/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12DeviceConfiguration1.cs b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12DeviceConfiguration1.cs new file mode 100644 index 0000000..38902c2 --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12DeviceConfiguration1.cs @@ -0,0 +1,120 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12DeviceConfiguration1 +[Guid("ed342442-6343-4e16-bb82-a3a577874e56")] +[NativeTypeName("struct ID3D12DeviceConfiguration1 : ID3D12DeviceConfiguration")] +[NativeInheritance("ID3D12DeviceConfiguration")] +public unsafe partial struct ID3D12DeviceConfiguration1 : ID3D12DeviceConfiguration1.Interface, INativeGuid +{ + public static ref readonly Guid IID_ID3D12DeviceConfiguration1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x42, 0x24, 0x34, 0xED, + 0x43, 0x63, + 0x16, 0x4E, + 0xBB, + 0x82, + 0xA3, + 0xA5, + 0x77, + 0x87, + 0x4E, + 0x56 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceConfiguration1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public DeviceConfigurationDescription GetDesc() + { + DeviceConfigurationDescription result; + return *((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this), &result); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetEnabledExperimentalFeatures(Guid* pGuids, uint NumGuids) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this), pGuids, NumGuids); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SerializeVersionedRootSignature(VersionedRootSignatureDescription* pDesc, Graphics.Direct3D.ID3DBlob** ppResult, Graphics.Direct3D.ID3DBlob** ppError) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this), pDesc, ppResult, ppError); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateVersionedRootSignatureDeserializer(void* pBlob, nuint Size, Guid* riid, void** ppvDeserializer) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this), pBlob, Size, riid, ppvDeserializer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(void* pLibraryBlob, nuint Size, ushort* RootSignatureSubobjectName, Guid* riid, void** ppvDeserializer) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this), pLibraryBlob, Size, RootSignatureSubobjectName, riid, ppvDeserializer); + } + + public interface Interface : ID3D12DeviceConfiguration.Interface + { + [VtblIndex(7)] + HResult CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(void* pLibraryBlob, nuint Size, ushort* RootSignatureSubobjectName, Guid* riid, void** ppvDeserializer); + } +} + diff --git a/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12GBVDiagnostics.cs b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12GBVDiagnostics.cs new file mode 100644 index 0000000..e45e89d --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12GBVDiagnostics.cs @@ -0,0 +1,142 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12GBVDiagnostics +[Guid("597985ab-9b75-4dbb-be23-0761195bebee")] +[NativeTypeName("struct ID3D12GBVDiagnostics : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12GBVDiagnostics : ID3D12GBVDiagnostics.Interface, INativeGuid +{ + public static ref readonly Guid IID_ID3D12GBVDiagnostics + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAB, 0x85, 0x79, 0x59, + 0x75, 0x9B, + 0xBB, 0x4D, + 0xBE, + 0x23, + 0x07, + 0x61, + 0x19, + 0x5B, + 0xEB, + 0xEE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GBVDiagnostics)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetGBVEntireSubresourceStatesData(ID3D12Resource* pResource, int* pData, uint DataSize) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this), pResource, pData, DataSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetGBVSubresourceState(ID3D12Resource* pResource, uint Subresource, int* pData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this), pResource, Subresource, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetGBVResourceUniformState(ID3D12Resource* pResource, int* pData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this), pResource, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetGBVResourceInfo(ID3D12Resource* pResource, ResourceDescription* pResourceDesc, uint* pResourceHash, uint* pSubresourceStatesByteOffset) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this), pResource, pResourceDesc, pResourceHash, pSubresourceStatesByteOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public void GBVReserved0() + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GBVReserved1() + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this)); + } + + public interface Interface : IUnknown.Interface + { + [VtblIndex(3)] + HResult GetGBVEntireSubresourceStatesData(ID3D12Resource* pResource, int* pData, uint DataSize); + + [VtblIndex(4)] + HResult GetGBVSubresourceState(ID3D12Resource* pResource, uint Subresource, int* pData); + + [VtblIndex(5)] + HResult GetGBVResourceUniformState(ID3D12Resource* pResource, int* pData); + + [VtblIndex(6)] + HResult GetGBVResourceInfo(ID3D12Resource* pResource, ResourceDescription* pResourceDesc, uint* pResourceHash, uint* pSubresourceStatesByteOffset); + + [VtblIndex(7)] + void GBVReserved0(); + + [VtblIndex(8)] + void GBVReserved1(); + } +} + diff --git a/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12GraphicsCommandList10.cs b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12GraphicsCommandList10.cs new file mode 100644 index 0000000..b2fb21b --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12GraphicsCommandList10.cs @@ -0,0 +1,746 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12GraphicsCommandList10 +[Guid("7013c015-d161-4b63-a08c-238552dd8acc")] +[NativeTypeName("struct ID3D12GraphicsCommandList10 : ID3D12GraphicsCommandList9")] +[NativeInheritance("ID3D12GraphicsCommandList9")] +public unsafe partial struct ID3D12GraphicsCommandList10 : ID3D12GraphicsCommandList10.Interface, INativeGuid +{ + public static ref readonly Guid IID_ID3D12GraphicsCommandList10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x15, 0xC0, 0x13, 0x70, + 0x61, 0xD1, + 0x63, 0x4B, + 0xA0, + 0x8C, + 0x23, + 0x85, + 0x52, + 0xDD, + 0x8A, + 0xCC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GraphicsCommandList10)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), guid, pDataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), guid, DataSize, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), guid, pData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetName(ushort* Name) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), Name); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetDevice(Guid* riid, void** ppvDevice) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), riid, ppvDevice); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public new CommandListType GetType() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult Close() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Reset(ID3D12CommandAllocator* pAllocator, ID3D12PipelineState* pInitialState) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pAllocator, pInitialState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public void ClearState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[12]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[13]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[14]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[15]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[16]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pDst, DstX, DstY, DstZ, pSrc, pSrcBox); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public void CopyResource(ID3D12Resource* pDstResource, ID3D12Resource* pSrcResource) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[18]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[19]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pDstResource, DstSubresource, pSrcResource, SrcSubresource, Format); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology PrimitiveTopology) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[20]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), PrimitiveTopology); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public void RSSetViewports(uint NumViewports, Viewport* pViewports) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), NumViewports, pViewports); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public void RSSetScissorRects(uint NumRects, Rect* pRects) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public void OMSetBlendFactor(float* BlendFactor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[23]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), BlendFactor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public void OMSetStencilRef(uint StencilRef) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[24]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), StencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public void SetPipelineState(ID3D12PipelineState* pPipelineState) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pPipelineState); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public void ResourceBarrier(uint NumBarriers, ResourceBarrier* pBarriers) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[26]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), NumBarriers, pBarriers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public void ExecuteBundle(ID3D12GraphicsCommandList* pCommandList) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pCommandList); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public void SetDescriptorHeaps(uint NumDescriptorHeaps, ID3D12DescriptorHeap** ppDescriptorHeaps) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[28]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), NumDescriptorHeaps, ppDescriptorHeaps); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public void SetComputeRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[29]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public void SetGraphicsRootSignature(ID3D12RootSignature* pRootSignature) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[30]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pRootSignature); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public void SetComputeRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle BaseDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[31]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public void SetGraphicsRootDescriptorTable(uint RootParameterIndex, GpuDescriptorHandle BaseDescriptor) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[32]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), RootParameterIndex, BaseDescriptor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public void SetComputeRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[33]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), RootParameterIndex, SrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public void SetGraphicsRoot32BitConstant(uint RootParameterIndex, uint SrcData, uint DestOffsetIn32BitValues) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[34]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[35]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[36]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), RootParameterIndex, Num32BitValuesToSet, pSrcData, DestOffsetIn32BitValues); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public void SetComputeRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[37]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public void SetGraphicsRootConstantBufferView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[38]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public void SetComputeRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[39]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public void SetGraphicsRootShaderResourceView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[40]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public void SetComputeRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[41]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public void SetGraphicsRootUnorderedAccessView(uint RootParameterIndex, ulong BufferLocation) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[42]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), RootParameterIndex, BufferLocation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public void IASetIndexBuffer(IndexBufferView* pView) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[43]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pView); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public void IASetVertexBuffers(uint StartSlot, uint NumViews, VertexBufferView* pViews) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[44]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), StartSlot, NumViews, pViews); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public void SOSetTargets(uint StartSlot, uint NumViews, StreamOutputBufferView* pViews) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[45]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[46]))((ID3D12GraphicsCommandList10*)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, Rect* pRects) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(48)] + public void ClearRenderTargetView(CpuDescriptorHandle RenderTargetView, float* ColorRGBA, uint NumRects, Rect* pRects) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[48]))((ID3D12GraphicsCommandList10*)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, Rect* pRects) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[49]))((ID3D12GraphicsCommandList10*)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, Rect* pRects) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[50]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public void DiscardResource(ID3D12Resource* pResource, DiscardRegion* pRegion) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[51]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pResource, pRegion); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void BeginQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[52]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pQueryHeap, Type, Index); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public void EndQuery(ID3D12QueryHeap* pQueryHeap, QueryType Type, uint Index) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[53]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[54]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pQueryHeap, Type, StartIndex, NumQueries, pDestinationBuffer, AlignedDestinationBufferOffset); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public void SetPredication(ID3D12Resource* pBuffer, ulong AlignedBufferOffset, PredicationOperation Operation) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[55]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pBuffer, AlignedBufferOffset, Operation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public void SetMarker(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[56]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public void BeginEvent(uint Metadata, void* pData, uint Size) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), Metadata, pData, Size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public void EndEvent() + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[58]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[59]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[60]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[61]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[62]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), Min, Max); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(63)] + public void SetSamplePositions(uint NumSamplesPerPixel, uint NumPixels, SamplePosition* pSamplePositions) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[63]))((ID3D12GraphicsCommandList10*)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, Rect* pSrcRect, Graphics.Dxgi.Common.Format Format, ResolveMode ResolveMode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[64]))((ID3D12GraphicsCommandList10*)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[MemberFunction])(lpVtbl[65]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), Mask); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(66)] + public void WriteBufferImmediate(uint Count, WriteBufferImmediateParameter* pParams, WriteBufferImmediateMode* pModes) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[66]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), Count, pParams, pModes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(67)] + public void SetProtectedResourceSession(ID3D12ProtectedResourceSession* pProtectedResourceSession) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[67]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pProtectedResourceSession); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(68)] + public void BeginRenderPass(uint NumRenderTargets, RenderPassRenderTargetDescription* pRenderTargets, RenderPassDepthStencilDescription* pDepthStencil, RenderPassFlags Flags) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[68]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), NumRenderTargets, pRenderTargets, pDepthStencil, Flags); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(69)] + public void EndRenderPass() + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[69]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(70)] + public void InitializeMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pInitializationParametersData, nuint InitializationParametersDataSizeInBytes) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[70]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pMetaCommand, pInitializationParametersData, InitializationParametersDataSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(71)] + public void ExecuteMetaCommand(ID3D12MetaCommand* pMetaCommand, void* pExecutionParametersData, nuint ExecutionParametersDataSizeInBytes) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[71]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pMetaCommand, pExecutionParametersData, ExecutionParametersDataSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(72)] + public void BuildRaytracingAccelerationStructure(BuildRaytracingAccelerationStructureDescription* pDesc, uint NumPostbuildInfoDescs, RaytracingAccelerationStructurePostbuildInfoDescription* pPostbuildInfoDescs) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[72]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pDesc, NumPostbuildInfoDescs, pPostbuildInfoDescs); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(73)] + public void EmitRaytracingAccelerationStructurePostbuildInfo(RaytracingAccelerationStructurePostbuildInfoDescription* pDesc, uint NumSourceAccelerationStructures, ulong* pSourceAccelerationStructureData) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[73]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pDesc, NumSourceAccelerationStructures, pSourceAccelerationStructureData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(74)] + public void CopyRaytracingAccelerationStructure(ulong DestAccelerationStructureData, ulong SourceAccelerationStructureData, RaytracingAccelerationStructureCopyMode Mode) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[74]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), DestAccelerationStructureData, SourceAccelerationStructureData, Mode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(75)] + public void SetPipelineState1(ID3D12StateObject* pStateObject) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[75]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pStateObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(76)] + public void DispatchRays(DispatchRaysDescription* pDesc) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[76]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(77)] + public void RSSetShadingRate(ShadingRate baseShadingRate, ShadingRateCombiner* combiners) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[77]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), baseShadingRate, combiners); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(78)] + public void RSSetShadingRateImage(ID3D12Resource* shadingRateImage) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[78]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), shadingRateImage); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(79)] + public void DispatchMesh(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[79]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(80)] + public void Barrier(uint NumBarrierGroups, BarrierGroup* pBarrierGroups) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[80]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), NumBarrierGroups, pBarrierGroups); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(81)] + public void OMSetFrontAndBackStencilRef(uint FrontStencilRef, uint BackStencilRef) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[81]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), FrontStencilRef, BackStencilRef); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(82)] + public void RSSetDepthBias(float DepthBias, float DepthBiasClamp, float SlopeScaledDepthBias) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[82]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), DepthBias, DepthBiasClamp, SlopeScaledDepthBias); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(83)] + public void IASetIndexBufferStripCutValue(IndexBufferStripCutValue IBStripCutValue) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[83]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), IBStripCutValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(84)] + public void SetProgram(SetProgramDescription* pDesc) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[84]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pDesc); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(85)] + public void DispatchGraph(DispatchGraphDescription* pDesc) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[85]))((ID3D12GraphicsCommandList10*)Unsafe.AsPointer(ref this), pDesc); + } + + public interface Interface : ID3D12GraphicsCommandList9.Interface + { + [VtblIndex(84)] + void SetProgram(SetProgramDescription* pDesc); + + [VtblIndex(85)] + void DispatchGraph(DispatchGraphDescription* pDesc); + } +} + diff --git a/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12StateObjectProperties1.cs b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12StateObjectProperties1.cs new file mode 100644 index 0000000..7f2a2ce --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12StateObjectProperties1.cs @@ -0,0 +1,120 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12StateObjectProperties1 +[Guid("460caac7-1d24-446a-a184-ca67db494138")] +[NativeTypeName("struct ID3D12StateObjectProperties1 : ID3D12StateObjectProperties")] +[NativeInheritance("ID3D12StateObjectProperties")] +public unsafe partial struct ID3D12StateObjectProperties1 : ID3D12StateObjectProperties1.Interface, INativeGuid +{ + public static ref readonly Guid IID_ID3D12StateObjectProperties1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC7, 0xAA, 0x0C, 0x46, + 0x24, 0x1D, + 0x6A, 0x44, + 0xA1, + 0x84, + 0xCA, + 0x67, + 0xDB, + 0x49, + 0x41, + 0x38 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12StateObjectProperties1)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void* GetShaderIdentifier(ushort* pExportName) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this), pExportName); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public ulong GetShaderStackSize(ushort* pExportName) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this), pExportName); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public ulong GetPipelineStackSize() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public void SetPipelineStackSize(ulong PipelineStackSizeInBytes) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this), PipelineStackSizeInBytes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public ProgramIdentifier GetProgramIdentifier(ushort* pProgramName) + { + ProgramIdentifier result; + return *((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this), &result, pProgramName); + } + + public interface Interface : ID3D12StateObjectProperties.Interface + { + [VtblIndex(7)] + ProgramIdentifier GetProgramIdentifier(ushort* pProgramName); + } +} + diff --git a/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12WorkGraphProperties.cs b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12WorkGraphProperties.cs new file mode 100644 index 0000000..2c54435 --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct3D12/Generated/ID3D12WorkGraphProperties.cs @@ -0,0 +1,221 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct3D12; + +/// +/// ID3D12WorkGraphProperties +[Guid("065acf71-f863-4b89-82f4-02e4d5886757")] +[NativeTypeName("struct ID3D12WorkGraphProperties : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct ID3D12WorkGraphProperties : ID3D12WorkGraphProperties.Interface, INativeGuid +{ + public static ref readonly Guid IID_ID3D12WorkGraphProperties + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x71, 0xCF, 0x5A, 0x06, + 0x63, 0xF8, + 0x89, 0x4B, + 0x82, + 0xF4, + 0x02, + 0xE4, + 0xD5, + 0x88, + 0x67, + 0x57 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12WorkGraphProperties)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public uint GetNumWorkGraphs() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public ushort* GetProgramName(uint WorkGraphIndex) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), WorkGraphIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetWorkGraphIndex(ushort* pProgramName) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), pProgramName); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public uint GetNumNodes(uint WorkGraphIndex) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), WorkGraphIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public NodeId GetNodeID(uint WorkGraphIndex, uint NodeIndex) + { + NodeId result; + return *((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), &result, WorkGraphIndex, NodeIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public uint GetNodeIndex(uint WorkGraphIndex, NodeId NodeID) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), WorkGraphIndex, NodeID); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public uint GetNodeLocalRootArgumentsTableIndex(uint WorkGraphIndex, uint NodeIndex) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), WorkGraphIndex, NodeIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public uint GetNumEntrypoints(uint WorkGraphIndex) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), WorkGraphIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public NodeId GetEntrypointID(uint WorkGraphIndex, uint EntrypointIndex) + { + NodeId result; + return *((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), &result, WorkGraphIndex, EntrypointIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public uint GetEntrypointIndex(uint WorkGraphIndex, NodeId NodeID) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[12]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), WorkGraphIndex, NodeID); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public uint GetEntrypointRecordSizeInBytes(uint WorkGraphIndex, uint EntrypointIndex) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), WorkGraphIndex, EntrypointIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public void GetWorkGraphMemoryRequirements(uint WorkGraphIndex, WorkGraphMemoryRequirements* pWorkGraphMemoryRequirements) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), WorkGraphIndex, pWorkGraphMemoryRequirements); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public uint GetEntrypointRecordAlignmentInBytes(uint WorkGraphIndex, uint EntrypointIndex) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((ID3D12WorkGraphProperties*)Unsafe.AsPointer(ref this), WorkGraphIndex, EntrypointIndex); + } + + public interface Interface : IUnknown.Interface + { + [VtblIndex(3)] + uint GetNumWorkGraphs(); + + [VtblIndex(4)] + ushort* GetProgramName(uint WorkGraphIndex); + + [VtblIndex(5)] + uint GetWorkGraphIndex(ushort* pProgramName); + + [VtblIndex(6)] + uint GetNumNodes(uint WorkGraphIndex); + + [VtblIndex(7)] + NodeId GetNodeID(uint WorkGraphIndex, uint NodeIndex); + + [VtblIndex(8)] + uint GetNodeIndex(uint WorkGraphIndex, NodeId NodeID); + + [VtblIndex(9)] + uint GetNodeLocalRootArgumentsTableIndex(uint WorkGraphIndex, uint NodeIndex); + + [VtblIndex(10)] + uint GetNumEntrypoints(uint WorkGraphIndex); + + [VtblIndex(11)] + NodeId GetEntrypointID(uint WorkGraphIndex, uint EntrypointIndex); + + [VtblIndex(12)] + uint GetEntrypointIndex(uint WorkGraphIndex, NodeId NodeID); + + [VtblIndex(13)] + uint GetEntrypointRecordSizeInBytes(uint WorkGraphIndex, uint EntrypointIndex); + + [VtblIndex(14)] + void GetWorkGraphMemoryRequirements(uint WorkGraphIndex, WorkGraphMemoryRequirements* pWorkGraphMemoryRequirements); + + [VtblIndex(15)] + uint GetEntrypointRecordAlignmentInBytes(uint WorkGraphIndex, uint EntrypointIndex); + } +} + diff --git a/src/Vortice.Win32.Graphics.Direct3D12/Vortice.Win32.Graphics.Direct3D12.csproj b/src/Vortice.Win32.Graphics.Direct3D12/Vortice.Win32.Graphics.Direct3D12.csproj index 49fb302..2ff9ecb 100644 --- a/src/Vortice.Win32.Graphics.Direct3D12/Vortice.Win32.Graphics.Direct3D12.csproj +++ b/src/Vortice.Win32.Graphics.Direct3D12/Vortice.Win32.Graphics.Direct3D12.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 Direct3D12 bindings. $(NoWarn);CS0419;IDE0017 diff --git a/src/Vortice.Win32.Graphics.DirectComposition/Generated/IDCompositionDevice4.cs b/src/Vortice.Win32.Graphics.DirectComposition/Generated/IDCompositionDevice4.cs new file mode 100644 index 0000000..dd6e079 --- /dev/null +++ b/src/Vortice.Win32.Graphics.DirectComposition/Generated/IDCompositionDevice4.cs @@ -0,0 +1,370 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.DirectComposition; + +/// +/// IDCompositionDevice4 +[Guid("85fc5cca-2da6-494c-86b6-4a775c049b8a")] +[NativeTypeName("struct IDCompositionDevice4 : IDCompositionDevice3")] +[NativeInheritance("IDCompositionDevice3")] +public unsafe partial struct IDCompositionDevice4 : IDCompositionDevice4.Interface, INativeGuid +{ + public static ref readonly Guid IID_IDCompositionDevice4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCA, 0x5C, 0xFC, 0x85, + 0xA6, 0x2D, + 0x4C, 0x49, + 0x86, + 0xB6, + 0x4A, + 0x77, + 0x5C, + 0x04, + 0x9B, + 0x8A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionDevice4)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult Commit() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult WaitForCommitCompletion() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult GetFrameStatistics(FrameStatistics* statistics) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), statistics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult CreateVisual(IDCompositionVisual2** visual) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), visual); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateSurfaceFactory(IUnknown* renderingDevice, IDCompositionSurfaceFactory** surfaceFactory) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), renderingDevice, surfaceFactory); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult CreateSurface(uint width, uint height, Graphics.Dxgi.Common.Format pixelFormat, Graphics.Dxgi.Common.AlphaMode alphaMode, IDCompositionSurface** surface) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), width, height, pixelFormat, alphaMode, surface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult CreateVirtualSurface(uint initialWidth, uint initialHeight, Graphics.Dxgi.Common.Format pixelFormat, Graphics.Dxgi.Common.AlphaMode alphaMode, IDCompositionVirtualSurface** virtualSurface) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), initialWidth, initialHeight, pixelFormat, alphaMode, virtualSurface); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateTranslateTransform(IDCompositionTranslateTransform** translateTransform) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), translateTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateScaleTransform(IDCompositionScaleTransform** scaleTransform) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), scaleTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult CreateRotateTransform(IDCompositionRotateTransform** rotateTransform) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[12]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), rotateTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult CreateSkewTransform(IDCompositionSkewTransform** skewTransform) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), skewTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult CreateMatrixTransform(IDCompositionMatrixTransform** matrixTransform) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), matrixTransform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult CreateTransformGroup(IDCompositionTransform** transforms, uint elements, IDCompositionTransform** transformGroup) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), transforms, elements, transformGroup); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult CreateTranslateTransform3D(IDCompositionTranslateTransform3D** translateTransform3D) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), translateTransform3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult CreateScaleTransform3D(IDCompositionScaleTransform3D** scaleTransform3D) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), scaleTransform3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateRotateTransform3D(IDCompositionRotateTransform3D** rotateTransform3D) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), rotateTransform3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateMatrixTransform3D(IDCompositionMatrixTransform3D** matrixTransform3D) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), matrixTransform3D); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public HResult CreateTransform3DGroup(IDCompositionTransform3D** transforms3D, uint elements, IDCompositionTransform3D** transform3DGroup) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[20]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), transforms3D, elements, transform3DGroup); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateEffectGroup(IDCompositionEffectGroup** effectGroup) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), effectGroup); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateRectangleClip(IDCompositionRectangleClip** clip) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), clip); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateAnimation(IDCompositionAnimation** animation) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[23]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), animation); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult CreateGaussianBlurEffect(IDCompositionGaussianBlurEffect** gaussianBlurEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[24]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), gaussianBlurEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(25)] + public HResult CreateBrightnessEffect(IDCompositionBrightnessEffect** brightnessEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), brightnessEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult CreateColorMatrixEffect(IDCompositionColorMatrixEffect** colorMatrixEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[26]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), colorMatrixEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateShadowEffect(IDCompositionShadowEffect** shadowEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), shadowEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult CreateHueRotationEffect(IDCompositionHueRotationEffect** hueRotationEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[28]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), hueRotationEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public HResult CreateSaturationEffect(IDCompositionSaturationEffect** saturationEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[29]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), saturationEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateTurbulenceEffect(IDCompositionTurbulenceEffect** turbulenceEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[30]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), turbulenceEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateLinearTransferEffect(IDCompositionLinearTransferEffect** linearTransferEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[31]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), linearTransferEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public HResult CreateTableTransferEffect(IDCompositionTableTransferEffect** tableTransferEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[32]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), tableTransferEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult CreateCompositeEffect(IDCompositionCompositeEffect** compositeEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[33]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), compositeEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult CreateBlendEffect(IDCompositionBlendEffect** blendEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[34]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), blendEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult CreateArithmeticCompositeEffect(IDCompositionArithmeticCompositeEffect** arithmeticCompositeEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[35]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), arithmeticCompositeEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateAffineTransform2DEffect(IDCompositionAffineTransform2DEffect** affineTransform2dEffect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[36]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), affineTransform2dEffect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult CheckCompositionTextureSupport(IUnknown* renderingDevice, Bool32* supportsCompositionTextures) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[37]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), renderingDevice, supportsCompositionTextures); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult CreateCompositionTexture(IUnknown* d3dTexture, IDCompositionTexture** compositionTexture) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[38]))((IDCompositionDevice4*)Unsafe.AsPointer(ref this), d3dTexture, compositionTexture); + } + + public interface Interface : IDCompositionDevice3.Interface + { + [VtblIndex(37)] + HResult CheckCompositionTextureSupport(IUnknown* renderingDevice, Bool32* supportsCompositionTextures); + + [VtblIndex(38)] + HResult CreateCompositionTexture(IUnknown* d3dTexture, IDCompositionTexture** compositionTexture); + } +} + diff --git a/src/Vortice.Win32.Graphics.DirectComposition/Generated/IDCompositionTexture.cs b/src/Vortice.Win32.Graphics.DirectComposition/Generated/IDCompositionTexture.cs new file mode 100644 index 0000000..af88e4d --- /dev/null +++ b/src/Vortice.Win32.Graphics.DirectComposition/Generated/IDCompositionTexture.cs @@ -0,0 +1,120 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.DirectComposition; + +/// +/// IDCompositionTexture +[Guid("929bb1aa-725f-433b-abd7-273075a835f2")] +[NativeTypeName("struct IDCompositionTexture : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDCompositionTexture : IDCompositionTexture.Interface, INativeGuid +{ + public static ref readonly Guid IID_IDCompositionTexture + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0xB1, 0x9B, 0x92, + 0x5F, 0x72, + 0x3B, 0x43, + 0xAB, + 0xD7, + 0x27, + 0x30, + 0x75, + 0xA8, + 0x35, + 0xF2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDCompositionTexture)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((IDCompositionTexture*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((IDCompositionTexture*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((IDCompositionTexture*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetSourceRect(Win32.Numerics.Rect* sourceRect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((IDCompositionTexture*)Unsafe.AsPointer(ref this), sourceRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetColorSpace(Graphics.Dxgi.Common.ColorSpaceType colorSpace) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((IDCompositionTexture*)Unsafe.AsPointer(ref this), colorSpace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetAlphaMode(Graphics.Dxgi.Common.AlphaMode alphaMode) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IDCompositionTexture*)Unsafe.AsPointer(ref this), alphaMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult GetAvailableFence(ulong* fenceValue, Guid* iid, void** availableFence) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IDCompositionTexture*)Unsafe.AsPointer(ref this), fenceValue, iid, availableFence); + } + + public interface Interface : IUnknown.Interface + { + [VtblIndex(3)] + HResult SetSourceRect(Win32.Numerics.Rect* sourceRect); + + [VtblIndex(4)] + HResult SetColorSpace(Graphics.Dxgi.Common.ColorSpaceType colorSpace); + + [VtblIndex(5)] + HResult SetAlphaMode(Graphics.Dxgi.Common.AlphaMode alphaMode); + + [VtblIndex(6)] + HResult GetAvailableFence(ulong* fenceValue, Guid* iid, void** availableFence); + } +} + diff --git a/src/Vortice.Win32.Graphics.DirectComposition/Vortice.Win32.Graphics.DirectComposition.csproj b/src/Vortice.Win32.Graphics.DirectComposition/Vortice.Win32.Graphics.DirectComposition.csproj index 60cad5a..d728529 100644 --- a/src/Vortice.Win32.Graphics.DirectComposition/Vortice.Win32.Graphics.DirectComposition.csproj +++ b/src/Vortice.Win32.Graphics.DirectComposition/Vortice.Win32.Graphics.DirectComposition.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 DirectComposition bindings. $(NoWarn);CS0419;IDE0017 diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/Graphics.DirectWrite.Apis.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/Graphics.DirectWrite.Apis.cs index bd7dc36..78c6f32 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/Graphics.DirectWrite.Apis.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/Graphics.DirectWrite.Apis.cs @@ -26,5 +26,7 @@ public static partial class Apis public static readonly HResult DWRITE_E_TOOMANYDOWNLOADS = -2003283952; public const uint DWRITE_STANDARD_FONT_AXIS_COUNT = 5; + + public const uint DWRITE_NO_PALETTE_INDEX = 65535; } diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/Graphics.DirectWrite.Enums.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/Graphics.DirectWrite.Enums.cs index 9f9a022..62ee6d7 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/Graphics.DirectWrite.Enums.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/Graphics.DirectWrite.Enums.cs @@ -77,6 +77,9 @@ public enum GlyphImageFormats /// /// DWRITE_GLYPH_IMAGE_FORMATS_PREMULTIPLIED_B8G8R8A8 PremultipliedB8g8r8a8 = 128, + /// + /// DWRITE_GLYPH_IMAGE_FORMATS_COLR_PAINT_TREE + ColrPaintTree = 256, } /// @@ -2171,3 +2174,163 @@ public enum FontSourceType /// DWRITE_FONT_SOURCE_TYPE_REMOTE_FONT_PROVIDER RemoteFontProvider = 4, } + +/// +/// DWRITE_PAINT_FEATURE_LEVEL +public enum PaintFeatureLevel +{ + /// + /// DWRITE_PAINT_FEATURE_LEVEL_NONE + None = 0, + /// + /// DWRITE_PAINT_FEATURE_LEVEL_COLR_V0 + ColrV0 = 1, + /// + /// DWRITE_PAINT_FEATURE_LEVEL_COLR_V1 + ColrV1 = 2, +} + +/// +/// DWRITE_PAINT_ATTRIBUTES +[Flags] +public enum PaintAttributes +{ + /// + /// DWRITE_PAINT_ATTRIBUTES_NONE + None = 0, + /// + /// DWRITE_PAINT_ATTRIBUTES_USES_PALETTE + UsesPalette = 1, + /// + /// DWRITE_PAINT_ATTRIBUTES_USES_TEXT_COLOR + UsesTextColor = 2, +} + +/// +/// DWRITE_COLOR_COMPOSITE_MODE +public enum ColorCompositeMode +{ + /// + /// DWRITE_COLOR_COMPOSITE_CLEAR + DWRITE_COLOR_COMPOSITE_CLEAR = 0, + /// + /// DWRITE_COLOR_COMPOSITE_SRC + DWRITE_COLOR_COMPOSITE_SRC = 1, + /// + /// DWRITE_COLOR_COMPOSITE_DEST + DWRITE_COLOR_COMPOSITE_DEST = 2, + /// + /// DWRITE_COLOR_COMPOSITE_SRC_OVER + DWRITE_COLOR_COMPOSITE_SRC_OVER = 3, + /// + /// DWRITE_COLOR_COMPOSITE_DEST_OVER + DWRITE_COLOR_COMPOSITE_DEST_OVER = 4, + /// + /// DWRITE_COLOR_COMPOSITE_SRC_IN + DWRITE_COLOR_COMPOSITE_SRC_IN = 5, + /// + /// DWRITE_COLOR_COMPOSITE_DEST_IN + DWRITE_COLOR_COMPOSITE_DEST_IN = 6, + /// + /// DWRITE_COLOR_COMPOSITE_SRC_OUT + DWRITE_COLOR_COMPOSITE_SRC_OUT = 7, + /// + /// DWRITE_COLOR_COMPOSITE_DEST_OUT + DWRITE_COLOR_COMPOSITE_DEST_OUT = 8, + /// + /// DWRITE_COLOR_COMPOSITE_SRC_ATOP + DWRITE_COLOR_COMPOSITE_SRC_ATOP = 9, + /// + /// DWRITE_COLOR_COMPOSITE_DEST_ATOP + DWRITE_COLOR_COMPOSITE_DEST_ATOP = 10, + /// + /// DWRITE_COLOR_COMPOSITE_XOR + DWRITE_COLOR_COMPOSITE_XOR = 11, + /// + /// DWRITE_COLOR_COMPOSITE_PLUS + DWRITE_COLOR_COMPOSITE_PLUS = 12, + /// + /// DWRITE_COLOR_COMPOSITE_SCREEN + DWRITE_COLOR_COMPOSITE_SCREEN = 13, + /// + /// DWRITE_COLOR_COMPOSITE_OVERLAY + DWRITE_COLOR_COMPOSITE_OVERLAY = 14, + /// + /// DWRITE_COLOR_COMPOSITE_DARKEN + DWRITE_COLOR_COMPOSITE_DARKEN = 15, + /// + /// DWRITE_COLOR_COMPOSITE_LIGHTEN + DWRITE_COLOR_COMPOSITE_LIGHTEN = 16, + /// + /// DWRITE_COLOR_COMPOSITE_COLOR_DODGE + DWRITE_COLOR_COMPOSITE_COLOR_DODGE = 17, + /// + /// DWRITE_COLOR_COMPOSITE_COLOR_BURN + DWRITE_COLOR_COMPOSITE_COLOR_BURN = 18, + /// + /// DWRITE_COLOR_COMPOSITE_HARD_LIGHT + DWRITE_COLOR_COMPOSITE_HARD_LIGHT = 19, + /// + /// DWRITE_COLOR_COMPOSITE_SOFT_LIGHT + DWRITE_COLOR_COMPOSITE_SOFT_LIGHT = 20, + /// + /// DWRITE_COLOR_COMPOSITE_DIFFERENCE + DWRITE_COLOR_COMPOSITE_DIFFERENCE = 21, + /// + /// DWRITE_COLOR_COMPOSITE_EXCLUSION + DWRITE_COLOR_COMPOSITE_EXCLUSION = 22, + /// + /// DWRITE_COLOR_COMPOSITE_MULTIPLY + DWRITE_COLOR_COMPOSITE_MULTIPLY = 23, + /// + /// DWRITE_COLOR_COMPOSITE_HSL_HUE + DWRITE_COLOR_COMPOSITE_HSL_HUE = 24, + /// + /// DWRITE_COLOR_COMPOSITE_HSL_SATURATION + DWRITE_COLOR_COMPOSITE_HSL_SATURATION = 25, + /// + /// DWRITE_COLOR_COMPOSITE_HSL_COLOR + DWRITE_COLOR_COMPOSITE_HSL_COLOR = 26, + /// + /// DWRITE_COLOR_COMPOSITE_HSL_LUMINOSITY + DWRITE_COLOR_COMPOSITE_HSL_LUMINOSITY = 27, +} + +/// +/// DWRITE_PAINT_TYPE +public enum PaintType +{ + /// + /// DWRITE_PAINT_TYPE_NONE + None = 0, + /// + /// DWRITE_PAINT_TYPE_LAYERS + Layers = 1, + /// + /// DWRITE_PAINT_TYPE_SOLID_GLYPH + SolidGlyph = 2, + /// + /// DWRITE_PAINT_TYPE_SOLID + Solid = 3, + /// + /// DWRITE_PAINT_TYPE_LINEAR_GRADIENT + LinearGradient = 4, + /// + /// DWRITE_PAINT_TYPE_RADIAL_GRADIENT + RadialGradient = 5, + /// + /// DWRITE_PAINT_TYPE_SWEEP_GRADIENT + SweepGradient = 6, + /// + /// DWRITE_PAINT_TYPE_GLYPH + Glyph = 7, + /// + /// DWRITE_PAINT_TYPE_COLOR_GLYPH + ColorGlyph = 8, + /// + /// DWRITE_PAINT_TYPE_TRANSFORM + Transform = 9, + /// + /// DWRITE_PAINT_TYPE_COMPOSITE + Composite = 10, +} diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/Graphics.DirectWrite.Structs.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/Graphics.DirectWrite.Structs.cs index 3b78b9f..9502d35 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/Graphics.DirectWrite.Structs.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/Graphics.DirectWrite.Structs.cs @@ -833,3 +833,293 @@ public partial struct FontAxisRange /// public float maxValue; } + +/// +/// DWRITE_BITMAP_DATA_BGRA32 +public partial struct BitmapDataBgra32 +{ + /// + public uint width; + + /// + public uint height; + + /// + public unsafe uint* pixels; +} + +/// +/// DWRITE_PAINT_COLOR +public partial struct PaintColor +{ + /// + public Color4 value; + + /// + public ushort paletteEntryIndex; + + /// + public float alphaMultiplier; + + /// + public PaintAttributes colorAttributes; +} + +/// +/// DWRITE_PAINT_ELEMENT +public partial struct PaintElement +{ + /// + public PaintType paintType; + + /// + public PAINT_UNION paint; + + [UnscopedRef] + public ref PAINT_UNION.PAINT_LAYERS layers + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref paint.layers; + } + } + + [UnscopedRef] + public ref PAINT_UNION.PAINT_SOLID_GLYPH solidGlyph + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref paint.solidGlyph; + } + } + + [UnscopedRef] + public ref PaintColor solid + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref paint.solid; + } + } + + [UnscopedRef] + public ref PAINT_UNION.PAINT_LINEAR_GRADIENT linearGradient + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref paint.linearGradient; + } + } + + [UnscopedRef] + public ref PAINT_UNION.PAINT_RADIAL_GRADIENT radialGradient + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref paint.radialGradient; + } + } + + [UnscopedRef] + public ref PAINT_UNION.PAINT_SWEEP_GRADIENT sweepGradient + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref paint.sweepGradient; + } + } + + [UnscopedRef] + public ref PAINT_UNION.PAINT_GLYPH glyph + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref paint.glyph; + } + } + + [UnscopedRef] + public ref PAINT_UNION.PAINT_COLOR_GLYPH colorGlyph + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref paint.colorGlyph; + } + } + + [UnscopedRef] + public ref Matrix3x2 transform + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref paint.transform; + } + } + + [UnscopedRef] + public ref PAINT_UNION.PAINT_COMPOSITE composite + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + return ref paint.composite; + } + } + + [StructLayout(LayoutKind.Explicit)] + public partial struct PAINT_UNION + { + /// + [FieldOffset(0)] + public PAINT_UNION.PAINT_LAYERS layers; + + /// + [FieldOffset(0)] + public PAINT_UNION.PAINT_SOLID_GLYPH solidGlyph; + + /// + [FieldOffset(0)] + public PaintColor solid; + + /// + [FieldOffset(0)] + public PAINT_UNION.PAINT_LINEAR_GRADIENT linearGradient; + + /// + [FieldOffset(0)] + public PAINT_UNION.PAINT_RADIAL_GRADIENT radialGradient; + + /// + [FieldOffset(0)] + public PAINT_UNION.PAINT_SWEEP_GRADIENT sweepGradient; + + /// + [FieldOffset(0)] + public PAINT_UNION.PAINT_GLYPH glyph; + + /// + [FieldOffset(0)] + public PAINT_UNION.PAINT_COLOR_GLYPH colorGlyph; + + /// + [FieldOffset(0)] + public Matrix3x2 transform; + + /// + [FieldOffset(0)] + public PAINT_UNION.PAINT_COMPOSITE composite; + + public partial struct PAINT_COMPOSITE + { + /// + public ColorCompositeMode mode; + } + public partial struct PAINT_GLYPH + { + /// + public uint glyphIndex; + } + public partial struct PAINT_RADIAL_GRADIENT + { + /// + public uint extendMode; + + /// + public uint gradientStopCount; + + /// + public float x0; + + /// + public float y0; + + /// + public float radius0; + + /// + public float x1; + + /// + public float y1; + + /// + public float radius1; + } + public partial struct PAINT_SOLID_GLYPH + { + /// + public uint glyphIndex; + + /// + public PaintColor color; + } + public partial struct PAINT_COLOR_GLYPH + { + /// + public uint glyphIndex; + + /// + public Win32.Numerics.RectF clipBox; + } + public partial struct PAINT_LINEAR_GRADIENT + { + /// + public uint extendMode; + + /// + public uint gradientStopCount; + + /// + public float x0; + + /// + public float y0; + + /// + public float x1; + + /// + public float y1; + + /// + public float x2; + + /// + public float y2; + } + public partial struct PAINT_LAYERS + { + /// + public uint childCount; + } + public partial struct PAINT_SWEEP_GRADIENT + { + /// + public uint extendMode; + + /// + public uint gradientStopCount; + + /// + public float centerX; + + /// + public float centerY; + + /// + public float startAngle; + + /// + public float endAngle; + } + } +} diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteBitmapRenderTarget2.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteBitmapRenderTarget2.cs new file mode 100644 index 0000000..205e133 --- /dev/null +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteBitmapRenderTarget2.cs @@ -0,0 +1,167 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteBitmapRenderTarget2 +[Guid("c553a742-fc01-44da-a66e-b8b9ed6c3995")] +[NativeTypeName("struct IDWriteBitmapRenderTarget2 : IDWriteBitmapRenderTarget1")] +[NativeInheritance("IDWriteBitmapRenderTarget1")] +public unsafe partial struct IDWriteBitmapRenderTarget2 : IDWriteBitmapRenderTarget2.Interface, INativeGuid +{ + public static ref readonly Guid IID_IDWriteBitmapRenderTarget2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x42, 0xA7, 0x53, 0xC5, + 0x01, 0xFC, + 0xDA, 0x44, + 0xA6, + 0x6E, + 0xB8, + 0xB9, + 0xED, + 0x6C, + 0x39, + 0x95 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteBitmapRenderTarget2)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, IDWriteRenderingParams* renderingParams, uint textColor, Rect* blackBoxRect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, measuringMode, glyphRun, renderingParams, textColor, blackBoxRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public IntPtr GetMemoryDC() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public float GetPixelsPerDip() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPixelsPerDip(float pixelsPerDip) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this), pixelsPerDip); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetCurrentTransform(Matrix3x2* transform) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetCurrentTransform(Matrix3x2* transform) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSize(System.Drawing.Size* size) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this), size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Resize(uint width, uint height) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this), width, height); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult SetTextAntialiasMode(TextAntialiasMode antialiasMode) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[12]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetBitmapData(BitmapDataBgra32* bitmapData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IDWriteBitmapRenderTarget2*)Unsafe.AsPointer(ref this), bitmapData); + } + + public interface Interface : IDWriteBitmapRenderTarget1.Interface + { + [VtblIndex(13)] + HResult GetBitmapData(BitmapDataBgra32* bitmapData); + } +} + diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteBitmapRenderTarget3.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteBitmapRenderTarget3.cs new file mode 100644 index 0000000..f5d0cd9 --- /dev/null +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteBitmapRenderTarget3.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. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteBitmapRenderTarget3 +[Guid("aeec37db-c337-40f1-8e2a-9a41b167b238")] +[NativeTypeName("struct IDWriteBitmapRenderTarget3 : IDWriteBitmapRenderTarget2")] +[NativeInheritance("IDWriteBitmapRenderTarget2")] +public unsafe partial struct IDWriteBitmapRenderTarget3 : IDWriteBitmapRenderTarget3.Interface, INativeGuid +{ + public static ref readonly Guid IID_IDWriteBitmapRenderTarget3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDB, 0x37, 0xEC, 0xAE, + 0x37, 0xC3, + 0xF1, 0x40, + 0x8E, + 0x2A, + 0x9A, + 0x41, + 0xB1, + 0x67, + 0xB2, + 0x38 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteBitmapRenderTarget3)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, IDWriteRenderingParams* renderingParams, uint textColor, Rect* blackBoxRect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, measuringMode, glyphRun, renderingParams, textColor, blackBoxRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public IntPtr GetMemoryDC() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public float GetPixelsPerDip() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetPixelsPerDip(float pixelsPerDip) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this), pixelsPerDip); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult GetCurrentTransform(Matrix3x2* transform) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult SetCurrentTransform(Matrix3x2* transform) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this), transform); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult GetSize(System.Drawing.Size* size) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this), size); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult Resize(uint width, uint height) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this), width, height); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public TextAntialiasMode GetTextAntialiasMode() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(12)] + public HResult SetTextAntialiasMode(TextAntialiasMode antialiasMode) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[12]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this), antialiasMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult GetBitmapData(BitmapDataBgra32* bitmapData) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this), bitmapData); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public PaintFeatureLevel GetPaintFeatureLevel() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(15)] + public HResult DrawPaintGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, GlyphImageFormats glyphImageFormat, uint textColor, uint colorPaletteIndex, Rect* blackBoxRect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, measuringMode, glyphRun, glyphImageFormat, textColor, colorPaletteIndex, blackBoxRect); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult DrawGlyphRunWithColorSupport(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, IDWriteRenderingParams* renderingParams, uint textColor, uint colorPaletteIndex, Rect* blackBoxRect) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IDWriteBitmapRenderTarget3*)Unsafe.AsPointer(ref this), baselineOriginX, baselineOriginY, measuringMode, glyphRun, renderingParams, textColor, colorPaletteIndex, blackBoxRect); + } + + public interface Interface : IDWriteBitmapRenderTarget2.Interface + { + [VtblIndex(14)] + PaintFeatureLevel GetPaintFeatureLevel(); + + [VtblIndex(15)] + HResult DrawPaintGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, GlyphImageFormats glyphImageFormat, uint textColor, uint colorPaletteIndex, Rect* blackBoxRect); + + [VtblIndex(16)] + HResult DrawGlyphRunWithColorSupport(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, IDWriteRenderingParams* renderingParams, uint textColor, uint colorPaletteIndex, Rect* blackBoxRect); + } +} + diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory.cs index 732b0d7..931169f 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory.cs @@ -193,17 +193,17 @@ public unsafe partial struct IDWriteFactory : IDWriteFactory.Interface, INativeG /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(18)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + public HResult CreateTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((IDWriteFactory*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + return ((delegate* unmanaged[MemberFunction])(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, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + public HResult CreateGdiCompatibleTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); } /// @@ -286,10 +286,10 @@ public unsafe partial struct IDWriteFactory : IDWriteFactory.Interface, INativeG HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop); [VtblIndex(18)] - HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout); + HResult CreateTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout); [VtblIndex(19)] - HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout); + HResult CreateGdiCompatibleTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout); [VtblIndex(20)] HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign); diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory1.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory1.cs index 0495ba4..2e9201e 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory1.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory1.cs @@ -193,17 +193,17 @@ public unsafe partial struct IDWriteFactory1 : IDWriteFactory1.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(18)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + public HResult CreateTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + return ((delegate* unmanaged[MemberFunction])(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, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + public HResult CreateGdiCompatibleTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory2.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory2.cs index 5377e0d..1ddf05b 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory2.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory2.cs @@ -193,17 +193,17 @@ public unsafe partial struct IDWriteFactory2 : IDWriteFactory2.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(18)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + public HResult CreateTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + return ((delegate* unmanaged[MemberFunction])(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, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + public HResult CreateGdiCompatibleTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory3.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory3.cs index fc369f3..a239df8 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory3.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory3.cs @@ -193,17 +193,17 @@ public unsafe partial struct IDWriteFactory3 : IDWriteFactory3.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(18)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + public HResult CreateTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + return ((delegate* unmanaged[MemberFunction])(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, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + public HResult CreateGdiCompatibleTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory4.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory4.cs index 01712c4..edf75d8 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory4.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory4.cs @@ -193,17 +193,17 @@ public unsafe partial struct IDWriteFactory4 : IDWriteFactory4.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(18)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + public HResult CreateTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + return ((delegate* unmanaged[MemberFunction])(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, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + public HResult CreateGdiCompatibleTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory5.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory5.cs index 26c1489..66d9c73 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory5.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory5.cs @@ -193,17 +193,17 @@ public unsafe partial struct IDWriteFactory5 : IDWriteFactory5.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(18)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + public HResult CreateTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + return ((delegate* unmanaged[MemberFunction])(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, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + public HResult CreateGdiCompatibleTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory6.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory6.cs index b6d92d6..88564d0 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory6.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory6.cs @@ -193,17 +193,17 @@ public unsafe partial struct IDWriteFactory6 : IDWriteFactory6.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(18)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + public HResult CreateTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + return ((delegate* unmanaged[MemberFunction])(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, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + public HResult CreateGdiCompatibleTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory7.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory7.cs index 184cceb..98c26ff 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory7.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory7.cs @@ -193,17 +193,17 @@ public unsafe partial struct IDWriteFactory7 : IDWriteFactory7.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(18)] - public HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + public HResult CreateTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + return ((delegate* unmanaged[MemberFunction])(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, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + public HResult CreateGdiCompatibleTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutWidth, layoutHeight, pixelsPerDip, transform, useGdiNatural, textLayout); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory8.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory8.cs new file mode 100644 index 0000000..d1b4136 --- /dev/null +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFactory8.cs @@ -0,0 +1,519 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFactory8 +[Guid("ee0a7fb5-def4-4c23-a454-c9c7dc878398")] +[NativeTypeName("struct IDWriteFactory8 : IDWriteFactory7")] +[NativeInheritance("IDWriteFactory7")] +public unsafe partial struct IDWriteFactory8 : IDWriteFactory8.Interface, INativeGuid +{ + public static ref readonly Guid IID_IDWriteFactory8 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB5, 0x7F, 0x0A, 0xEE, + 0xF4, 0xDE, + 0x23, 0x4C, + 0xA4, + 0x54, + 0xC9, + 0xC7, + 0xDC, + 0x87, + 0x83, + 0x98 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFactory8)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((IDWriteFactory8*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((IDWriteFactory8*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[4]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), collectionLoader, collectionKey, collectionKeySize, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontCollectionLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[8]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[9]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontFaceType, numberOfFiles, fontFiles, faceIndex, fontFaceSimulationFlags, fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[12]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontFileLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(14)] + public HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[15]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[16]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), typography); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), gdiInterop); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public HResult CreateTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, maxWidth, maxHeight, textLayout); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult CreateGdiCompatibleTextLayout(char* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[20]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), textFormat, trimmingSign); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), textAnalyzer); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), substitutionMethod, localeName, ignoreUserOverride, numberSubstitution); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[23]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[24]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[25]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[26]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontFallback); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontFallbackBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(28)] + public HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix3x2* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[28]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[29]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, grayscaleEnhancedContrast, clearTypeLevel, pixelGeometry, renderingMode, gridFitMode, renderingParams); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[30]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[31]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[32]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[33]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[34]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), filePath, lastWriteTime, faceIndex, fontSimulations, fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(35)] + public HResult GetSystemFontSet(IDWriteFontSet** fontSet) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[35]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[36]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontSetBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[37]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontSet, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[38]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontCollection, checkForUpdates); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[39]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontDownloadQueue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult TranslateColorGlyphRun(Vector2 baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix3x2* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[40]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, Vector2 baselineOrigin, Vector2* glyphOrigins) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[41]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, Vector2 baselineOrigin, Matrix3x2* worldAndDpiTransform, Vector2* glyphOrigins) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[42]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder1** fontSetBuilder) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[43]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontSetBuilder); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult CreateInMemoryFontFileLoader(IDWriteInMemoryFontFileLoader** newLoader) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[44]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), newLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(45)] + public HResult CreateHttpFontFileLoader(ushort* referrerUrl, ushort* extraHeaders, IDWriteRemoteFontFileLoader** newLoader) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[45]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), referrerUrl, extraHeaders, newLoader); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public ContainerType AnalyzeContainerType(void* fileData, uint fileDataSize) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[47]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[48]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[49]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontFile, faceIndex, fontResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public HResult GetSystemFontSet(Bool32 includeDownloadableFonts, IDWriteFontSet1** fontSet) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[50]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(51)] + public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[51]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontFamilyModel, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[52]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), fontSet, fontFamilyModel, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public HResult CreateFontSetBuilder(IDWriteFontSetBuilder2** fontSetBuilder) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[53]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[54]))((IDWriteFactory8*)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[MemberFunction])(lpVtbl[55]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontSet); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection3** fontCollection) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[56]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontFamilyModel, fontCollection); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public HResult TranslateColorGlyphRun(Vector2 baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, PaintFeatureLevel paintFeatureLevel, MeasuringMode measuringMode, Matrix3x2* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorEnumerator) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((IDWriteFactory8*)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, paintFeatureLevel, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorEnumerator); + } + + public interface Interface : IDWriteFactory7.Interface + { + [VtblIndex(57)] + HResult TranslateColorGlyphRun(Vector2 baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, PaintFeatureLevel paintFeatureLevel, MeasuringMode measuringMode, Matrix3x2* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorEnumerator); + } +} + diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace3.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace3.cs index c631281..88ad1fa 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace3.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace3.cs @@ -425,9 +425,9 @@ public unsafe partial struct IDWriteFontFace3 : IDWriteFontFace3.Interface, INat /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(47)] - public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + public HResult AreCharactersLocal(char* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); } /// @@ -477,7 +477,7 @@ public unsafe partial struct IDWriteFontFace3 : IDWriteFontFace3.Interface, INat Bool32 IsGlyphLocal(ushort glyphId); [VtblIndex(47)] - HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal); + HResult AreCharactersLocal(char* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal); [VtblIndex(48)] HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal); diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace4.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace4.cs index 37cbeda..15bbebe 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace4.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace4.cs @@ -425,9 +425,9 @@ public unsafe partial struct IDWriteFontFace4 : IDWriteFontFace4.Interface, INat /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(47)] - public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + public HResult AreCharactersLocal(char* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace5.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace5.cs index 437a5b0..2b18f1e 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace5.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace5.cs @@ -425,9 +425,9 @@ public unsafe partial struct IDWriteFontFace5 : IDWriteFontFace5.Interface, INat /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(47)] - public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + public HResult AreCharactersLocal(char* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace6.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace6.cs index 8a7ae46..dc9bae5 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace6.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace6.cs @@ -425,9 +425,9 @@ public unsafe partial struct IDWriteFontFace6 : IDWriteFontFace6.Interface, INat /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(47)] - public HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + public HResult AreCharactersLocal(char* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), characters, characterCount, enqueueIfNotLocal, isLocal); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace7.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace7.cs new file mode 100644 index 0000000..70299c8 --- /dev/null +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFace7.cs @@ -0,0 +1,554 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWriteFontFace7 +[Guid("3945b85b-bc95-40f7-b72c-8b73bfc7e13b")] +[NativeTypeName("struct IDWriteFontFace7 : IDWriteFontFace6")] +[NativeInheritance("IDWriteFontFace6")] +public unsafe partial struct IDWriteFontFace7 : IDWriteFontFace7.Interface, INativeGuid +{ + public static ref readonly Guid IID_IDWriteFontFace7 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5B, 0xB8, 0x45, 0x39, + 0x95, 0xBC, + 0xF7, 0x40, + 0xB7, + 0x2C, + 0x8B, + 0x73, + 0xBF, + 0xC7, + 0xE1, + 0x3B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontFace7)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public new FontFaceType GetType() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), numberOfFiles, fontFiles); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public uint GetIndex() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public FontSimulations GetSimulations() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public Bool32 IsSymbolFont() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public void GetMetrics(FontMetrics* fontFaceMetrics) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public ushort GetGlyphCount() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IDWriteFontFace7*)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[MemberFunction])(lpVtbl[11]))((IDWriteFontFace7*)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[MemberFunction])(lpVtbl[12]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), openTypeTableTag, tableData, tableSize, tableContext, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(13)] + public void ReleaseFontTable(void* tableContext) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IDWriteFontFace7*)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[MemberFunction])(lpVtbl[14]))((IDWriteFontFace7*)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[MemberFunction])(lpVtbl[15]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, measuringMode, renderingParams, renderingMode); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(16)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics* fontFaceMetrics) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontFaceMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(17)] + public HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(18)] + public void GetMetrics(FontMetrics1* fontMetrics) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[18]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(19)] + public HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics1* fontMetrics) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, fontMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(20)] + public void GetCaretMetrics(CaretMetrics* caretMetrics) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[20]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), caretMetrics); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(21)] + public HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), maxRangeCount, unicodeRanges, actualRangeCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(22)] + public Bool32 IsMonospacedFont() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(23)] + public HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[23]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvances, isSideways); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(24)] + public HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[24]))((IDWriteFontFace7*)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[MemberFunction])(lpVtbl[25]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), glyphCount, glyphIndices, glyphAdvanceAdjustments); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(26)] + public Bool32 HasKerningPairs() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[26]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(27)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteFontFace7*)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[MemberFunction])(lpVtbl[28]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), glyphCount, nominalGlyphIndices, verticalGlyphIndices); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(29)] + public Bool32 HasVerticalGlyphVariants() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[29]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(30)] + public Bool32 IsColorFont() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[30]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(31)] + public uint GetColorPaletteCount() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[31]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(32)] + public uint GetPaletteEntryCount() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[32]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(33)] + public HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Color4** paletteEntries) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[33]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(34)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[34]))((IDWriteFontFace7*)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[MemberFunction])(lpVtbl[35]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), fontFaceReference); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(36)] + public void GetPanose(Panose* panose) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[36]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), panose); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(37)] + public FontWeight GetWeight() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[37]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(38)] + public FontStretch GetStretch() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[38]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(39)] + public FontStyle GetStyle() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[39]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(40)] + public HResult GetFamilyNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[40]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(41)] + public HResult GetFaceNames(IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[41]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(42)] + public HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[42]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), informationalStringID, informationalStrings, exists); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(43)] + public Bool32 HasCharacter(uint unicodeValue) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[43]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), unicodeValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(44)] + public HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[44]))((IDWriteFontFace7*)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[MemberFunction])(lpVtbl[45]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), unicodeValue); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(46)] + public Bool32 IsGlyphLocal(ushort glyphId) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), glyphId); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(47)] + public HResult AreCharactersLocal(char* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[47]))((IDWriteFontFace7*)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[MemberFunction])(lpVtbl[48]))((IDWriteFontFace7*)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[MemberFunction])(lpVtbl[49]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEmFirst, pixelsPerEmLast, glyphImageFormats); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(50)] + public GlyphImageFormats GetGlyphImageFormats() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[50]))((IDWriteFontFace7*)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[MemberFunction])(lpVtbl[51]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), glyphId, pixelsPerEm, glyphImageFormat, glyphData, glyphDataContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(52)] + public void ReleaseGlyphImageData(void* glyphDataContext) + { + ((delegate* unmanaged[MemberFunction])(lpVtbl[52]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), glyphDataContext); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(53)] + public uint GetFontAxisValueCount() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[53]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(54)] + public HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[54]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(55)] + public Bool32 HasVariations() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[55]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(56)] + public HResult GetFontResource(IDWriteFontResource** fontResource) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[56]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), fontResource); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(57)] + public Bool32 Equals(IDWriteFontFace* fontFace) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), fontFace); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(58)] + public HResult GetFamilyNames(FontFamilyModel fontFamilyModel, IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[58]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), fontFamilyModel, names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(59)] + public HResult GetFaceNames(FontFamilyModel fontFamilyModel, IDWriteLocalizedStrings** names) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[59]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), fontFamilyModel, names); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(60)] + public PaintFeatureLevel GetPaintFeatureLevel(GlyphImageFormats glyphImageFormat) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[60]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), glyphImageFormat); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(61)] + public HResult CreatePaintReader(GlyphImageFormats glyphImageFormat, PaintFeatureLevel paintFeatureLevel, IDWritePaintReader** paintReader) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[61]))((IDWriteFontFace7*)Unsafe.AsPointer(ref this), glyphImageFormat, paintFeatureLevel, paintReader); + } + + public interface Interface : IDWriteFontFace6.Interface + { + [VtblIndex(60)] + PaintFeatureLevel GetPaintFeatureLevel(GlyphImageFormats glyphImageFormat); + + [VtblIndex(61)] + HResult CreatePaintReader(GlyphImageFormats glyphImageFormat, PaintFeatureLevel paintFeatureLevel, IDWritePaintReader** paintReader); + } +} + diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFaceReference.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFaceReference.cs index 442877c..a5377d8 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFaceReference.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFaceReference.cs @@ -161,9 +161,9 @@ public unsafe partial struct IDWriteFontFaceReference : IDWriteFontFaceReference /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(14)] - public HResult EnqueueCharacterDownloadRequest(ushort* characters, uint characterCount) + public HResult EnqueueCharacterDownloadRequest(char* characters, uint characterCount) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), characters, characterCount); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), characters, characterCount); } /// @@ -218,7 +218,7 @@ public unsafe partial struct IDWriteFontFaceReference : IDWriteFontFaceReference HResult EnqueueFontDownloadRequest(); [VtblIndex(14)] - HResult EnqueueCharacterDownloadRequest(ushort* characters, uint characterCount); + HResult EnqueueCharacterDownloadRequest(char* characters, uint characterCount); [VtblIndex(15)] HResult EnqueueGlyphDownloadRequest(ushort* glyphIndices, uint glyphCount); diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFaceReference1.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFaceReference1.cs index ff82a6b..af9ea69 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFaceReference1.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontFaceReference1.cs @@ -161,9 +161,9 @@ public unsafe partial struct IDWriteFontFaceReference1 : IDWriteFontFaceReferenc /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(14)] - public HResult EnqueueCharacterDownloadRequest(ushort* characters, uint characterCount) + public HResult EnqueueCharacterDownloadRequest(char* characters, uint characterCount) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), characters, characterCount); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), characters, characterCount); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontSet3.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontSet3.cs index a35732a..542d9b0 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontSet3.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontSet3.cs @@ -281,9 +281,9 @@ public unsafe partial struct IDWriteFontSet3 : IDWriteFontSet3.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(29)] - public HResult GetFontSourceName(uint listIndex, ushort* stringBuffer, uint stringBufferSize) + public HResult GetFontSourceName(uint listIndex, char** stringBuffer, uint stringBufferSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[29]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[29]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize); } public interface Interface : IDWriteFontSet2.Interface @@ -295,7 +295,7 @@ public unsafe partial struct IDWriteFontSet3 : IDWriteFontSet3.Interface, INativ uint GetFontSourceNameLength(uint listIndex); [VtblIndex(29)] - HResult GetFontSourceName(uint listIndex, ushort* stringBuffer, uint stringBufferSize); + HResult GetFontSourceName(uint listIndex, char** stringBuffer, uint stringBufferSize); } } diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontSet4.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontSet4.cs index ef43539..c35d926 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontSet4.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteFontSet4.cs @@ -281,9 +281,9 @@ public unsafe partial struct IDWriteFontSet4 : IDWriteFontSet4.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(29)] - public HResult GetFontSourceName(uint listIndex, ushort* stringBuffer, uint stringBufferSize) + public HResult GetFontSourceName(uint listIndex, char** stringBuffer, uint stringBufferSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[29]))((IDWriteFontSet4*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[29]))((IDWriteFontSet4*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteLocalFontFileLoader.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteLocalFontFileLoader.cs index 218a709..41ad526 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteLocalFontFileLoader.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteLocalFontFileLoader.cs @@ -89,9 +89,9 @@ public unsafe partial struct IDWriteLocalFontFileLoader : IDWriteLocalFontFileLo /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] - public HResult GetFilePathFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, ushort* filePath, uint filePathSize) + public HResult GetFilePathFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, char** filePath, uint filePathSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IDWriteLocalFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, filePath, filePathSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IDWriteLocalFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, filePath, filePathSize); } /// @@ -108,7 +108,7 @@ public unsafe partial struct IDWriteLocalFontFileLoader : IDWriteLocalFontFileLo HResult GetFilePathLengthFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, uint* filePathLength); [VtblIndex(5)] - HResult GetFilePathFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, ushort* filePath, uint filePathSize); + HResult GetFilePathFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, char** filePath, uint filePathSize); [VtblIndex(6)] HResult GetLastWriteTimeFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, ulong* lastWriteTime); diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteLocalizedStrings.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteLocalizedStrings.cs index 5af01ed..1f02058 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteLocalizedStrings.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteLocalizedStrings.cs @@ -97,9 +97,9 @@ public unsafe partial struct IDWriteLocalizedStrings : IDWriteLocalizedStrings.I /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] - public HResult GetLocaleName(uint index, ushort* localeName, uint size) + public HResult GetLocaleName(uint index, char** localeName, uint size) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, localeName, size); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, localeName, size); } /// @@ -113,9 +113,9 @@ public unsafe partial struct IDWriteLocalizedStrings : IDWriteLocalizedStrings.I /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] - public HResult GetString(uint index, ushort* stringBuffer, uint size) + public HResult GetString(uint index, char** stringBuffer, uint size) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, stringBuffer, size); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, stringBuffer, size); } public interface Interface : IUnknown.Interface @@ -130,13 +130,13 @@ public unsafe partial struct IDWriteLocalizedStrings : IDWriteLocalizedStrings.I HResult GetLocaleNameLength(uint index, uint* length); [VtblIndex(6)] - HResult GetLocaleName(uint index, ushort* localeName, uint size); + HResult GetLocaleName(uint index, char** localeName, uint size); [VtblIndex(7)] HResult GetStringLength(uint index, uint* length); [VtblIndex(8)] - HResult GetString(uint index, ushort* stringBuffer, uint size); + HResult GetString(uint index, char** stringBuffer, uint size); } } diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWritePaintReader.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWritePaintReader.cs new file mode 100644 index 0000000..70dc868 --- /dev/null +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWritePaintReader.cs @@ -0,0 +1,175 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.DirectWrite; + +/// +/// IDWritePaintReader +[Guid("8128e912-3b97-42a5-ab6c-24aad3a86e54")] +[NativeTypeName("struct IDWritePaintReader : IUnknown")] +[NativeInheritance("IUnknown")] +public unsafe partial struct IDWritePaintReader : IDWritePaintReader.Interface, INativeGuid +{ + public static ref readonly Guid IID_IDWritePaintReader + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x12, 0xE9, 0x28, 0x81, + 0x97, 0x3B, + 0xA5, 0x42, + 0xAB, + 0x6C, + 0x24, + 0xAA, + 0xD3, + 0xA8, + 0x6E, + 0x54 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWritePaintReader)); + + public void** lpVtbl; + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[0]))((IDWritePaintReader*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[1]))((IDWritePaintReader*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[2]))((IDWritePaintReader*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public HResult SetCurrentGlyph(uint glyphIndex, PaintElement* paintElement, uint structSize, Win32.Numerics.RectF** clipBox, PaintAttributes* glyphAttributes) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((IDWritePaintReader*)Unsafe.AsPointer(ref this), glyphIndex, paintElement, structSize, clipBox, glyphAttributes); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public HResult SetTextColor(Color4* textColor) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((IDWritePaintReader*)Unsafe.AsPointer(ref this), textColor); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HResult SetColorPaletteIndex(uint colorPaletteIndex) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IDWritePaintReader*)Unsafe.AsPointer(ref this), colorPaletteIndex); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(6)] + public HResult SetCustomColorPalette(Color4** paletteEntries, uint paletteEntryCount) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IDWritePaintReader*)Unsafe.AsPointer(ref this), paletteEntries, paletteEntryCount); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HResult MoveToFirstChild(PaintElement* paintElement, uint structSize) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((IDWritePaintReader*)Unsafe.AsPointer(ref this), paintElement, structSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(8)] + public HResult MoveToNextSibling(PaintElement* paintElement, uint structSize) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IDWritePaintReader*)Unsafe.AsPointer(ref this), paintElement, structSize); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(9)] + public HResult MoveToParent() + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IDWritePaintReader*)Unsafe.AsPointer(ref this)); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(10)] + public HResult GetGradientStops(uint firstGradientStopIndex, uint gradientStopCount, Graphics.Direct2D.Common.GradientStop* gradientStops) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IDWritePaintReader*)Unsafe.AsPointer(ref this), firstGradientStopIndex, gradientStopCount, gradientStops); + } + + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(11)] + public HResult GetGradientStopColors(uint firstGradientStopIndex, uint gradientStopCount, PaintColor* gradientStopColors) + { + return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((IDWritePaintReader*)Unsafe.AsPointer(ref this), firstGradientStopIndex, gradientStopCount, gradientStopColors); + } + + public interface Interface : IUnknown.Interface + { + [VtblIndex(3)] + HResult SetCurrentGlyph(uint glyphIndex, PaintElement* paintElement, uint structSize, Win32.Numerics.RectF** clipBox, PaintAttributes* glyphAttributes); + + [VtblIndex(4)] + HResult SetTextColor(Color4* textColor); + + [VtblIndex(5)] + HResult SetColorPaletteIndex(uint colorPaletteIndex); + + [VtblIndex(6)] + HResult SetCustomColorPalette(Color4** paletteEntries, uint paletteEntryCount); + + [VtblIndex(7)] + HResult MoveToFirstChild(PaintElement* paintElement, uint structSize); + + [VtblIndex(8)] + HResult MoveToNextSibling(PaintElement* paintElement, uint structSize); + + [VtblIndex(9)] + HResult MoveToParent(); + + [VtblIndex(10)] + HResult GetGradientStops(uint firstGradientStopIndex, uint gradientStopCount, Graphics.Direct2D.Common.GradientStop* gradientStops); + + [VtblIndex(11)] + HResult GetGradientStopColors(uint firstGradientStopIndex, uint gradientStopCount, PaintColor* gradientStopColors); + } +} + diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteStringList.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteStringList.cs index 26b4403..73dc4c6 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteStringList.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteStringList.cs @@ -89,9 +89,9 @@ public unsafe partial struct IDWriteStringList : IDWriteStringList.Interface, IN /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] - public HResult GetLocaleName(uint listIndex, ushort* localeName, uint size) + public HResult GetLocaleName(uint listIndex, char** localeName, uint size) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, localeName, size); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[5]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, localeName, size); } /// @@ -105,9 +105,9 @@ public unsafe partial struct IDWriteStringList : IDWriteStringList.Interface, IN /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(7)] - public HResult GetString(uint listIndex, ushort* stringBuffer, uint stringBufferSize) + public HResult GetString(uint listIndex, char** stringBuffer, uint stringBufferSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[7]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize); } public interface Interface : IUnknown.Interface @@ -119,13 +119,13 @@ public unsafe partial struct IDWriteStringList : IDWriteStringList.Interface, IN HResult GetLocaleNameLength(uint listIndex, uint* length); [VtblIndex(5)] - HResult GetLocaleName(uint listIndex, ushort* localeName, uint size); + HResult GetLocaleName(uint listIndex, char** localeName, uint size); [VtblIndex(6)] HResult GetStringLength(uint listIndex, uint* length); [VtblIndex(7)] - HResult GetString(uint listIndex, ushort* stringBuffer, uint stringBufferSize); + HResult GetString(uint listIndex, char** stringBuffer, uint stringBufferSize); } } diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextAnalyzer.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextAnalyzer.cs index 4820c02..6864227 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextAnalyzer.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextAnalyzer.cs @@ -105,25 +105,25 @@ public unsafe partial struct IDWriteTextAnalyzer : IDWriteTextAnalyzer.Interface /// [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) + public HResult GetGlyphs(char* 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[MemberFunction])(lpVtbl[7]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isSideways, isRightToLeft, scriptAnalysis, localeName, numberSubstitution, features, featureRangeLengths, featureRanges, maxGlyphCount, clusterMap, textProps, glyphIndices, glyphProps, actualGlyphCount); + return ((delegate* unmanaged[MemberFunction])(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) + public HResult GetGlyphPlacements(char* 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[MemberFunction])(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); + return ((delegate* unmanaged[MemberFunction])(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, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) + public HResult GetGdiCompatibleGlyphPlacements(char* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) { - return ((delegate* unmanaged[MemberFunction])(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); + return ((delegate* unmanaged[MemberFunction])(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); } public interface Interface : IUnknown.Interface @@ -141,13 +141,13 @@ public unsafe partial struct IDWriteTextAnalyzer : IDWriteTextAnalyzer.Interface HResult AnalyzeLineBreakpoints(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink); [VtblIndex(7)] - 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); + HResult GetGlyphs(char* 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); [VtblIndex(8)] - 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); + HResult GetGlyphPlacements(char* 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); [VtblIndex(9)] - HResult GetGdiCompatibleGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets); + HResult GetGdiCompatibleGlyphPlacements(char* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets); } } diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextAnalyzer1.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextAnalyzer1.cs index b5e4d5d..e5e9bd1 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextAnalyzer1.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextAnalyzer1.cs @@ -105,25 +105,25 @@ public unsafe partial struct IDWriteTextAnalyzer1 : IDWriteTextAnalyzer1.Interfa /// [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) + public HResult GetGlyphs(char* 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[MemberFunction])(lpVtbl[7]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isSideways, isRightToLeft, scriptAnalysis, localeName, numberSubstitution, features, featureRangeLengths, featureRanges, maxGlyphCount, clusterMap, textProps, glyphIndices, glyphProps, actualGlyphCount); + return ((delegate* unmanaged[MemberFunction])(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) + public HResult GetGlyphPlacements(char* 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[MemberFunction])(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); + return ((delegate* unmanaged[MemberFunction])(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, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) + public HResult GetGdiCompatibleGlyphPlacements(char* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) { - return ((delegate* unmanaged[MemberFunction])(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); + return ((delegate* unmanaged[MemberFunction])(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); } /// @@ -169,17 +169,17 @@ public unsafe partial struct IDWriteTextAnalyzer1 : IDWriteTextAnalyzer1.Interfa /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(15)] - public HResult GetTextComplexity(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32* isTextSimple, uint* textLengthRead, ushort* glyphIndices) + public HResult GetTextComplexity(char* textString, uint textLength, IDWriteFontFace* fontFace, Bool32* isTextSimple, uint* textLengthRead, ushort* glyphIndices) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isTextSimple, textLengthRead, glyphIndices); + return ((delegate* unmanaged[MemberFunction])(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) + public HResult GetJustificationOpportunities(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, uint textLength, uint glyphCount, char* textString, ushort* clusterMap, ShapingGlyphProperties* glyphProperties, JustificationOpportunity* justificationOpportunities) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, textString, clusterMap, glyphProperties, justificationOpportunities); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, textString, clusterMap, glyphProperties, justificationOpportunities); } /// @@ -216,10 +216,10 @@ public unsafe partial struct IDWriteTextAnalyzer1 : IDWriteTextAnalyzer1.Interfa HResult GetScriptProperties(ScriptAnalysis scriptAnalysis, ScriptProperties* scriptProperties); [VtblIndex(15)] - HResult GetTextComplexity(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32* isTextSimple, uint* textLengthRead, ushort* glyphIndices); + HResult GetTextComplexity(char* textString, uint textLength, IDWriteFontFace* fontFace, Bool32* isTextSimple, uint* textLengthRead, ushort* glyphIndices); [VtblIndex(16)] - HResult GetJustificationOpportunities(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, uint textLength, uint glyphCount, ushort* textString, ushort* clusterMap, ShapingGlyphProperties* glyphProperties, JustificationOpportunity* justificationOpportunities); + HResult GetJustificationOpportunities(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, uint textLength, uint glyphCount, char* textString, ushort* clusterMap, ShapingGlyphProperties* glyphProperties, JustificationOpportunity* justificationOpportunities); [VtblIndex(17)] HResult JustifyGlyphAdvances(float lineWidth, uint glyphCount, JustificationOpportunity* justificationOpportunities, float* glyphAdvances, GlyphOffset* glyphOffsets, float* justifiedGlyphAdvances, GlyphOffset* justifiedGlyphOffsets); diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextAnalyzer2.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextAnalyzer2.cs index 63214e6..51c37ca 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextAnalyzer2.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextAnalyzer2.cs @@ -105,25 +105,25 @@ public unsafe partial struct IDWriteTextAnalyzer2 : IDWriteTextAnalyzer2.Interfa /// [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) + public HResult GetGlyphs(char* 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[MemberFunction])(lpVtbl[7]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isSideways, isRightToLeft, scriptAnalysis, localeName, numberSubstitution, features, featureRangeLengths, featureRanges, maxGlyphCount, clusterMap, textProps, glyphIndices, glyphProps, actualGlyphCount); + return ((delegate* unmanaged[MemberFunction])(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) + public HResult GetGlyphPlacements(char* 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[MemberFunction])(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); + return ((delegate* unmanaged[MemberFunction])(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, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) + public HResult GetGdiCompatibleGlyphPlacements(char* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets) { - return ((delegate* unmanaged[MemberFunction])(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); + return ((delegate* unmanaged[MemberFunction])(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); } /// @@ -169,17 +169,17 @@ public unsafe partial struct IDWriteTextAnalyzer2 : IDWriteTextAnalyzer2.Interfa /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(15)] - public HResult GetTextComplexity(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32* isTextSimple, uint* textLengthRead, ushort* glyphIndices) + public HResult GetTextComplexity(char* textString, uint textLength, IDWriteFontFace* fontFace, Bool32* isTextSimple, uint* textLengthRead, ushort* glyphIndices) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), textString, textLength, fontFace, isTextSimple, textLengthRead, glyphIndices); + return ((delegate* unmanaged[MemberFunction])(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) + public HResult GetJustificationOpportunities(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, uint textLength, uint glyphCount, char* textString, ushort* clusterMap, ShapingGlyphProperties* glyphProperties, JustificationOpportunity* justificationOpportunities) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, textString, clusterMap, glyphProperties, justificationOpportunities); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, textString, clusterMap, glyphProperties, justificationOpportunities); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat.cs index fd5e536..8ca6d99 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat.cs @@ -217,9 +217,9 @@ public unsafe partial struct IDWriteTextFormat : IDWriteTextFormat.Interface, IN /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(21)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + public HResult GetFontFamilyName(char** fontFamilyName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); } /// @@ -265,9 +265,9 @@ public unsafe partial struct IDWriteTextFormat : IDWriteTextFormat.Interface, IN /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) + public HResult GetLocaleName(char** localeName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), localeName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), localeName, nameSize); } public interface Interface : IUnknown.Interface @@ -327,7 +327,7 @@ public unsafe partial struct IDWriteTextFormat : IDWriteTextFormat.Interface, IN uint GetFontFamilyNameLength(); [VtblIndex(21)] - HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize); + HResult GetFontFamilyName(char** fontFamilyName, uint nameSize); [VtblIndex(22)] FontWeight GetFontWeight(); @@ -345,7 +345,7 @@ public unsafe partial struct IDWriteTextFormat : IDWriteTextFormat.Interface, IN uint GetLocaleNameLength(); [VtblIndex(27)] - HResult GetLocaleName(ushort* localeName, uint nameSize); + HResult GetLocaleName(char** localeName, uint nameSize); } } diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat1.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat1.cs index ba43a2f..025c881 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat1.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat1.cs @@ -217,9 +217,9 @@ public unsafe partial struct IDWriteTextFormat1 : IDWriteTextFormat1.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(21)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + public HResult GetFontFamilyName(char** fontFamilyName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); } /// @@ -265,9 +265,9 @@ public unsafe partial struct IDWriteTextFormat1 : IDWriteTextFormat1.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) + public HResult GetLocaleName(char** localeName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), localeName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), localeName, nameSize); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat2.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat2.cs index 8bf817e..4ca606e 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat2.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat2.cs @@ -217,9 +217,9 @@ public unsafe partial struct IDWriteTextFormat2 : IDWriteTextFormat2.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(21)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + public HResult GetFontFamilyName(char** fontFamilyName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); } /// @@ -265,9 +265,9 @@ public unsafe partial struct IDWriteTextFormat2 : IDWriteTextFormat2.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) + public HResult GetLocaleName(char** localeName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), localeName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), localeName, nameSize); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat3.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat3.cs index d8ffee5..dec7e3c 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat3.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextFormat3.cs @@ -217,9 +217,9 @@ public unsafe partial struct IDWriteTextFormat3 : IDWriteTextFormat3.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(21)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + public HResult GetFontFamilyName(char** fontFamilyName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); } /// @@ -265,9 +265,9 @@ public unsafe partial struct IDWriteTextFormat3 : IDWriteTextFormat3.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) + public HResult GetLocaleName(char** localeName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), localeName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), localeName, nameSize); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout.cs index 6acc954..0b113d7 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout.cs @@ -217,9 +217,9 @@ public unsafe partial struct IDWriteTextLayout : IDWriteTextLayout.Interface, IN /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(21)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + public HResult GetFontFamilyName(char** fontFamilyName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); } /// @@ -265,9 +265,9 @@ public unsafe partial struct IDWriteTextLayout : IDWriteTextLayout.Interface, IN /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) + public HResult GetLocaleName(char** localeName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), localeName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), localeName, nameSize); } /// @@ -417,9 +417,9 @@ public unsafe partial struct IDWriteTextLayout : IDWriteTextLayout.Interface, IN /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(46)] - public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) + public HResult GetFontFamilyName(uint currentPosition, char** fontFamilyName, uint nameSize, TextRange* textRange) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); } /// @@ -505,9 +505,9 @@ public unsafe partial struct IDWriteTextLayout : IDWriteTextLayout.Interface, IN /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(57)] - public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) + public HResult GetLocaleName(uint currentPosition, char** localeName, uint nameSize, TextRange* textRange) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); } /// @@ -639,7 +639,7 @@ public unsafe partial struct IDWriteTextLayout : IDWriteTextLayout.Interface, IN HResult GetFontFamilyNameLength(uint currentPosition, uint* nameLength, TextRange* textRange); [VtblIndex(46)] - HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange); + HResult GetFontFamilyName(uint currentPosition, char** fontFamilyName, uint nameSize, TextRange* textRange); [VtblIndex(47)] HResult GetFontWeight(uint currentPosition, FontWeight* fontWeight, TextRange* textRange); @@ -672,7 +672,7 @@ public unsafe partial struct IDWriteTextLayout : IDWriteTextLayout.Interface, IN HResult GetLocaleNameLength(uint currentPosition, uint* nameLength, TextRange* textRange); [VtblIndex(57)] - HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange); + HResult GetLocaleName(uint currentPosition, char** localeName, uint nameSize, TextRange* textRange); [VtblIndex(58)] HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY); diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout1.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout1.cs index 0715059..6717eef 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout1.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout1.cs @@ -217,9 +217,9 @@ public unsafe partial struct IDWriteTextLayout1 : IDWriteTextLayout1.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(21)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + public HResult GetFontFamilyName(char** fontFamilyName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); } /// @@ -265,9 +265,9 @@ public unsafe partial struct IDWriteTextLayout1 : IDWriteTextLayout1.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) + public HResult GetLocaleName(char** localeName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), localeName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), localeName, nameSize); } /// @@ -417,9 +417,9 @@ public unsafe partial struct IDWriteTextLayout1 : IDWriteTextLayout1.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(46)] - public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) + public HResult GetFontFamilyName(uint currentPosition, char** fontFamilyName, uint nameSize, TextRange* textRange) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); } /// @@ -505,9 +505,9 @@ public unsafe partial struct IDWriteTextLayout1 : IDWriteTextLayout1.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(57)] - public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) + public HResult GetLocaleName(uint currentPosition, char** localeName, uint nameSize, TextRange* textRange) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout2.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout2.cs index 54530e3..1d3c3bf 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout2.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout2.cs @@ -217,9 +217,9 @@ public unsafe partial struct IDWriteTextLayout2 : IDWriteTextLayout2.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(21)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + public HResult GetFontFamilyName(char** fontFamilyName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); } /// @@ -265,9 +265,9 @@ public unsafe partial struct IDWriteTextLayout2 : IDWriteTextLayout2.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) + public HResult GetLocaleName(char** localeName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), localeName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), localeName, nameSize); } /// @@ -417,9 +417,9 @@ public unsafe partial struct IDWriteTextLayout2 : IDWriteTextLayout2.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(46)] - public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) + public HResult GetFontFamilyName(uint currentPosition, char** fontFamilyName, uint nameSize, TextRange* textRange) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); } /// @@ -505,9 +505,9 @@ public unsafe partial struct IDWriteTextLayout2 : IDWriteTextLayout2.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(57)] - public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) + public HResult GetLocaleName(uint currentPosition, char** localeName, uint nameSize, TextRange* textRange) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout3.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout3.cs index 49ac7a8..ac434ff 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout3.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout3.cs @@ -217,9 +217,9 @@ public unsafe partial struct IDWriteTextLayout3 : IDWriteTextLayout3.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(21)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + public HResult GetFontFamilyName(char** fontFamilyName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); } /// @@ -265,9 +265,9 @@ public unsafe partial struct IDWriteTextLayout3 : IDWriteTextLayout3.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) + public HResult GetLocaleName(char** localeName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), localeName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), localeName, nameSize); } /// @@ -417,9 +417,9 @@ public unsafe partial struct IDWriteTextLayout3 : IDWriteTextLayout3.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(46)] - public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) + public HResult GetFontFamilyName(uint currentPosition, char** fontFamilyName, uint nameSize, TextRange* textRange) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); } /// @@ -505,9 +505,9 @@ public unsafe partial struct IDWriteTextLayout3 : IDWriteTextLayout3.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(57)] - public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) + public HResult GetLocaleName(uint currentPosition, char** localeName, uint nameSize, TextRange* textRange) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout4.cs b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout4.cs index b398817..bac5056 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout4.cs +++ b/src/Vortice.Win32.Graphics.DirectWrite/Generated/IDWriteTextLayout4.cs @@ -217,9 +217,9 @@ public unsafe partial struct IDWriteTextLayout4 : IDWriteTextLayout4.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(21)] - public HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize) + public HResult GetFontFamilyName(char** fontFamilyName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[21]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), fontFamilyName, nameSize); } /// @@ -265,9 +265,9 @@ public unsafe partial struct IDWriteTextLayout4 : IDWriteTextLayout4.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(27)] - public HResult GetLocaleName(ushort* localeName, uint nameSize) + public HResult GetLocaleName(char** localeName, uint nameSize) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), localeName, nameSize); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[27]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), localeName, nameSize); } /// @@ -417,9 +417,9 @@ public unsafe partial struct IDWriteTextLayout4 : IDWriteTextLayout4.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(46)] - public HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange) + public HResult GetFontFamilyName(uint currentPosition, char** fontFamilyName, uint nameSize, TextRange* textRange) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[46]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, fontFamilyName, nameSize, textRange); } /// @@ -505,9 +505,9 @@ public unsafe partial struct IDWriteTextLayout4 : IDWriteTextLayout4.Interface, /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(57)] - public HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange) + public HResult GetLocaleName(uint currentPosition, char** localeName, uint nameSize, TextRange* textRange) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[57]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), currentPosition, localeName, nameSize, textRange); } /// diff --git a/src/Vortice.Win32.Graphics.DirectWrite/Vortice.Win32.Graphics.DirectWrite.csproj b/src/Vortice.Win32.Graphics.DirectWrite/Vortice.Win32.Graphics.DirectWrite.csproj index fadccd9..900c9b6 100644 --- a/src/Vortice.Win32.Graphics.DirectWrite/Vortice.Win32.Graphics.DirectWrite.csproj +++ b/src/Vortice.Win32.Graphics.DirectWrite/Vortice.Win32.Graphics.DirectWrite.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 DirectWrite bindings. $(NoWarn);CS0419;IDE0017 diff --git a/src/Vortice.Win32.Graphics.Dxgi/Apis.cs b/src/Vortice.Win32.Graphics.Dxgi/Apis.cs index 7280217..805457f 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Apis.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Apis.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Graphics.Dxgi; @@ -7,6 +7,6 @@ unsafe partial class Apis { public static HResult CreateDXGIFactory2(bool debug, Guid* riid, void** ppFactory) { - return CreateDXGIFactory2(debug ? DXGI_CREATE_FACTORY_DEBUG : 0u, riid, ppFactory); + return CreateDXGIFactory2(debug ? CreateFactoryFlags.Debug : CreateFactoryFlags.None, riid, ppFactory); } } diff --git a/src/Vortice.Win32.Graphics.Dxgi/Dxgi.Manual.cs b/src/Vortice.Win32.Graphics.Dxgi/Dxgi.Manual.cs index 3f03ebb..f97e110 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Dxgi.Manual.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Dxgi.Manual.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using static Win32.Apis; @@ -11,7 +11,7 @@ public unsafe partial struct AdapterDescription /// public readonly string GetDescription() { - fixed (ushort* ptr = Description) + fixed (char* ptr = Description) { return GetString(ptr, 128) ?? string.Empty; } @@ -23,7 +23,7 @@ public unsafe partial struct AdapterDescription1 /// public readonly string GetDescription() { - fixed (ushort* ptr = Description) + fixed (char* ptr = Description) { return GetString(ptr, 128) ?? string.Empty; } @@ -35,7 +35,7 @@ public unsafe partial struct AdapterDescription2 /// public readonly string GetDescription() { - fixed (ushort* ptr = Description) + fixed (char* ptr = Description) { return GetString(ptr, 128) ?? string.Empty; } diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Apis.Functions.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Apis.Functions.cs index 876eef6..cbc9f72 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Apis.Functions.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Apis.Functions.cs @@ -21,7 +21,7 @@ public static unsafe partial class Apis /// [DllImport("dxgi.dll", ExactSpelling = true)] - public static extern HResult CreateDXGIFactory2(uint Flags, Guid* riid, void** ppFactory); + public static extern HResult CreateDXGIFactory2(CreateFactoryFlags Flags, Guid* riid, void** ppFactory); /// [DllImport("dxgi.dll", ExactSpelling = true)] diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Apis.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Apis.cs index 863360f..71952d4 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Apis.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Apis.cs @@ -11,22 +11,8 @@ namespace Win32.Graphics.Dxgi; public static partial class Apis { - public const uint DXGI_RESOURCE_PRIORITY_MINIMUM = 671088640; - - public const uint DXGI_RESOURCE_PRIORITY_LOW = 1342177280; - - public const uint DXGI_RESOURCE_PRIORITY_NORMAL = 2013265920; - - public const uint DXGI_RESOURCE_PRIORITY_HIGH = 2684354560; - - public const uint DXGI_RESOURCE_PRIORITY_MAXIMUM = 3355443200; - public const uint DXGI_MAX_SWAP_CHAIN_BUFFERS = 16; - public const uint DXGI_SHARED_RESOURCE_READ = 2147483648; - - public const uint DXGI_SHARED_RESOURCE_WRITE = 1; - public const uint DXGI_DEBUG_BINARY_VERSION = 1; public static ref readonly Guid DXGI_DEBUG_ALL @@ -129,8 +115,6 @@ public static partial class Apis public const uint DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT = 1024; - public const uint DXGI_CREATE_FACTORY_DEBUG = 1; - public static readonly HResult DXGI_ERROR_INVALID_CALL = -2005270527; public static readonly HResult DXGI_ERROR_NOT_FOUND = -2005270526; diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Enums.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Enums.cs index 3175b37..a6c8a90 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Enums.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Enums.cs @@ -38,6 +38,144 @@ public enum Usage : uint UnorderedAccess = 1024, } +/// +/// DXGI_PRESENT +[Flags] +public enum PresentFlags : uint +{ + None = 0, + /// + /// DXGI_PRESENT_TEST + Test = 1, + /// + /// DXGI_PRESENT_DO_NOT_SEQUENCE + DoNotSequence = 2, + /// + /// DXGI_PRESENT_RESTART + Restart = 4, + /// + /// DXGI_PRESENT_DO_NOT_WAIT + DoNotWait = 8, + /// + /// DXGI_PRESENT_STEREO_PREFER_RIGHT + StereoPreferRight = 16, + /// + /// DXGI_PRESENT_STEREO_TEMPORARY_MONO + StereoTemporaryMono = 32, + /// + /// DXGI_PRESENT_RESTRICT_TO_OUTPUT + RestrictToOutput = 64, + /// + /// DXGI_PRESENT_USE_DURATION + UseDuration = 256, + /// + /// DXGI_PRESENT_ALLOW_TEARING + AllowTearing = 512, +} + +/// +/// DXGI_ENUM_MODES +[Flags] +public enum EnumModesFlags : uint +{ + None = 0, + /// + /// DXGI_ENUM_MODES_INTERLACED + Interlaced = 1, + /// + /// DXGI_ENUM_MODES_SCALING + Scaling = 2, + /// + /// DXGI_ENUM_MODES_STEREO + Stereo = 4, + /// + /// DXGI_ENUM_MODES_DISABLED_STEREO + DisabledStereo = 8, +} + +/// +/// DXGI_MWA_FLAGS +[Flags] +public enum WindowAssociationFlags : uint +{ + None = 0, + /// + /// DXGI_MWA_NO_WINDOW_CHANGES + DXGI_MWA_NO_WINDOW_CHANGES = 1, + /// + /// DXGI_MWA_NO_ALT_ENTER + DXGI_MWA_NO_ALT_ENTER = 2, + /// + /// DXGI_MWA_NO_PRINT_SCREEN + DXGI_MWA_NO_PRINT_SCREEN = 4, + /// + /// DXGI_MWA_VALID + DXGI_MWA_VALID = 7, +} + +/// +/// DXGI_MAP_FLAGS +[Flags] +public enum MapFlags : uint +{ + None = 0, + /// + /// DXGI_MAP_READ + DXGI_MAP_READ = 1, + /// + /// DXGI_MAP_WRITE + DXGI_MAP_WRITE = 2, + /// + /// DXGI_MAP_DISCARD + DXGI_MAP_DISCARD = 4, +} + +/// +/// DXGI_RESOURCE_PRIORITY +public enum ResourcePriority : uint +{ + /// + /// DXGI_RESOURCE_PRIORITY_MINIMUM + Minimum = 671088640, + /// + /// DXGI_RESOURCE_PRIORITY_LOW + Low = 1342177280, + /// + /// DXGI_RESOURCE_PRIORITY_NORMAL + Normal = 2013265920, + /// + /// DXGI_RESOURCE_PRIORITY_HIGH + High = 2684354560, + /// + /// DXGI_RESOURCE_PRIORITY_MAXIMUM + Maximum = 3355443200, +} + +/// +/// DXGI_SHARED_RESOURCE_RW +[Flags] +public enum SharedResourceRw : uint +{ + None = 0, + /// + /// DXGI_SHARED_RESOURCE_READ + Read = 2147483648, + /// + /// DXGI_SHARED_RESOURCE_WRITE + Write = 1, +} + +/// +/// DXGI_CREATE_FACTORY_FLAGS +[Flags] +public enum CreateFactoryFlags : uint +{ + None = 0, + /// + /// DXGI_CREATE_FACTORY_DEBUG + Debug = 1, +} + /// /// DXGI_RESIDENCY public enum Residency @@ -1506,70 +1644,3 @@ public enum MessageId /// DXGI_MSG_Phone_IDXGISwapChain_GetBackgroundColor_FlipSequentialRequired Phone_IDXGISwapChain_GetBackgroundColor_FlipSequentialRequired = 1031, } -/// DXGI_MAP -[Flags] -public enum MapFlags : uint -{ - None = 0, - /// DXGI_MAP_READ - Read = 1, - /// DXGI_MAP_WRITE - Write = 2, - /// DXGI_MAP_DISCARD - Discard = 4, -} - -/// DXGI_ENUM_MODES -[Flags] -public enum EnumModesFlags : uint -{ - None = 0, - /// DXGI_ENUM_MODES_INTERLACED - Interlaced = 1, - /// DXGI_ENUM_MODES_SCALING - Scaling = 2, - /// DXGI_ENUM_MODES_STEREO - Stereo = 4, - /// DXGI_ENUM_MODES_DISABLED_STEREO - DisabledStereo = 8, -} - -/// DXGI_PRESENT -[Flags] -public enum PresentFlags : uint -{ - None = 0, - /// DXGI_PRESENT_TEST - Test = 1, - /// DXGI_PRESENT_DO_NOT_SEQUENCE - DoNotSequence = 2, - /// DXGI_PRESENT_RESTART - Restart = 4, - /// DXGI_PRESENT_DO_NOT_WAIT - DoNotWait = 8, - /// DXGI_PRESENT_STEREO_PREFER_RIGHT - StereoPreferRight = 16, - /// DXGI_PRESENT_STEREO_TEMPORARY_MONO - StereoTemporaryMono = 32, - /// DXGI_PRESENT_RESTRICT_TO_OUTPUT - RestrictToOutput = 64, - /// DXGI_PRESENT_USE_DURATION - UseDuration = 256, - /// DXGI_PRESENT_ALLOW_TEARING - AllowTearing = 512, -} - -/// DXGI_MWA -[Flags] -public enum WindowAssociationFlags : uint -{ - None = 0, - /// DXGI_MWA_NO_WINDOW_CHANGES - NoWindowChanges = 1, - /// DXGI_MWA_NO_ALT_ENTER - NoAltEnter = 2, - /// DXGI_MWA_NO_PRINT_SCREEN - NoPrintScreen = 4, - /// DXGI_MWA_VALID - Valid = 7, -} diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Structs.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Structs.cs index b1009ff..d933f63 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Structs.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/Graphics.Dxgi.Structs.cs @@ -45,7 +45,7 @@ public partial struct MappedRect public partial struct AdapterDescription { /// - public unsafe fixed ushort Description[128]; + public unsafe fixed char Description[128]; /// public uint VendorId; @@ -77,7 +77,7 @@ public partial struct AdapterDescription public partial struct OutputDescription { /// - public unsafe fixed ushort DeviceName[32]; + public unsafe fixed char DeviceName[32]; /// public Rect DesktopCoordinates; @@ -151,7 +151,7 @@ public partial struct SwapChainDescription public partial struct AdapterDescription1 { /// - public unsafe fixed ushort Description[128]; + public unsafe fixed char Description[128]; /// public uint VendorId; @@ -380,7 +380,7 @@ public partial struct PresentParameters public partial struct AdapterDescription2 { /// - public unsafe fixed ushort Description[128]; + public unsafe fixed char Description[128]; /// public uint VendorId; @@ -509,7 +509,7 @@ public partial struct HDRMetadataHdr10plus public partial struct AdapterDescription3 { /// - public unsafe fixed ushort Description[128]; + public unsafe fixed char Description[128]; /// public uint VendorId; @@ -550,7 +550,7 @@ public partial struct AdapterDescription3 public partial struct OutputDescription1 { /// - public unsafe fixed ushort DeviceName[32]; + public unsafe fixed char DeviceName[32]; /// public Rect DesktopCoordinates; diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIDecodeSwapChain.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIDecodeSwapChain.cs index c6fb6da..7748081 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIDecodeSwapChain.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIDecodeSwapChain.cs @@ -73,9 +73,9 @@ public unsafe partial struct IDXGIDecodeSwapChain : IDXGIDecodeSwapChain.Interfa /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(3)] - public HResult PresentBuffer(uint BufferToPresent, uint SyncInterval, uint Flags) + public HResult PresentBuffer(uint BufferToPresent, uint SyncInterval, PresentFlags Flags) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), BufferToPresent, SyncInterval, Flags); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[3]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), BufferToPresent, SyncInterval, Flags); } /// @@ -145,7 +145,7 @@ public unsafe partial struct IDXGIDecodeSwapChain : IDXGIDecodeSwapChain.Interfa public interface Interface : IUnknown.Interface { [VtblIndex(3)] - HResult PresentBuffer(uint BufferToPresent, uint SyncInterval, uint Flags); + HResult PresentBuffer(uint BufferToPresent, uint SyncInterval, PresentFlags Flags); [VtblIndex(4)] HResult SetSourceRect(Rect* pRect); diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory3.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory3.cs index 7b14b7f..fe0cc95 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory3.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory3.cs @@ -249,15 +249,15 @@ public unsafe partial struct IDXGIFactory3 : IDXGIFactory3.Interface, INativeGui /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(25)] - public uint GetCreationFlags() + public CreateFactoryFlags GetCreationFlags() { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((IDXGIFactory3*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((IDXGIFactory3*)Unsafe.AsPointer(ref this)); } public interface Interface : IDXGIFactory2.Interface { [VtblIndex(25)] - uint GetCreationFlags(); + CreateFactoryFlags GetCreationFlags(); } } diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory4.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory4.cs index 936b594..503fa20 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory4.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory4.cs @@ -249,9 +249,9 @@ public unsafe partial struct IDXGIFactory4 : IDXGIFactory4.Interface, INativeGui /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(25)] - public uint GetCreationFlags() + public CreateFactoryFlags GetCreationFlags() { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((IDXGIFactory4*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((IDXGIFactory4*)Unsafe.AsPointer(ref this)); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory5.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory5.cs index 9605eb4..0ff917a 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory5.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory5.cs @@ -249,9 +249,9 @@ public unsafe partial struct IDXGIFactory5 : IDXGIFactory5.Interface, INativeGui /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(25)] - public uint GetCreationFlags() + public CreateFactoryFlags GetCreationFlags() { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((IDXGIFactory5*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((IDXGIFactory5*)Unsafe.AsPointer(ref this)); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory6.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory6.cs index 2b75bf4..9eb1fd9 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory6.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory6.cs @@ -249,9 +249,9 @@ public unsafe partial struct IDXGIFactory6 : IDXGIFactory6.Interface, INativeGui /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(25)] - public uint GetCreationFlags() + public CreateFactoryFlags GetCreationFlags() { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((IDXGIFactory6*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((IDXGIFactory6*)Unsafe.AsPointer(ref this)); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory7.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory7.cs index 8dafd9c..8523014 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory7.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIFactory7.cs @@ -249,9 +249,9 @@ public unsafe partial struct IDXGIFactory7 : IDXGIFactory7.Interface, INativeGui /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(25)] - public uint GetCreationFlags() + public CreateFactoryFlags GetCreationFlags() { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((IDXGIFactory7*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[25]))((IDXGIFactory7*)Unsafe.AsPointer(ref this)); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput1.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput1.cs index da9ede2..cccb502 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput1.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput1.cs @@ -201,9 +201,9 @@ public unsafe partial struct IDXGIOutput1 : IDXGIOutput1.Interface, INativeGuid /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(19)] - public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) + public HResult GetDisplayModeList1(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, ModeDescription1* pDesc) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); } /// @@ -233,7 +233,7 @@ public unsafe partial struct IDXGIOutput1 : IDXGIOutput1.Interface, INativeGuid public interface Interface : IDXGIOutput.Interface { [VtblIndex(19)] - HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc); + HResult GetDisplayModeList1(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, ModeDescription1* pDesc); [VtblIndex(20)] HResult FindClosestMatchingMode1(ModeDescription1* pModeToMatch, ModeDescription1* pClosestMatch, IUnknown* pConcernedDevice); diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput2.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput2.cs index 6c7e6ba..66f7d81 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput2.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput2.cs @@ -201,9 +201,9 @@ public unsafe partial struct IDXGIOutput2 : IDXGIOutput2.Interface, INativeGuid /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(19)] - public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) + public HResult GetDisplayModeList1(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, ModeDescription1* pDesc) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput3.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput3.cs index ef76438..b3fd871 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput3.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput3.cs @@ -201,9 +201,9 @@ public unsafe partial struct IDXGIOutput3 : IDXGIOutput3.Interface, INativeGuid /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(19)] - public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) + public HResult GetDisplayModeList1(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, ModeDescription1* pDesc) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput4.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput4.cs index 1e7a371..7e34f4b 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput4.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput4.cs @@ -201,9 +201,9 @@ public unsafe partial struct IDXGIOutput4 : IDXGIOutput4.Interface, INativeGuid /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(19)] - public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) + public HResult GetDisplayModeList1(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, ModeDescription1* pDesc) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput5.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput5.cs index 93367cd..ebfa130 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput5.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput5.cs @@ -201,9 +201,9 @@ public unsafe partial struct IDXGIOutput5 : IDXGIOutput5.Interface, INativeGuid /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(19)] - public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) + public HResult GetDisplayModeList1(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, ModeDescription1* pDesc) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput6.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput6.cs index 1482563..afc3871 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput6.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIOutput6.cs @@ -201,9 +201,9 @@ public unsafe partial struct IDXGIOutput6 : IDXGIOutput6.Interface, INativeGuid /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(19)] - public HResult GetDisplayModeList1(Common.Format EnumFormat, uint Flags, uint* pNumModes, ModeDescription1* pDesc) + public HResult GetDisplayModeList1(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, ModeDescription1* pDesc) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[19]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIResource.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIResource.cs index 34f0240..843b247 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIResource.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIResource.cs @@ -129,17 +129,17 @@ public unsafe partial struct IDXGIResource : IDXGIResource.Interface, INativeGui /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] - public HResult SetEvictionPriority(uint EvictionPriority) + public HResult SetEvictionPriority(ResourcePriority EvictionPriority) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IDXGIResource*)Unsafe.AsPointer(ref this), EvictionPriority); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IDXGIResource*)Unsafe.AsPointer(ref this), EvictionPriority); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(11)] - public HResult GetEvictionPriority(uint* pEvictionPriority) + public HResult GetEvictionPriority(ResourcePriority* pEvictionPriority) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((IDXGIResource*)Unsafe.AsPointer(ref this), pEvictionPriority); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((IDXGIResource*)Unsafe.AsPointer(ref this), pEvictionPriority); } public interface Interface : IDXGIDeviceSubObject.Interface @@ -151,10 +151,10 @@ public unsafe partial struct IDXGIResource : IDXGIResource.Interface, INativeGui HResult GetUsage(Usage* pUsage); [VtblIndex(10)] - HResult SetEvictionPriority(uint EvictionPriority); + HResult SetEvictionPriority(ResourcePriority EvictionPriority); [VtblIndex(11)] - HResult GetEvictionPriority(uint* pEvictionPriority); + HResult GetEvictionPriority(ResourcePriority* pEvictionPriority); } } diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIResource1.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIResource1.cs index 376d88c..1fd94ce 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIResource1.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGIResource1.cs @@ -129,17 +129,17 @@ public unsafe partial struct IDXGIResource1 : IDXGIResource1.Interface, INativeG /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] - public HResult SetEvictionPriority(uint EvictionPriority) + public HResult SetEvictionPriority(ResourcePriority EvictionPriority) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IDXGIResource1*)Unsafe.AsPointer(ref this), EvictionPriority); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IDXGIResource1*)Unsafe.AsPointer(ref this), EvictionPriority); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(11)] - public HResult GetEvictionPriority(uint* pEvictionPriority) + public HResult GetEvictionPriority(ResourcePriority* pEvictionPriority) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((IDXGIResource1*)Unsafe.AsPointer(ref this), pEvictionPriority); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[11]))((IDXGIResource1*)Unsafe.AsPointer(ref this), pEvictionPriority); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISurface.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISurface.cs index b96ff9d..71fa39f 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISurface.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISurface.cs @@ -121,9 +121,9 @@ public unsafe partial struct IDXGISurface : IDXGISurface.Interface, INativeGuid /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult Map(MappedRect* pLockedRect, uint MapFlags) + public HResult Map(MappedRect* pLockedRect, MapFlags MapFlags) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IDXGISurface*)Unsafe.AsPointer(ref this), pLockedRect, MapFlags); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IDXGISurface*)Unsafe.AsPointer(ref this), pLockedRect, MapFlags); } /// @@ -140,7 +140,7 @@ public unsafe partial struct IDXGISurface : IDXGISurface.Interface, INativeGuid HResult GetDesc(SurfaceDescription* pDesc); [VtblIndex(9)] - HResult Map(MappedRect* pLockedRect, uint MapFlags); + HResult Map(MappedRect* pLockedRect, MapFlags MapFlags); [VtblIndex(10)] HResult Unmap(); diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISurface1.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISurface1.cs index 8ffe16e..c80a432 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISurface1.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISurface1.cs @@ -121,9 +121,9 @@ public unsafe partial struct IDXGISurface1 : IDXGISurface1.Interface, INativeGui /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult Map(MappedRect* pLockedRect, uint MapFlags) + public HResult Map(MappedRect* pLockedRect, MapFlags MapFlags) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IDXGISurface1*)Unsafe.AsPointer(ref this), pLockedRect, MapFlags); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IDXGISurface1*)Unsafe.AsPointer(ref this), pLockedRect, MapFlags); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISurface2.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISurface2.cs index 0eae03a..37df991 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISurface2.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISurface2.cs @@ -121,9 +121,9 @@ public unsafe partial struct IDXGISurface2 : IDXGISurface2.Interface, INativeGui /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult Map(MappedRect* pLockedRect, uint MapFlags) + public HResult Map(MappedRect* pLockedRect, MapFlags MapFlags) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IDXGISurface2*)Unsafe.AsPointer(ref this), pLockedRect, MapFlags); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IDXGISurface2*)Unsafe.AsPointer(ref this), pLockedRect, MapFlags); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain1.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain1.cs index 8f0d28a..401fe4c 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain1.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain1.cs @@ -225,9 +225,9 @@ public unsafe partial struct IDXGISwapChain1 : IDXGISwapChain1.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(22)] - public HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters) + public HResult Present1(uint SyncInterval, PresentFlags PresentFlags, PresentParameters* pPresentParameters) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); } /// @@ -293,7 +293,7 @@ public unsafe partial struct IDXGISwapChain1 : IDXGISwapChain1.Interface, INativ HResult GetCoreWindow(Guid* refiid, void** ppUnk); [VtblIndex(22)] - HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters); + HResult Present1(uint SyncInterval, PresentFlags PresentFlags, PresentParameters* pPresentParameters); [VtblIndex(23)] Bool32 IsTemporaryMonoSupported(); diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain2.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain2.cs index 5e6373d..1737c44 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain2.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain2.cs @@ -225,9 +225,9 @@ public unsafe partial struct IDXGISwapChain2 : IDXGISwapChain2.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(22)] - public HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters) + public HResult Present1(uint SyncInterval, PresentFlags PresentFlags, PresentParameters* pPresentParameters) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain3.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain3.cs index fda79a1..5fb6770 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain3.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain3.cs @@ -225,9 +225,9 @@ public unsafe partial struct IDXGISwapChain3 : IDXGISwapChain3.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(22)] - public HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters) + public HResult Present1(uint SyncInterval, PresentFlags PresentFlags, PresentParameters* pPresentParameters) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain4.cs b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain4.cs index 837a58e..9a98e06 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain4.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/Generated/IDXGISwapChain4.cs @@ -225,9 +225,9 @@ public unsafe partial struct IDXGISwapChain4 : IDXGISwapChain4.Interface, INativ /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(22)] - public HResult Present1(uint SyncInterval, uint PresentFlags, PresentParameters* pPresentParameters) + public HResult Present1(uint SyncInterval, PresentFlags PresentFlags, PresentParameters* pPresentParameters) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[22]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), SyncInterval, PresentFlags, pPresentParameters); } /// diff --git a/src/Vortice.Win32.Graphics.Dxgi/IDXGIInfoQueue.cs b/src/Vortice.Win32.Graphics.Dxgi/IDXGIInfoQueue.cs index c734eab..fe0d071 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/IDXGIInfoQueue.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/IDXGIInfoQueue.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Graphics.Dxgi; diff --git a/src/Vortice.Win32.Graphics.Dxgi/SwapChainDescription1.cs b/src/Vortice.Win32.Graphics.Dxgi/SwapChainDescription1.cs index aec92bd..9b647b8 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/SwapChainDescription1.cs +++ b/src/Vortice.Win32.Graphics.Dxgi/SwapChainDescription1.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using Win32.Graphics.Dxgi.Common; diff --git a/src/Vortice.Win32.Graphics.Dxgi/Vortice.Win32.Graphics.Dxgi.csproj b/src/Vortice.Win32.Graphics.Dxgi/Vortice.Win32.Graphics.Dxgi.csproj index 6ad19f7..0dd316f 100644 --- a/src/Vortice.Win32.Graphics.Dxgi/Vortice.Win32.Graphics.Dxgi.csproj +++ b/src/Vortice.Win32.Graphics.Dxgi/Vortice.Win32.Graphics.Dxgi.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 Dxgi bindings. $(NoWarn);CS0419;IDE0017 diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/Graphics.Imaging.Apis.Functions.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/Graphics.Imaging.Apis.Functions.cs index 38ed32b..29b8b35 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/Graphics.Imaging.Apis.Functions.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/Graphics.Imaging.Apis.Functions.cs @@ -25,7 +25,7 @@ public static unsafe partial class Apis /// [DllImport("WindowsCodecs.dll", ExactSpelling = true)] - public static extern HResult WICMapGuidToShortName(Guid* guid, uint cchName, ushort* wzName, uint* pcchActual); + public static extern HResult WICMapGuidToShortName(Guid* guid, uint cchName, char** wzName, uint* pcchActual); /// [DllImport("WindowsCodecs.dll", ExactSpelling = true)] @@ -33,7 +33,7 @@ public static unsafe partial class Apis /// [DllImport("WindowsCodecs.dll", ExactSpelling = true)] - public static extern HResult WICMapSchemaToName(Guid* guidMetadataFormat, ushort* pwzSchema, uint cchName, ushort* wzName, uint* pcchActual); + public static extern HResult WICMapSchemaToName(Guid* guidMetadataFormat, ushort* pwzSchema, uint cchName, char** wzName, uint* pcchActual); /// [DllImport("WindowsCodecs.dll", ExactSpelling = true)] diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICBitmapCodecInfo.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICBitmapCodecInfo.cs index a711990..e8ae64e 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICBitmapCodecInfo.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICBitmapCodecInfo.cs @@ -97,9 +97,9 @@ public unsafe partial struct IWICBitmapCodecInfo : IWICBitmapCodecInfo.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + public HResult GetAuthor(uint cchAuthor, char** wzAuthor, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); } /// @@ -113,25 +113,25 @@ public unsafe partial struct IWICBitmapCodecInfo : IWICBitmapCodecInfo.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + public HResult GetVersion(uint cchVersion, char** wzVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + public HResult GetSpecVersion(uint cchSpecVersion, char** wzSpecVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + public HResult GetFriendlyName(uint cchFriendlyName, char** wzFriendlyName, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); } /// @@ -153,41 +153,41 @@ public unsafe partial struct IWICBitmapCodecInfo : IWICBitmapCodecInfo.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(13)] - public HResult GetColorManagementVersion(uint cchColorManagementVersion, ushort* wzColorManagementVersion, uint* pcchActual) + public HResult GetColorManagementVersion(uint cchColorManagementVersion, char** wzColorManagementVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchColorManagementVersion, wzColorManagementVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchColorManagementVersion, wzColorManagementVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(14)] - public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) + public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, char** wzDeviceManufacturer, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(15)] - public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) + public HResult GetDeviceModels(uint cchDeviceModels, char** wzDeviceModels, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(16)] - public HResult GetMimeTypes(uint cchMimeTypes, ushort* wzMimeTypes, uint* pcchActual) + public HResult GetMimeTypes(uint cchMimeTypes, char** wzMimeTypes, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchMimeTypes, wzMimeTypes, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchMimeTypes, wzMimeTypes, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(17)] - public HResult GetFileExtensions(uint cchFileExtensions, ushort* wzFileExtensions, uint* pcchActual) + public HResult GetFileExtensions(uint cchFileExtensions, char** wzFileExtensions, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchFileExtensions, wzFileExtensions, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((IWICBitmapCodecInfo*)Unsafe.AsPointer(ref this), cchFileExtensions, wzFileExtensions, pcchActual); } /// @@ -239,19 +239,19 @@ public unsafe partial struct IWICBitmapCodecInfo : IWICBitmapCodecInfo.Interface HResult GetPixelFormats(uint cFormats, Guid* pguidPixelFormats, uint* pcActual); [VtblIndex(13)] - HResult GetColorManagementVersion(uint cchColorManagementVersion, ushort* wzColorManagementVersion, uint* pcchActual); + HResult GetColorManagementVersion(uint cchColorManagementVersion, char** wzColorManagementVersion, uint* pcchActual); [VtblIndex(14)] - HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual); + HResult GetDeviceManufacturer(uint cchDeviceManufacturer, char** wzDeviceManufacturer, uint* pcchActual); [VtblIndex(15)] - HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual); + HResult GetDeviceModels(uint cchDeviceModels, char** wzDeviceModels, uint* pcchActual); [VtblIndex(16)] - HResult GetMimeTypes(uint cchMimeTypes, ushort* wzMimeTypes, uint* pcchActual); + HResult GetMimeTypes(uint cchMimeTypes, char** wzMimeTypes, uint* pcchActual); [VtblIndex(17)] - HResult GetFileExtensions(uint cchFileExtensions, ushort* wzFileExtensions, uint* pcchActual); + HResult GetFileExtensions(uint cchFileExtensions, char** wzFileExtensions, uint* pcchActual); [VtblIndex(18)] HResult DoesSupportAnimation(Bool32* pfSupportAnimation); diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICBitmapDecoderInfo.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICBitmapDecoderInfo.cs index be8e56b..3cbf111 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICBitmapDecoderInfo.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICBitmapDecoderInfo.cs @@ -97,9 +97,9 @@ public unsafe partial struct IWICBitmapDecoderInfo : IWICBitmapDecoderInfo.Inter /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + public HResult GetAuthor(uint cchAuthor, char** wzAuthor, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); } /// @@ -113,25 +113,25 @@ public unsafe partial struct IWICBitmapDecoderInfo : IWICBitmapDecoderInfo.Inter /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + public HResult GetVersion(uint cchVersion, char** wzVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + public HResult GetSpecVersion(uint cchSpecVersion, char** wzSpecVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + public HResult GetFriendlyName(uint cchFriendlyName, char** wzFriendlyName, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); } /// @@ -153,41 +153,41 @@ public unsafe partial struct IWICBitmapDecoderInfo : IWICBitmapDecoderInfo.Inter /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(13)] - public HResult GetColorManagementVersion(uint cchColorManagementVersion, ushort* wzColorManagementVersion, uint* pcchActual) + public HResult GetColorManagementVersion(uint cchColorManagementVersion, char** wzColorManagementVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchColorManagementVersion, wzColorManagementVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchColorManagementVersion, wzColorManagementVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(14)] - public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) + public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, char** wzDeviceManufacturer, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(15)] - public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) + public HResult GetDeviceModels(uint cchDeviceModels, char** wzDeviceModels, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(16)] - public HResult GetMimeTypes(uint cchMimeTypes, ushort* wzMimeTypes, uint* pcchActual) + public HResult GetMimeTypes(uint cchMimeTypes, char** wzMimeTypes, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchMimeTypes, wzMimeTypes, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchMimeTypes, wzMimeTypes, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(17)] - public HResult GetFileExtensions(uint cchFileExtensions, ushort* wzFileExtensions, uint* pcchActual) + public HResult GetFileExtensions(uint cchFileExtensions, char** wzFileExtensions, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchFileExtensions, wzFileExtensions, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((IWICBitmapDecoderInfo*)Unsafe.AsPointer(ref this), cchFileExtensions, wzFileExtensions, pcchActual); } /// diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICBitmapEncoderInfo.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICBitmapEncoderInfo.cs index 0eb736f..871f4f9 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICBitmapEncoderInfo.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICBitmapEncoderInfo.cs @@ -97,9 +97,9 @@ public unsafe partial struct IWICBitmapEncoderInfo : IWICBitmapEncoderInfo.Inter /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + public HResult GetAuthor(uint cchAuthor, char** wzAuthor, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); } /// @@ -113,25 +113,25 @@ public unsafe partial struct IWICBitmapEncoderInfo : IWICBitmapEncoderInfo.Inter /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + public HResult GetVersion(uint cchVersion, char** wzVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + public HResult GetSpecVersion(uint cchSpecVersion, char** wzSpecVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + public HResult GetFriendlyName(uint cchFriendlyName, char** wzFriendlyName, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); } /// @@ -153,41 +153,41 @@ public unsafe partial struct IWICBitmapEncoderInfo : IWICBitmapEncoderInfo.Inter /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(13)] - public HResult GetColorManagementVersion(uint cchColorManagementVersion, ushort* wzColorManagementVersion, uint* pcchActual) + public HResult GetColorManagementVersion(uint cchColorManagementVersion, char** wzColorManagementVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchColorManagementVersion, wzColorManagementVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchColorManagementVersion, wzColorManagementVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(14)] - public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) + public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, char** wzDeviceManufacturer, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(15)] - public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) + public HResult GetDeviceModels(uint cchDeviceModels, char** wzDeviceModels, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[15]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(16)] - public HResult GetMimeTypes(uint cchMimeTypes, ushort* wzMimeTypes, uint* pcchActual) + public HResult GetMimeTypes(uint cchMimeTypes, char** wzMimeTypes, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchMimeTypes, wzMimeTypes, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[16]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchMimeTypes, wzMimeTypes, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(17)] - public HResult GetFileExtensions(uint cchFileExtensions, ushort* wzFileExtensions, uint* pcchActual) + public HResult GetFileExtensions(uint cchFileExtensions, char** wzFileExtensions, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchFileExtensions, wzFileExtensions, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[17]))((IWICBitmapEncoderInfo*)Unsafe.AsPointer(ref this), cchFileExtensions, wzFileExtensions, pcchActual); } /// diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICComponentInfo.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICComponentInfo.cs index 070b2f9..800bded 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICComponentInfo.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICComponentInfo.cs @@ -97,9 +97,9 @@ public unsafe partial struct IWICComponentInfo : IWICComponentInfo.Interface, IN /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + public HResult GetAuthor(uint cchAuthor, char** wzAuthor, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); } /// @@ -113,25 +113,25 @@ public unsafe partial struct IWICComponentInfo : IWICComponentInfo.Interface, IN /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + public HResult GetVersion(uint cchVersion, char** wzVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + public HResult GetSpecVersion(uint cchSpecVersion, char** wzSpecVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + public HResult GetFriendlyName(uint cchFriendlyName, char** wzFriendlyName, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICComponentInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); } public interface Interface : IUnknown.Interface @@ -146,19 +146,19 @@ public unsafe partial struct IWICComponentInfo : IWICComponentInfo.Interface, IN HResult GetSigningStatus(uint* pStatus); [VtblIndex(6)] - HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual); + HResult GetAuthor(uint cchAuthor, char** wzAuthor, uint* pcchActual); [VtblIndex(7)] HResult GetVendorGUID(Guid* pguidVendor); [VtblIndex(8)] - HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual); + HResult GetVersion(uint cchVersion, char** wzVersion, uint* pcchActual); [VtblIndex(9)] - HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual); + HResult GetSpecVersion(uint cchSpecVersion, char** wzSpecVersion, uint* pcchActual); [VtblIndex(10)] - HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual); + HResult GetFriendlyName(uint cchFriendlyName, char** wzFriendlyName, uint* pcchActual); } } diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICFormatConverterInfo.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICFormatConverterInfo.cs index 868e941..d5c1e99 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICFormatConverterInfo.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICFormatConverterInfo.cs @@ -97,9 +97,9 @@ public unsafe partial struct IWICFormatConverterInfo : IWICFormatConverterInfo.I /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + public HResult GetAuthor(uint cchAuthor, char** wzAuthor, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); } /// @@ -113,25 +113,25 @@ public unsafe partial struct IWICFormatConverterInfo : IWICFormatConverterInfo.I /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + public HResult GetVersion(uint cchVersion, char** wzVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + public HResult GetSpecVersion(uint cchSpecVersion, char** wzSpecVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + public HResult GetFriendlyName(uint cchFriendlyName, char** wzFriendlyName, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICFormatConverterInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); } /// diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataHandlerInfo.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataHandlerInfo.cs index 28d5513..debf79d 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataHandlerInfo.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataHandlerInfo.cs @@ -97,9 +97,9 @@ public unsafe partial struct IWICMetadataHandlerInfo : IWICMetadataHandlerInfo.I /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + public HResult GetAuthor(uint cchAuthor, char** wzAuthor, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); } /// @@ -113,25 +113,25 @@ public unsafe partial struct IWICMetadataHandlerInfo : IWICMetadataHandlerInfo.I /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + public HResult GetVersion(uint cchVersion, char** wzVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + public HResult GetSpecVersion(uint cchSpecVersion, char** wzSpecVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + public HResult GetFriendlyName(uint cchFriendlyName, char** wzFriendlyName, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); } /// @@ -153,17 +153,17 @@ public unsafe partial struct IWICMetadataHandlerInfo : IWICMetadataHandlerInfo.I /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(13)] - public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) + public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, char** wzDeviceManufacturer, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(14)] - public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) + public HResult GetDeviceModels(uint cchDeviceModels, char** wzDeviceModels, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IWICMetadataHandlerInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); } /// @@ -199,10 +199,10 @@ public unsafe partial struct IWICMetadataHandlerInfo : IWICMetadataHandlerInfo.I HResult GetContainerFormats(uint cContainerFormats, Guid* pguidContainerFormats, uint* pcchActual); [VtblIndex(13)] - HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual); + HResult GetDeviceManufacturer(uint cchDeviceManufacturer, char** wzDeviceManufacturer, uint* pcchActual); [VtblIndex(14)] - HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual); + HResult GetDeviceModels(uint cchDeviceModels, char** wzDeviceModels, uint* pcchActual); [VtblIndex(15)] HResult DoesRequireFullStream(Bool32* pfRequiresFullStream); diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataQueryReader.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataQueryReader.cs index 814809b..f2e3e0f 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataQueryReader.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataQueryReader.cs @@ -81,9 +81,9 @@ public unsafe partial struct IWICMetadataQueryReader : IWICMetadataQueryReader.I /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] - public HResult GetLocation(uint cchMaxLength, ushort* wzNamespace, uint* pcchActualLength) + public HResult GetLocation(uint cchMaxLength, char** wzNamespace, uint* pcchActualLength) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((IWICMetadataQueryReader*)Unsafe.AsPointer(ref this), cchMaxLength, wzNamespace, pcchActualLength); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((IWICMetadataQueryReader*)Unsafe.AsPointer(ref this), cchMaxLength, wzNamespace, pcchActualLength); } /// @@ -108,7 +108,7 @@ public unsafe partial struct IWICMetadataQueryReader : IWICMetadataQueryReader.I HResult GetContainerFormat(Guid* pguidContainerFormat); [VtblIndex(4)] - HResult GetLocation(uint cchMaxLength, ushort* wzNamespace, uint* pcchActualLength); + HResult GetLocation(uint cchMaxLength, char** wzNamespace, uint* pcchActualLength); [VtblIndex(5)] HResult GetMetadataByName(ushort* wzName, Com.Variant** pvarValue); diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataQueryWriter.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataQueryWriter.cs index dc4c4ba..cbcacdd 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataQueryWriter.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataQueryWriter.cs @@ -81,9 +81,9 @@ public unsafe partial struct IWICMetadataQueryWriter : IWICMetadataQueryWriter.I /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] - public HResult GetLocation(uint cchMaxLength, ushort* wzNamespace, uint* pcchActualLength) + public HResult GetLocation(uint cchMaxLength, char** wzNamespace, uint* pcchActualLength) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), cchMaxLength, wzNamespace, pcchActualLength); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[4]))((IWICMetadataQueryWriter*)Unsafe.AsPointer(ref this), cchMaxLength, wzNamespace, pcchActualLength); } /// diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataReaderInfo.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataReaderInfo.cs index 35c2d44..85e2090 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataReaderInfo.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataReaderInfo.cs @@ -97,9 +97,9 @@ public unsafe partial struct IWICMetadataReaderInfo : IWICMetadataReaderInfo.Int /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + public HResult GetAuthor(uint cchAuthor, char** wzAuthor, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); } /// @@ -113,25 +113,25 @@ public unsafe partial struct IWICMetadataReaderInfo : IWICMetadataReaderInfo.Int /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + public HResult GetVersion(uint cchVersion, char** wzVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + public HResult GetSpecVersion(uint cchSpecVersion, char** wzSpecVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + public HResult GetFriendlyName(uint cchFriendlyName, char** wzFriendlyName, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); } /// @@ -153,17 +153,17 @@ public unsafe partial struct IWICMetadataReaderInfo : IWICMetadataReaderInfo.Int /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(13)] - public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) + public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, char** wzDeviceManufacturer, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(14)] - public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) + public HResult GetDeviceModels(uint cchDeviceModels, char** wzDeviceModels, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IWICMetadataReaderInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); } /// diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataWriterInfo.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataWriterInfo.cs index 0bc6700..fbd8a76 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataWriterInfo.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICMetadataWriterInfo.cs @@ -97,9 +97,9 @@ public unsafe partial struct IWICMetadataWriterInfo : IWICMetadataWriterInfo.Int /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + public HResult GetAuthor(uint cchAuthor, char** wzAuthor, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); } /// @@ -113,25 +113,25 @@ public unsafe partial struct IWICMetadataWriterInfo : IWICMetadataWriterInfo.Int /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + public HResult GetVersion(uint cchVersion, char** wzVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + public HResult GetSpecVersion(uint cchSpecVersion, char** wzSpecVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + public HResult GetFriendlyName(uint cchFriendlyName, char** wzFriendlyName, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); } /// @@ -153,17 +153,17 @@ public unsafe partial struct IWICMetadataWriterInfo : IWICMetadataWriterInfo.Int /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(13)] - public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, ushort* wzDeviceManufacturer, uint* pcchActual) + public HResult GetDeviceManufacturer(uint cchDeviceManufacturer, char** wzDeviceManufacturer, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[13]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(14)] - public HResult GetDeviceModels(uint cchDeviceModels, ushort* wzDeviceModels, uint* pcchActual) + public HResult GetDeviceModels(uint cchDeviceModels, char** wzDeviceModels, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[14]))((IWICMetadataWriterInfo*)Unsafe.AsPointer(ref this), cchDeviceModels, wzDeviceModels, pcchActual); } /// diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICPixelFormatInfo.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICPixelFormatInfo.cs index 895ef65..6c3526f 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICPixelFormatInfo.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICPixelFormatInfo.cs @@ -97,9 +97,9 @@ public unsafe partial struct IWICPixelFormatInfo : IWICPixelFormatInfo.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + public HResult GetAuthor(uint cchAuthor, char** wzAuthor, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); } /// @@ -113,25 +113,25 @@ public unsafe partial struct IWICPixelFormatInfo : IWICPixelFormatInfo.Interface /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + public HResult GetVersion(uint cchVersion, char** wzVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + public HResult GetSpecVersion(uint cchSpecVersion, char** wzSpecVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + public HResult GetFriendlyName(uint cchFriendlyName, char** wzFriendlyName, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICPixelFormatInfo*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); } /// diff --git a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICPixelFormatInfo2.cs b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICPixelFormatInfo2.cs index 35e7b43..6937489 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Generated/IWICPixelFormatInfo2.cs +++ b/src/Vortice.Win32.Graphics.Imaging/Generated/IWICPixelFormatInfo2.cs @@ -97,9 +97,9 @@ public unsafe partial struct IWICPixelFormatInfo2 : IWICPixelFormatInfo2.Interfa /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] - public HResult GetAuthor(uint cchAuthor, ushort* wzAuthor, uint* pcchActual) + public HResult GetAuthor(uint cchAuthor, char** wzAuthor, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchAuthor, wzAuthor, pcchActual); } /// @@ -113,25 +113,25 @@ public unsafe partial struct IWICPixelFormatInfo2 : IWICPixelFormatInfo2.Interfa /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] - public HResult GetVersion(uint cchVersion, ushort* wzVersion, uint* pcchActual) + public HResult GetVersion(uint cchVersion, char** wzVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchVersion, wzVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] - public HResult GetSpecVersion(uint cchSpecVersion, ushort* wzSpecVersion, uint* pcchActual) + public HResult GetSpecVersion(uint cchSpecVersion, char** wzSpecVersion, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[9]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchSpecVersion, wzSpecVersion, pcchActual); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] - public HResult GetFriendlyName(uint cchFriendlyName, ushort* wzFriendlyName, uint* pcchActual) + public HResult GetFriendlyName(uint cchFriendlyName, char** wzFriendlyName, uint* pcchActual) { - return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); + return ((delegate* unmanaged[MemberFunction])(lpVtbl[10]))((IWICPixelFormatInfo2*)Unsafe.AsPointer(ref this), cchFriendlyName, wzFriendlyName, pcchActual); } /// diff --git a/src/Vortice.Win32.Graphics.Imaging/Vortice.Win32.Graphics.Imaging.csproj b/src/Vortice.Win32.Graphics.Imaging/Vortice.Win32.Graphics.Imaging.csproj index 1993caa..1323ce9 100644 --- a/src/Vortice.Win32.Graphics.Imaging/Vortice.Win32.Graphics.Imaging.csproj +++ b/src/Vortice.Win32.Graphics.Imaging/Vortice.Win32.Graphics.Imaging.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 WIC bindings. $(NoWarn);CS0419;IDE0017 diff --git a/src/Vortice.Win32.Media.Audio.XAudio2/Generated/Media.Audio.XAudio2.Structs.cs b/src/Vortice.Win32.Media.Audio.XAudio2/Generated/Media.Audio.XAudio2.Structs.cs index e2c5727..178d37c 100644 --- a/src/Vortice.Win32.Media.Audio.XAudio2/Generated/Media.Audio.XAudio2.Structs.cs +++ b/src/Vortice.Win32.Media.Audio.XAudio2/Generated/Media.Audio.XAudio2.Structs.cs @@ -17,10 +17,10 @@ public partial struct XAPORegistrationProperties public Guid clsid; /// - public unsafe fixed ushort FriendlyName[256]; + public unsafe fixed char FriendlyName[256]; /// - public unsafe fixed ushort CopyrightInfo[256]; + public unsafe fixed char CopyrightInfo[256]; /// public uint MajorVersion; diff --git a/src/Vortice.Win32.Media.Audio.XAudio2/Vortice.Win32.Media.Audio.XAudio2.csproj b/src/Vortice.Win32.Media.Audio.XAudio2/Vortice.Win32.Media.Audio.XAudio2.csproj index 6f601cc..c2b1c8c 100644 --- a/src/Vortice.Win32.Media.Audio.XAudio2/Vortice.Win32.Media.Audio.XAudio2.csproj +++ b/src/Vortice.Win32.Media.Audio.XAudio2/Vortice.Win32.Media.Audio.XAudio2.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 XAudio2 and X3DAudio bindings. $(NoWarn);CS0419;IDE0017 diff --git a/src/Vortice.Win32/Attributes.cs b/src/Vortice.Win32/Attributes.cs index 0d270f2..90ed118 100644 --- a/src/Vortice.Win32/Attributes.cs +++ b/src/Vortice.Win32/Attributes.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. diff --git a/src/Vortice.Win32/Bool32.cs b/src/Vortice.Win32/Bool32.cs index e393112..e2fc771 100644 --- a/src/Vortice.Win32/Bool32.cs +++ b/src/Vortice.Win32/Bool32.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32; diff --git a/src/Vortice.Win32/Com/IEnumString.cs b/src/Vortice.Win32/Com/IEnumString.cs index 30b180f..79b2521 100644 --- a/src/Vortice.Win32/Com/IEnumString.cs +++ b/src/Vortice.Win32/Com/IEnumString.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Diagnostics; diff --git a/src/Vortice.Win32/Com/IEnumUnknown.cs b/src/Vortice.Win32/Com/IEnumUnknown.cs index c0d0915..567cd11 100644 --- a/src/Vortice.Win32/Com/IEnumUnknown.cs +++ b/src/Vortice.Win32/Com/IEnumUnknown.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Diagnostics; diff --git a/src/Vortice.Win32/Com/IErrorLog.cs b/src/Vortice.Win32/Com/IErrorLog.cs index 668fca9..82ffd2e 100644 --- a/src/Vortice.Win32/Com/IErrorLog.cs +++ b/src/Vortice.Win32/Com/IErrorLog.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Com; diff --git a/src/Vortice.Win32/Com/IMalloc.cs b/src/Vortice.Win32/Com/IMalloc.cs index 42b0ace..ec77c1d 100644 --- a/src/Vortice.Win32/Com/IMalloc.cs +++ b/src/Vortice.Win32/Com/IMalloc.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Diagnostics; diff --git a/src/Vortice.Win32/Com/IPropertyBag2.cs b/src/Vortice.Win32/Com/IPropertyBag2.cs index 61e211a..46ba8af 100644 --- a/src/Vortice.Win32/Com/IPropertyBag2.cs +++ b/src/Vortice.Win32/Com/IPropertyBag2.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Diagnostics; diff --git a/src/Vortice.Win32/Com/IStream.cs b/src/Vortice.Win32/Com/IStream.cs index 2fcde50..01ad24a 100644 --- a/src/Vortice.Win32/Com/IStream.cs +++ b/src/Vortice.Win32/Com/IStream.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Com; diff --git a/src/Vortice.Win32/Com/PropertyBagMetadata.cs b/src/Vortice.Win32/Com/PropertyBagMetadata.cs index cd57a4c..ecebf01 100644 --- a/src/Vortice.Win32/Com/PropertyBagMetadata.cs +++ b/src/Vortice.Win32/Com/PropertyBagMetadata.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using static Win32.StringUtilities; @@ -24,7 +24,7 @@ public unsafe partial struct PropertyBagMetadata public VariantFullType VariantType; public ushort ClipboardFormat; public uint Hint; - public ushort* pstrName; + public char* pstrName; public Guid ClassId; public readonly string? GetName() diff --git a/src/Vortice.Win32/Com/Variant.cs b/src/Vortice.Win32/Com/Variant.cs index 27e54c2..842c6a3 100644 --- a/src/Vortice.Win32/Com/Variant.cs +++ b/src/Vortice.Win32/Com/Variant.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. #pragma warning disable CS0169 diff --git a/src/Vortice.Win32/Com/VariantElementType.cs b/src/Vortice.Win32/Com/VariantElementType.cs index 9ad250b..e249bbd 100644 --- a/src/Vortice.Win32/Com/VariantElementType.cs +++ b/src/Vortice.Win32/Com/VariantElementType.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Com; diff --git a/src/Vortice.Win32/Com/VariantFullType.cs b/src/Vortice.Win32/Com/VariantFullType.cs index e6a4e5b..2ce4510 100644 --- a/src/Vortice.Win32/Com/VariantFullType.cs +++ b/src/Vortice.Win32/Com/VariantFullType.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Diagnostics; diff --git a/src/Vortice.Win32/Com/VariantType.cs b/src/Vortice.Win32/Com/VariantType.cs index b7da954..513a288 100644 --- a/src/Vortice.Win32/Com/VariantType.cs +++ b/src/Vortice.Win32/Com/VariantType.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Com; diff --git a/src/Vortice.Win32/Generated/Graphics/Direct2D.Common/Graphics.Direct2D.Common.Structs.cs b/src/Vortice.Win32/Generated/Graphics/Direct2D.Common/Graphics.Direct2D.Common.Structs.cs index f29e60f..ca214a9 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct2D.Common/Graphics.Direct2D.Common.Structs.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct2D.Common/Graphics.Direct2D.Common.Structs.cs @@ -20,6 +20,17 @@ public partial struct PixelFormat public AlphaMode alphaMode; } +/// +/// D2D1_GRADIENT_STOP +public partial struct GradientStop +{ + /// + public float position; + + /// + public Color4 color; +} + /// /// D2D1_BEZIER_SEGMENT public partial struct BezierSegment diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/Graphics.Direct3D.Apis.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/Graphics.Direct3D.Apis.cs index 19bee0a..eb828d1 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D/Graphics.Direct3D.Apis.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/Graphics.Direct3D.Apis.cs @@ -99,6 +99,12 @@ public static partial class Apis public const uint D3D_SHADER_FEATURE_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE = 268435456; + public const uint D3D_SHADER_FEATURE_ADVANCED_TEXTURE_OPS = 536870912; + + public const uint D3D_SHADER_FEATURE_WRITEABLE_MSAA_TEXTURES = 1073741824; + + public const uint D3D_SHADER_FEATURE_SAMPLE_CMP_GRADIENT_OR_BIAS = 2147483648; + public static ref readonly Guid WKPDID_D3DDebugObjectName { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D/Graphics.Direct3D.Enums.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D/Graphics.Direct3D.Enums.cs index d358f69..00a9b01 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D/Graphics.Direct3D.Enums.cs +++ b/src/Vortice.Win32/Generated/Graphics/Direct3D/Graphics.Direct3D.Enums.cs @@ -37,6 +37,9 @@ public enum DriverType /// D3D_FEATURE_LEVEL public enum FeatureLevel { + /// + /// D3D_FEATURE_LEVEL_1_0_GENERIC + Level_1_0_Generic = 256, /// /// D3D_FEATURE_LEVEL_1_0_CORE Level_1_0_Core = 4096, @@ -862,6 +865,24 @@ public enum RegisterComponentType /// /// D3D_REGISTER_COMPONENT_FLOAT32 Float32 = 3, + /// + /// D3D_REGISTER_COMPONENT_UINT16 + UInt16 = 4, + /// + /// D3D_REGISTER_COMPONENT_SINT16 + Sint16 = 5, + /// + /// D3D_REGISTER_COMPONENT_FLOAT16 + Float16 = 6, + /// + /// D3D_REGISTER_COMPONENT_UINT64 + UInt64 = 7, + /// + /// D3D_REGISTER_COMPONENT_SINT64 + Sint64 = 8, + /// + /// D3D_REGISTER_COMPONENT_FLOAT64 + Float64 = 9, } /// diff --git a/src/Vortice.Win32.Graphics.Direct2D/GradientStop.cs b/src/Vortice.Win32/Graphics/Direct2D/GradientStop.cs similarity index 75% rename from src/Vortice.Win32.Graphics.Direct2D/GradientStop.cs rename to src/Vortice.Win32/Graphics/Direct2D/GradientStop.cs index 1e13e31..a5ebb7f 100644 --- a/src/Vortice.Win32.Graphics.Direct2D/GradientStop.cs +++ b/src/Vortice.Win32/Graphics/Direct2D/GradientStop.cs @@ -1,7 +1,7 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. -namespace Win32.Graphics.Direct2D; +namespace Win32.Graphics.Direct2D.Common; public partial struct GradientStop { diff --git a/src/Vortice.Win32/Graphics/Direct2D/PixelFormat.cs b/src/Vortice.Win32/Graphics/Direct2D/PixelFormat.cs index 43c254c..d9eac9f 100644 --- a/src/Vortice.Win32/Graphics/Direct2D/PixelFormat.cs +++ b/src/Vortice.Win32/Graphics/Direct2D/PixelFormat.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using Win32.Graphics.Dxgi.Common; diff --git a/src/Vortice.Win32/Graphics/Dxgi.Common.Manual.cs b/src/Vortice.Win32/Graphics/Dxgi.Common.Manual.cs index b25a5dd..1bc5ebf 100644 --- a/src/Vortice.Win32/Graphics/Dxgi.Common.Manual.cs +++ b/src/Vortice.Win32/Graphics/Dxgi.Common.Manual.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Graphics.Dxgi.Common; diff --git a/src/Vortice.Win32/Graphics/Dxgi/FormatHelper.cs b/src/Vortice.Win32/Graphics/Dxgi/FormatHelper.cs index 59755c5..f0464e4 100644 --- a/src/Vortice.Win32/Graphics/Dxgi/FormatHelper.cs +++ b/src/Vortice.Win32/Graphics/Dxgi/FormatHelper.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Graphics.Dxgi.Common; diff --git a/src/Vortice.Win32/Graphics/Gdi/FontSignature.cs b/src/Vortice.Win32/Graphics/Gdi/FontSignature.cs index 5ee62cb..6ffac2d 100644 --- a/src/Vortice.Win32/Graphics/Gdi/FontSignature.cs +++ b/src/Vortice.Win32/Graphics/Gdi/FontSignature.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Graphics.Gdi; diff --git a/src/Vortice.Win32/Graphics/Gdi/LogFontA.cs b/src/Vortice.Win32/Graphics/Gdi/LogFontA.cs index 0fa9961..df6bc77 100644 --- a/src/Vortice.Win32/Graphics/Gdi/LogFontA.cs +++ b/src/Vortice.Win32/Graphics/Gdi/LogFontA.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Graphics.Gdi; diff --git a/src/Vortice.Win32/Graphics/Gdi/LogFontW.cs b/src/Vortice.Win32/Graphics/Gdi/LogFontW.cs index 4acd64d..661d548 100644 --- a/src/Vortice.Win32/Graphics/Gdi/LogFontW.cs +++ b/src/Vortice.Win32/Graphics/Gdi/LogFontW.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Graphics.Gdi; diff --git a/src/Vortice.Win32/Graphics/Gdi/PaletteEntry.cs b/src/Vortice.Win32/Graphics/Gdi/PaletteEntry.cs index 4f366e5..20d4cc8 100644 --- a/src/Vortice.Win32/Graphics/Gdi/PaletteEntry.cs +++ b/src/Vortice.Win32/Graphics/Gdi/PaletteEntry.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Graphics.Gdi; diff --git a/src/Vortice.Win32/Graphics/Gdi/RgnData.cs b/src/Vortice.Win32/Graphics/Gdi/RgnData.cs index 1a11031..8b771b6 100644 --- a/src/Vortice.Win32/Graphics/Gdi/RgnData.cs +++ b/src/Vortice.Win32/Graphics/Gdi/RgnData.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Graphics.Gdi; diff --git a/src/Vortice.Win32/Graphics/Gdi/RgnDataHeader.cs b/src/Vortice.Win32/Graphics/Gdi/RgnDataHeader.cs index 6c7e62d..778b726 100644 --- a/src/Vortice.Win32/Graphics/Gdi/RgnDataHeader.cs +++ b/src/Vortice.Win32/Graphics/Gdi/RgnDataHeader.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Graphics.Gdi; diff --git a/src/Vortice.Win32/HResult.Constants.cs b/src/Vortice.Win32/HResult.Constants.cs index 50caa27..1e3582d 100644 --- a/src/Vortice.Win32/HResult.Constants.cs +++ b/src/Vortice.Win32/HResult.Constants.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32; diff --git a/src/Vortice.Win32/HResult.cs b/src/Vortice.Win32/HResult.cs index 9ad4024..4276b6d 100644 --- a/src/Vortice.Win32/HResult.cs +++ b/src/Vortice.Win32/HResult.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Diagnostics.CodeAnalysis; diff --git a/src/Vortice.Win32/Handle.cs b/src/Vortice.Win32/Handle.cs index e53fad8..776ef5d 100644 --- a/src/Vortice.Win32/Handle.cs +++ b/src/Vortice.Win32/Handle.cs @@ -1,5 +1,5 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Diagnostics.CodeAnalysis; diff --git a/src/Vortice.Win32/LargeInteger.cs b/src/Vortice.Win32/LargeInteger.cs index 647bfe9..eb2fd6d 100644 --- a/src/Vortice.Win32/LargeInteger.cs +++ b/src/Vortice.Win32/LargeInteger.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32; diff --git a/src/Vortice.Win32/Media/Audio/ADPCMCoefSet.cs b/src/Vortice.Win32/Media/Audio/ADPCMCoefSet.cs index e6b843c..0ce99e8 100644 --- a/src/Vortice.Win32/Media/Audio/ADPCMCoefSet.cs +++ b/src/Vortice.Win32/Media/Audio/ADPCMCoefSet.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Media.Audio; diff --git a/src/Vortice.Win32/Media/Audio/ADPCMWaveFormat.cs b/src/Vortice.Win32/Media/Audio/ADPCMWaveFormat.cs index dd06096..5c052fe 100644 --- a/src/Vortice.Win32/Media/Audio/ADPCMWaveFormat.cs +++ b/src/Vortice.Win32/Media/Audio/ADPCMWaveFormat.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Media.Audio; diff --git a/src/Vortice.Win32/Media/Audio/AudioStreamCategory.cs b/src/Vortice.Win32/Media/Audio/AudioStreamCategory.cs index e818166..29b6eee 100644 --- a/src/Vortice.Win32/Media/Audio/AudioStreamCategory.cs +++ b/src/Vortice.Win32/Media/Audio/AudioStreamCategory.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Media.Audio; diff --git a/src/Vortice.Win32/Media/Audio/PCMWaveFormat.cs b/src/Vortice.Win32/Media/Audio/PCMWaveFormat.cs index b58e357..140f840 100644 --- a/src/Vortice.Win32/Media/Audio/PCMWaveFormat.cs +++ b/src/Vortice.Win32/Media/Audio/PCMWaveFormat.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Media.Audio; diff --git a/src/Vortice.Win32/Media/Audio/Speakers.cs b/src/Vortice.Win32/Media/Audio/Speakers.cs index 13aee7b..b4c880d 100644 --- a/src/Vortice.Win32/Media/Audio/Speakers.cs +++ b/src/Vortice.Win32/Media/Audio/Speakers.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Media.Audio; diff --git a/src/Vortice.Win32/Media/Audio/WaveFormat.cs b/src/Vortice.Win32/Media/Audio/WaveFormat.cs index 7b29dbd..fca2bcb 100644 --- a/src/Vortice.Win32/Media/Audio/WaveFormat.cs +++ b/src/Vortice.Win32/Media/Audio/WaveFormat.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Media.Audio; diff --git a/src/Vortice.Win32/Media/Audio/WaveFormatEx.cs b/src/Vortice.Win32/Media/Audio/WaveFormatEx.cs index c2bb408..7e87332 100644 --- a/src/Vortice.Win32/Media/Audio/WaveFormatEx.cs +++ b/src/Vortice.Win32/Media/Audio/WaveFormatEx.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Media.Audio; diff --git a/src/Vortice.Win32/Media/Audio/WaveFormatExtensible.cs b/src/Vortice.Win32/Media/Audio/WaveFormatExtensible.cs index ad824f2..af53e7d 100644 --- a/src/Vortice.Win32/Media/Audio/WaveFormatExtensible.cs +++ b/src/Vortice.Win32/Media/Audio/WaveFormatExtensible.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Media.Audio; diff --git a/src/Vortice.Win32/NativeFileAccess.cs b/src/Vortice.Win32/NativeFileAccess.cs index fbdc0cc..daf0ca7 100644 --- a/src/Vortice.Win32/NativeFileAccess.cs +++ b/src/Vortice.Win32/NativeFileAccess.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32; diff --git a/src/Vortice.Win32/Numerics/Matrix4x3.cs b/src/Vortice.Win32/Numerics/Matrix4x3.cs index 1fe3229..929abec 100644 --- a/src/Vortice.Win32/Numerics/Matrix4x3.cs +++ b/src/Vortice.Win32/Numerics/Matrix4x3.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Globalization; diff --git a/src/Vortice.Win32/Numerics/Matrix5x4.cs b/src/Vortice.Win32/Numerics/Matrix5x4.cs index 2ae7658..62d0096 100644 --- a/src/Vortice.Win32/Numerics/Matrix5x4.cs +++ b/src/Vortice.Win32/Numerics/Matrix5x4.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Globalization; diff --git a/src/Vortice.Win32/Numerics/Rect.cs b/src/Vortice.Win32/Numerics/Rect.cs index 819b518..37c3ead 100644 --- a/src/Vortice.Win32/Numerics/Rect.cs +++ b/src/Vortice.Win32/Numerics/Rect.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Drawing; diff --git a/src/Vortice.Win32/Numerics/RectF.cs b/src/Vortice.Win32/Numerics/RectF.cs index dd4338d..6b129d8 100644 --- a/src/Vortice.Win32/Numerics/RectF.cs +++ b/src/Vortice.Win32/Numerics/RectF.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Drawing; diff --git a/src/Vortice.Win32/Security/Security.Manual.cs b/src/Vortice.Win32/Security/Security.Manual.cs index 3fef4ce..56884ac 100644 --- a/src/Vortice.Win32/Security/Security.Manual.cs +++ b/src/Vortice.Win32/Security/Security.Manual.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32.Security; diff --git a/src/Vortice.Win32/StringUtilities.cs b/src/Vortice.Win32/StringUtilities.cs index a771d75..b103a19 100644 --- a/src/Vortice.Win32/StringUtilities.cs +++ b/src/Vortice.Win32/StringUtilities.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. @@ -17,7 +17,7 @@ public static unsafe class StringUtilities return GetUtf8Span(pointer, maxLength).GetString(); } - public static string? GetString(ushort* pointer, int maxLength = -1) + public static string? GetString(char* pointer, int maxLength = -1) { return GetUtf16Span(pointer, maxLength).GetString(); } @@ -62,14 +62,14 @@ public static unsafe class StringUtilities { ReadOnlySpan result; - if (!IsNullRef(in source)) + if (!Unsafe.IsNullRef(in source)) { if (maxLength < 0) { maxLength = int.MaxValue; } - result = CreateReadOnlySpan(in source, maxLength); + result = MemoryMarshal.CreateReadOnlySpan(in source, maxLength); var length = result.IndexOf((sbyte)'\0'); if (length != -1) @@ -89,14 +89,14 @@ public static unsafe class StringUtilities /// The string for which to get the null-terminated UTF16 character sequence. /// A null-terminated UTF16 character sequence created from . [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ReadOnlySpan GetUtf16Span(this string? source) => source.AsSpan().As(); + public static ReadOnlySpan GetUtf16Span(this string? source) => source.AsSpan(); /// Marshals a null-terminated UTF16 string to a . /// The pointer to a null-terminated UTF16 string. /// The maxmimum length of or -1 if the maximum length is unknown. /// A that starts at and extends to or the first null character, whichever comes first. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ReadOnlySpan GetUtf16Span(ushort* source, int maxLength = -1) + public static ReadOnlySpan GetUtf16Span(char* source, int maxLength = -1) => (source != null) ? GetUtf16Span(in source[0], maxLength) : null; /// Marshals a null-terminated UTF16 string to a . @@ -104,18 +104,18 @@ public static unsafe class StringUtilities /// The maxmimum length of or -1 if the maximum length is unknown. /// A that starts at and extends to or the first null character, whichever comes first. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ReadOnlySpan GetUtf16Span(in ushort source, int maxLength = -1) + public static ReadOnlySpan GetUtf16Span(in char source, int maxLength = -1) { - ReadOnlySpan result; + ReadOnlySpan result; - if (!IsNullRef(in source)) + if (!Unsafe.IsNullRef(in source)) { if (maxLength < 0) { maxLength = int.MaxValue; } - result = CreateReadOnlySpan(in source, maxLength); + result = MemoryMarshal.CreateReadOnlySpan(in source, maxLength); var length = result.IndexOf('\0'); if (length != -1) @@ -135,12 +135,12 @@ public static unsafe class StringUtilities /// The span for which to create the string. /// A string created from . [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static string? GetString(this ReadOnlySpan span) + public static string? GetString(this ReadOnlySpan span) { if (span.GetPointer() == null) return null; - return new string(span.As()); + return new string(span); } /// Gets a string for a given span. diff --git a/src/Vortice.Win32/ULargeInteger.cs b/src/Vortice.Win32/ULargeInteger.cs index b2fbfa0..f6770fc 100644 --- a/src/Vortice.Win32/ULargeInteger.cs +++ b/src/Vortice.Win32/ULargeInteger.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. namespace Win32; diff --git a/src/Vortice.Win32/UnsafeUtilities.cs b/src/Vortice.Win32/UnsafeUtilities.cs index e7580d1..5a45893 100644 --- a/src/Vortice.Win32/UnsafeUtilities.cs +++ b/src/Vortice.Win32/UnsafeUtilities.cs @@ -13,7 +13,7 @@ public static unsafe class UnsafeUtilities where TFrom : unmanaged where TTo : unmanaged { - return CreateReadOnlySpan(in AsReadOnly(in span.GetReference()), span.Length); + return MemoryMarshal.CreateReadOnlySpan(in AsReadOnly(in span.GetReference()), span.Length); } /// @@ -25,13 +25,6 @@ public static unsafe class UnsafeUtilities [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ref readonly T GetReference(this ReadOnlySpan span) => ref MemoryMarshal.GetReference(span); - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool IsNullRef(in T source) => Unsafe.IsNullRef(ref Unsafe.AsRef(in source)); - - /// - public static ReadOnlySpan CreateReadOnlySpan(in T reference, int length) => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in reference), length); - /// Returns a pointer to the element of the span at index zero. /// The type of items in . /// The span from which the pointer is retrieved. @@ -39,27 +32,4 @@ public static unsafe class UnsafeUtilities [MethodImpl(MethodImplOptions.AggressiveInlining)] public static T* GetPointer(this ReadOnlySpan span) where T : unmanaged => (T*)Unsafe.AsPointer(ref Unsafe.AsRef(in span.GetReference())); - -#if NETSTANDARD2_0 - /// - /// Creates a new read-only span for a -terminated UTF-8 string. - /// - /// The pointer to the -terminated string of bytes. - /// A read-only span representing the specified -terminated string, or an empty span if the pointer is . - /// The returned span does not include the terminator, nor does it validate the well-formedness of the UTF-8 data. - /// The string is longer than . - public static unsafe ReadOnlySpan CreateReadOnlySpanFromNullTerminated(byte* value) - { - for (int i = 0; i < int.MaxValue; i++) - { - // Stop when the null-terminator has been found - if (value[i] == 0) - { - return new(value, i); - } - } - - throw new ArgumentException("The string must be null-terminated."); - } -#endif } diff --git a/src/Vortice.Win32/Vortice.Win32.csproj b/src/Vortice.Win32/Vortice.Win32.csproj index e8ff050..59ed162 100644 --- a/src/Vortice.Win32/Vortice.Win32.csproj +++ b/src/Vortice.Win32/Vortice.Win32.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net8.0 Windows API low level bindings. diff --git a/src/Vortice.Win32/Win32.cs b/src/Vortice.Win32/Win32.cs index 7c5b9fd..692d49d 100644 --- a/src/Vortice.Win32/Win32.cs +++ b/src/Vortice.Win32/Win32.cs @@ -1,4 +1,4 @@ -// Copyright © Amer Koleci and Contributors. +// Copyright (c) Amer Koleci and contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.ComponentModel;